Skip to content

TgpuConst

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

  • TgpuNamable

TDataType extends AnyWgslData = AnyWgslData

readonly [$internal]: object

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

optional dataType: TDataType

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


$

readonly $: InferGPU<TDataType>

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


readonly value: InferGPU<TDataType>

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

[$gpuValueOf](): InferGPU<TDataType>

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

InferGPU<TDataType>


$name(label): this

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

string

this

TgpuNamable.$name