TgpuSlot
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:13
Extends
Section titled “Extends”TgpuNamable
Type Parameters
Section titled “Type Parameters”• T
Properties
Section titled “Properties”[$gpuRepr]
Section titled “[$gpuRepr]”
readonly
[$gpuRepr]:InferGPU
<T
>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:19
[$internal]
Section titled “[$internal]”
readonly
[$internal]:true
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:14
[$repr]
Section titled “[$repr]”
readonly
[$repr]:Infer
<T
>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:18
$
readonly
$:InferGPU
<T
>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:31
defaultValue
Section titled “defaultValue”
readonly
defaultValue:undefined
|T
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:22
resourceType
Section titled “resourceType”
readonly
resourceType:"slot"
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:15
readonly
value:InferGPU
<T
>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:30
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label
):this
Defined in: packages/typegpu/src/shared/meta.ts:83
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name
areEqual()
Section titled “areEqual()”areEqual(
a
,b
):boolean
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:28
Used to determine if code generated using either value a
or b
in place
of the slot will be equivalent. Defaults to Object.is
.
Parameters
Section titled “Parameters”T
T
Returns
Section titled “Returns”boolean