TgpuVar
Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:20
Extends
Section titled “Extends”TgpuNamable
Type Parameters
Section titled “Type Parameters”TScope
Section titled “TScope”TScope extends VariableScope = VariableScope
TDataType
Section titled “TDataType”TDataType extends BaseData = BaseData
Properties
Section titled “Properties”[$gpuValueOf]
Section titled “[$gpuValueOf]”
readonly[$gpuValueOf]:InferGPU<TDataType>
Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:25
[$internal]
Section titled “[$internal]”
readonly[$internal]:object
Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:32
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.
$
$:
InferGPU<TDataType>
Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:30
resourceType
Section titled “resourceType”
readonlyresourceType:"var"
Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:24
value:
InferGPU<TDataType>
Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:29
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Defined in: packages/typegpu/src/shared/meta.ts:97
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name