TgpuGenericFn
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:98
A function wrapper that allows providing slot and accessor overrides for shellless functions
Extends
Section titled “Extends”TgpuNamable.Withable<TgpuGenericFn<T>>
Type Parameters
Section titled “Type Parameters”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
Section titled “Parameters”…Parameters<T>
Returns
Section titled “Returns”ReturnType<T>
Properties
Section titled “Properties”[$internal]
Section titled “[$internal]”
readonly[$internal]:object
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:99
inner:
T
[$providing]?
Section titled “[$providing]?”
readonlyoptional[$providing]:Providing
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:102
resourceType
Section titled “resourceType”
readonlyresourceType:"generic-function"
Defined in: packages/typegpu/src/core/function/tgpuFn.ts:103
Methods
Section titled “Methods”$name()
Section titled “$name()”$name(
label):this
Defined in: packages/typegpu/src/shared/meta.ts:44
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”this
Inherited from
Section titled “Inherited from”TgpuNamable.$name
pipe()
Section titled “pipe()”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.
Parameters
Section titled “Parameters”transform
Section titled “transform”(cfg) => Configurable
Returns
Section titled “Returns”TgpuGenericFn<T>
with()
Section titled “with()”Call Signature
Section titled “Call Signature”with<
T>(slot,value):TgpuGenericFn
Defined in: packages/typegpu/src/core/root/rootTypes.ts:133
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”TgpuSlot<T>
Eventual<T>
Returns
Section titled “Returns”TgpuGenericFn
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”with<
T>(accessor,value):TgpuGenericFn
Defined in: packages/typegpu/src/core/root/rootTypes.ts:134
Type Parameters
Section titled “Type Parameters”T extends BaseData
Parameters
Section titled “Parameters”accessor
Section titled “accessor”TgpuAccessor<T>
In<NoInfer>
Returns
Section titled “Returns”TgpuGenericFn
Inherited from
Section titled “Inherited from”Call Signature
Section titled “Call Signature”with<
T>(accessor,value):TgpuGenericFn
Defined in: packages/typegpu/src/core/root/rootTypes.ts:135
Type Parameters
Section titled “Type Parameters”T extends BaseData
Parameters
Section titled “Parameters”accessor
Section titled “accessor”In<NoInfer>
Returns
Section titled “Returns”TgpuGenericFn
Inherited from
Section titled “Inherited from”© Software Mansion 2026. All trademarks and copyrights belong to their respective owners. Read about our Privacy Policy.