Skip to content

TgpuConst

Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:29

  • TgpuNamable

TDataType extends BaseData = BaseData

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

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


readonly [$internal]: object

Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:38

optional dataType: TDataType

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


$

readonly $: DeepReadonly<InferGPU<TDataType>>

Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:36


readonly resourceType: "const"

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


readonly value: DeepReadonly<InferGPU<TDataType>>

Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:35

$name(label): this

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

string

this

TgpuNamable.$name