Skip to content

TgpuVar

Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:20

  • TgpuNamable

TScope extends VariableScope = VariableScope

TDataType extends BaseData = BaseData

readonly [$gpuValueOf]: InferGPU<TDataType>

Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:25


readonly [$internal]: object

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

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.


$

$: InferGPU<TDataType>

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


readonly resourceType: "var"

Defined in: packages/typegpu/src/core/variable/tgpuVariable.ts:24


value: InferGPU<TDataType>

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

$name(label): this

Defined in: packages/typegpu/src/shared/meta.ts:97

string

this

TgpuNamable.$name