Documentation / device / PBGlobalScope
Class: PBGlobalScope
Defined in: libs/device/src/builder/programbuilder.ts:3458
The global scope of a shader
Extends
Indexable
[
props:string]:any
Accessors
$thisProxy
Get Signature
get $thisProxy():
T
Defined in: libs/device/src/builder/base.ts:133
Returns
T
Inherited from
$builder
Get Signature
get $builder():
ProgramBuilder
Defined in: libs/device/src/builder/programbuilder.ts:2772
Get the program builder
Returns
Inherited from
$builtins
Get Signature
get $builtins():
PBBuiltinScope
Defined in: libs/device/src/builder/programbuilder.ts:2776
Returns the scope of the builtin variables
Returns
Inherited from
$inputs
Get Signature
get $inputs():
PBInputScope
Defined in: libs/device/src/builder/programbuilder.ts:2780
Returns the scope of the input variables
Returns
Inherited from
$outputs
Get Signature
get $outputs():
PBOutputScope
Defined in: libs/device/src/builder/programbuilder.ts:2784
Returns the scope of the output variables
Returns
Inherited from
$l
Get Signature
get $l():
PBLocalScope
Defined in: libs/device/src/builder/programbuilder.ts:2812
Get the current local scope
Returns
Inherited from
$g
Get Signature
get $g():
PBGlobalScope
Defined in: libs/device/src/builder/programbuilder.ts:2816
Get the global scope
Returns
PBGlobalScope
Inherited from
Methods
$getVertexAttrib()
$getVertexAttrib(
semantic):PBShaderExp
Defined in: libs/device/src/builder/programbuilder.ts:2808
Get the input vertex attribute by specified semantic
Parameters
semantic
The vertex semantic
Returns
The input vertex attribute or null if not exists
Remarks
Can only be called only in vertex shader
Inherited from
$query()
$query(
name):PBShaderExp
Defined in: libs/device/src/builder/programbuilder.ts:2834
Query the global variable by the name
Parameters
name
string
Name of the variable
Returns
The variable or null if not exists