Skip to content

TgpuVar

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

  • TgpuNamable

TScope extends VariableScope = VariableScope

TDataType extends AnyData = AnyData

readonly [$internal]: object

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

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:24


value: InferGPU<TDataType>

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

[$gpuValueOf](): InferGPU<TDataType>

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

InferGPU<TDataType>


$name(label): this

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

string

this

TgpuNamable.$name