Skip to content

TgpuVar

  • TgpuNamable

TScope extends VariableScope = VariableScope

TDataType extends AnyData = AnyData

readonly [$gpuValueOf]: InferGPU<TDataType>

packages/typegpu/src/core/variable/tgpuVariable.ts:28


readonly [$internal]: object

optional dataType: TDataType

Makes it differentiable on the type level. Does not exist at runtime.

optional scope: TScope

Makes it differentiable on the type level. Does not exist at runtime.

packages/typegpu/src/core/variable/tgpuVariable.ts:32


$

$: InferGPU<TDataType>

packages/typegpu/src/core/variable/tgpuVariable.ts:30


value: InferGPU<TDataType>

packages/typegpu/src/core/variable/tgpuVariable.ts:29

$name(label): this

string

this

TgpuNamable.$name

packages/typegpu/src/shared/meta.ts:87