Skip to content

TgpuSlot

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

  • TgpuNamable

T

readonly [$gpuValueOf]: GPUValueOf<T>

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


readonly [$internal]: true

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


$

readonly $: GPUValueOf<T>

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


readonly defaultValue: T | undefined

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


readonly resourceType: "slot"

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


readonly value: GPUValueOf<T>

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

$name(label): this

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

string

this

TgpuNamable.$name


areEqual(a, b): boolean

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

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:32

Returns a string representation of an object.

string