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:26
[$internal]
Section titled “[$internal]”
readonly[$internal]:true
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:15
$
readonly$:GPUValueOf<T>
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:31
defaultValue
Section titled “defaultValue”
readonlydefaultValue:undefined|T
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:18
resourceType
Section titled “resourceType”
readonlyresourceType:"slot"
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:16
readonlyvalue:GPUValueOf<T>
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:30
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:97
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
Defined in
Section titled “Defined in”packages/typegpu/src/core/slot/slotTypes.ts:24
toString()
Section titled “toString()”toString():
string
Returns a string representation of an object.
Returns
Section titled “Returns”string