TgpuConst
Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:29
Extends
Section titled “Extends”TgpuNamable
Type Parameters
Section titled “Type Parameters”TDataType
Section titled “TDataType”TDataType extends BaseData = BaseData
Properties
Section titled “Properties”[$gpuValueOf]
Section titled “[$gpuValueOf]”
readonly[$gpuValueOf]:DeepReadonly<InferGPU<TDataType>>
Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:31
[$internal]
Section titled “[$internal]”
readonly[$internal]:object
Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:38
dataType?
Section titled “dataType?”
optionaldataType: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
resourceType
Section titled “resourceType”
readonlyresourceType:"const"
Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:30
readonlyvalue:DeepReadonly<InferGPU<TDataType>>
Defined in: packages/typegpu/src/core/constant/tgpuConstant.ts:35
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Defined in: packages/typegpu/src/shared/meta.ts:97
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name