TgpuSlot
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:26
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: packages/typegpu/src/core/slot/slotTypes.ts:39
[$internal]
Section titled “[$internal]”
readonly[$internal]:true
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:27
[$soul]
Section titled “[$soul]”
readonly[$soul]:TgpuSlotSoul<T>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:28
$
readonly$:GPUValueOf<T>
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:40
defaultValue
Section titled “defaultValue”
readonlydefaultValue:T|undefined
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:31
resourceType
Section titled “resourceType”
readonlyresourceType:"slot"
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:29
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Defined in: packages/typegpu/src/shared/meta.ts:44
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:37
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
toString()
Section titled “toString()”toString():
string
Defined in: packages/typegpu/src/core/slot/slotTypes.ts:41
Returns a string representation of an object.
Returns
Section titled “Returns”string
© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.