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