Skip to content

TgpuGenericFn

Defined in: packages/typegpu/src/core/function/tgpuFn.ts:98

A function wrapper that allows providing slot and accessor overrides for shellless functions

  • TgpuNamable.Withable<TgpuGenericFn<T>>

T extends AnyFn

TgpuGenericFn(…args): ReturnType<T>

Defined in: packages/typegpu/src/core/function/tgpuFn.ts:111

A function wrapper that allows providing slot and accessor overrides for shellless functions

…Parameters<T>

ReturnType<T>

readonly [$internal]: object

Defined in: packages/typegpu/src/core/function/tgpuFn.ts:99

inner: T


readonly optional [$providing]: Providing

Defined in: packages/typegpu/src/core/function/tgpuFn.ts:102


readonly resourceType: "generic-function"

Defined in: packages/typegpu/src/core/function/tgpuFn.ts:103

$name(label): this

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

string

this

TgpuNamable.$name


pipe(transform): TgpuGenericFn<T>

Defined in: packages/typegpu/src/core/function/tgpuFn.ts:109

Applies a configuration transform to the slots and accessors this function reads, as root.pipe does to a pipeline’s.

(cfg) => Configurable

TgpuGenericFn<T>


with<T>(slot, value): TgpuGenericFn

Defined in: packages/typegpu/src/core/root/rootTypes.ts:133

T

TgpuSlot<T>

Eventual<T>

TgpuGenericFn

Withable.with

with<T>(accessor, value): TgpuGenericFn

Defined in: packages/typegpu/src/core/root/rootTypes.ts:134

T extends BaseData

TgpuAccessor<T>

In<NoInfer>

TgpuGenericFn

Withable.with

with<T>(accessor, value): TgpuGenericFn

Defined in: packages/typegpu/src/core/root/rootTypes.ts:135

T extends BaseData

TgpuMutableAccessor<T>

In<NoInfer>

TgpuGenericFn

Withable.with

© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.