Skip to content

TgpuConst

  • TgpuNamable

TDataType extends BaseData = BaseData

readonly [$gpuValueOf]: DeepReadonly<InferGPU<TDataType>>

packages/typegpu/src/core/constant/tgpuConstant.ts:26


readonly [$internal]: object

optional dataType: TDataType

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

packages/typegpu/src/core/constant/tgpuConstant.ts:33


$

readonly $: DeepReadonly<InferGPU<TDataType>>

packages/typegpu/src/core/constant/tgpuConstant.ts:31


readonly resourceType: "const"

packages/typegpu/src/core/constant/tgpuConstant.ts:25


readonly value: DeepReadonly<InferGPU<TDataType>>

packages/typegpu/src/core/constant/tgpuConstant.ts:30

$name(label): this

string

this

TgpuNamable.$name

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