TgpuSlot
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:9
Extends
Section titled “Extends”TgpuNamable
Type Parameters
Section titled “Type Parameters”• T
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly
[$internal]:true
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:10
$
readonly
$:GPUValueOf
<T
>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:23
defaultValue
Section titled “defaultValue”
readonly
defaultValue:undefined
|T
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:13
resourceType
Section titled “resourceType”
readonly
resourceType:"slot"
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:11
readonly
value:GPUValueOf
<T
>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:22
Methods
Section titled “Methods”[$gpuValueOf]()
Section titled “[$gpuValueOf]()”[$gpuValueOf](
ctx
):GPUValueOf
<T
>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:21
Parameters
Section titled “Parameters”ResolutionCtx
Returns
Section titled “Returns”GPUValueOf
<T
>
$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:19
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