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

optional dataType: TDataType

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


readonly [$soul]: TgpuConstSoul<TDataType>

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


$

readonly $: DeepReadonly<InferGPU<TDataType>>

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


readonly resourceType: "const"

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