Skip to content

TgpuSlot

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

  • TgpuNamable

T

readonly [$gpuRepr]: InferGPU<T>

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


readonly [$internal]: true

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


readonly [$repr]: Infer<T>

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


$

readonly $: InferGPU<T>

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


readonly defaultValue: undefined | T

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


readonly resourceType: "slot"

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


readonly value: InferGPU<T>

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

$name(label): this

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

string

this

TgpuNamable.$name


areEqual(a, b): boolean

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

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