Skip to content

TgpuVar

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

  • TgpuNamable

TScope extends VariableScope = VariableScope

TDataType extends BaseData = BaseData

readonly [$gpuValueOf]: InferGPU<TDataType>

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


readonly [$internal]: object

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

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.


readonly [$soul]: TgpuVarSoul<TScope, TDataType>

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


$

$: InferGPU<TDataType>

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


readonly resourceType: "var"

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

$name(label): this

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

string

this

TgpuNamable.$name