Skip to content

TgpuComputePipeline

  • TgpuNamable.SelfResolvable.Timeable

readonly [$internal]: ComputePipelineInternals

SelfResolvable.[$internal]

packages/typegpu/src/core/pipeline/computePipeline.ts:51


readonly resourceType: "compute-pipeline"

packages/typegpu/src/core/pipeline/computePipeline.ts:52

[$resolve](ctx): ResolvedSnippet

ResolutionCtx

ResolvedSnippet

SelfResolvable.[$resolve]

packages/typegpu/src/types.ts:319


$name(label): this

string

this

TgpuNamable.$name

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


dispatchWorkgroups(x, y?, z?): void

number

number

number

void

packages/typegpu/src/core/pipeline/computePipeline.ts:64


dispatchWorkgroupsIndirect<T>(indirectBuffer, start?): void

Dispatches compute workgroups using parameters read from a buffer. The buffer must contain 3 consecutive u32 values (x, y, z workgroup counts). To get the correct offset within complex data structures, use d.memoryLayoutOf(...).

T extends AnyWgslData

TgpuBuffer<T> & IndirectFlag

Buffer marked with ‘indirect’ usage containing dispatch parameters

number | PrimitiveOffsetInfo

void

packages/typegpu/src/core/pipeline/computePipeline.ts:74


toString(): string

string

SelfResolvable.toString

packages/typegpu/src/types.ts:320


with<Entries>(bindGroupLayout, bindGroup): this

Entries extends Record<string, null | TgpuLayoutEntry>

TgpuBindGroupLayout<Entries>

TgpuBindGroup<Entries>

this

packages/typegpu/src/core/pipeline/computePipeline.ts:58

with(bindGroup): this

TgpuBindGroup

this

packages/typegpu/src/core/pipeline/computePipeline.ts:62


withPerformanceCallback(callback): this

(start, end) => void | Promise<void>

this

Timeable.withPerformanceCallback

packages/typegpu/src/core/pipeline/timeable.ts:6


withTimestampWrites(options): this

number

number

TgpuQuerySet<"timestamp"> | GPUQuerySet

this

Timeable.withTimestampWrites

packages/typegpu/src/core/pipeline/timeable.ts:8