Skip to content

TgpuSlot

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:25

  • TgpuNamable

T

readonly [$gpuValueOf]: GPUValueOf<T>

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:38


readonly [$internal]: true

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:26


readonly [$soul]: TgpuSlotSoul<T>

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:27


$

readonly $: GPUValueOf<T>

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:39


readonly defaultValue: T | undefined

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:30


readonly resourceType: "slot"

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:28

$name(label): this

Defined in: packages/typegpu/src/shared/meta.ts:44

string

this

TgpuNamable.$name


areEqual(a, b): boolean

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:36

Used to determine if code generated using either value a or b in place of the slot will be equivalent. Defaults to Object.is.

T

T

boolean


toString(): string

Defined in: packages/typegpu/src/core/slot/slotTypes.ts:40

Returns a string representation of an object.

string