Skip to content

TgpuConst

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

  • TgpuNamable

TDataType extends BaseData = BaseData

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

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


readonly [$internal]: object

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

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


readonly resourceType: "const"

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


readonly value: DeepReadonly<InferGPU<TDataType>>

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

$name(label): this

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

string

this

TgpuNamable.$name