WithBinding
Defined in: packages/typegpu/src/core/root/rootTypes.ts:144
Methods
Section titled “Methods”pipe()
Section titled “pipe()”pipe(
transform):WithBinding
Defined in: packages/typegpu/src/core/root/rootTypes.ts:167
Parameters
Section titled “Parameters”transform
Section titled “transform”(cfg) => Configurable
Returns
Section titled “Returns”with()
Section titled “with()”Call Signature
Section titled “Call Signature”with<
T>(slot,value):WithBinding
Defined in: packages/typegpu/src/core/root/rootTypes.ts:157
Type Parameters
Section titled “Type Parameters”• T
Parameters
Section titled “Parameters”TgpuSlot<T>
Eventual<T>
Returns
Section titled “Returns”Call Signature
Section titled “Call Signature”with<
T>(accessor,value):WithBinding
Defined in: packages/typegpu/src/core/root/rootTypes.ts:158
Type Parameters
Section titled “Type Parameters”• T extends AnyWgslData
Parameters
Section titled “Parameters”accessor
Section titled “accessor”TgpuAccessor<T>
TgpuFn<() => T> | TgpuBufferUsage<T, BindableBufferUsage> | TgpuBufferShorthand<T> | Infer<T>
Returns
Section titled “Returns”withCompute()
Section titled “withCompute()”withCompute<
ComputeIn>(entryFn):WithCompute
Defined in: packages/typegpu/src/core/root/rootTypes.ts:145
Type Parameters
Section titled “Type Parameters”• ComputeIn extends IORecord<AnyComputeBuiltin>
Parameters
Section titled “Parameters”entryFn
Section titled “entryFn”TgpuComputeFn<ComputeIn>
Returns
Section titled “Returns”withVertex()
Section titled “withVertex()”withVertex<
VertexIn,VertexOut>(entryFn,attribs):WithVertex<VertexOut>
Defined in: packages/typegpu/src/core/root/rootTypes.ts:149
Type Parameters
Section titled “Type Parameters”• VertexIn extends VertexInConstrained
• VertexOut extends VertexOutConstrained
Parameters
Section titled “Parameters”entryFn
Section titled “entryFn”TgpuVertexFn<VertexIn, VertexOut>
attribs
Section titled “attribs”LayoutToAllowedAttribs<OmitBuiltins<VertexIn>>
Returns
Section titled “Returns”WithVertex<VertexOut>