TgpuRawCodeSnippet
Defined in: packages/typegpu/src/core/rawCodeSnippet/tgpuRawCodeSnippet.ts:19
Extra declaration that will be included in final WGSL code when resolving objects that use it.
Type Parameters
Section titled “Type Parameters”TDataType
Section titled “TDataType”TDataType extends BaseData
Properties
Section titled “Properties”[$gpuValueOf]
Section titled “[$gpuValueOf]”
readonly[$gpuValueOf]:InferGPU<TDataType>
Defined in: packages/typegpu/src/core/rawCodeSnippet/tgpuRawCodeSnippet.ts:22
$
$:
InferGPU<TDataType>
Defined in: packages/typegpu/src/core/rawCodeSnippet/tgpuRawCodeSnippet.ts:20
value:
InferGPU<TDataType>
Defined in: packages/typegpu/src/core/rawCodeSnippet/tgpuRawCodeSnippet.ts:21
Methods
Section titled “Methods”$uses()
Section titled “$uses()”$uses(
dependencyMap):this
Defined in: packages/typegpu/src/core/rawCodeSnippet/tgpuRawCodeSnippet.ts:24
Parameters
Section titled “Parameters”dependencyMap
Section titled “dependencyMap”Record<string, unknown>
Returns
Section titled “Returns”this