TgpuVar
Extends
Section titled “Extends”TgpuNamable
Type Parameters
Section titled “Type Parameters”• TScope extends VariableScope = VariableScope
• TDataType extends AnyData = AnyData
Properties
Section titled “Properties”[$gpuValueOf]
Section titled “[$gpuValueOf]”
readonly[$gpuValueOf]:InferGPU<TDataType>
Defined in
Section titled “Defined in”packages/typegpu/src/core/variable/tgpuVariable.ts:28
[$internal]
Section titled “[$internal]”
readonly[$internal]:object
dataType?
Section titled “dataType?”
optionaldataType:TDataType
Makes it differentiable on the type level. Does not exist at runtime.
scope?
Section titled “scope?”
optionalscope:TScope
Makes it differentiable on the type level. Does not exist at runtime.
Defined in
Section titled “Defined in”packages/typegpu/src/core/variable/tgpuVariable.ts:32
$
$:
InferGPU<TDataType>
Defined in
Section titled “Defined in”packages/typegpu/src/core/variable/tgpuVariable.ts:30
value:
InferGPU<TDataType>
Defined in
Section titled “Defined in”packages/typegpu/src/core/variable/tgpuVariable.ts:29
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name