TgpuSlot
Extends
Section titled “Extends”TgpuNamable
Type Parameters
Section titled “Type Parameters”• T
Properties
Section titled “Properties”[$gpuValueOf]
Section titled “[$gpuValueOf]”
readonly[$gpuValueOf]:GPUValueOf<T>
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:20
[$internal]
Section titled “[$internal]”
readonly[$internal]:true
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:9
$
readonly$:GPUValueOf<T>
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:22
defaultValue
Section titled “defaultValue”
readonlydefaultValue:undefined|T
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:12
resourceType
Section titled “resourceType”
readonlyresourceType:"slot"
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:10
readonlyvalue:GPUValueOf<T>
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:21
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name
Defined in
Section titled “Defined in”packages/typegpu/src/shared/meta.ts:87
areEqual()
Section titled “areEqual()”areEqual(
a,b):boolean
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