Skip to content

TgpuComputePipeline

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

  • TgpuNamable.SelfResolvable.Timeable

readonly [$internal]: ComputePipelineInternals

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

SelfResolvable.[$internal]


readonly resourceType: "compute-pipeline"

Defined in: packages/typegpu/src/core/pipeline/computePipeline.ts:53

[$resolve](ctx): ResolvedSnippet

Defined in: packages/typegpu/src/types.ts:338

ResolutionCtx

ResolvedSnippet

SelfResolvable.[$resolve]


$name(label): this

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

string

this

TgpuNamable.$name


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

Defined in: packages/typegpu/src/core/pipeline/computePipeline.ts:68

number

number

number

void


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

Defined in: packages/typegpu/src/core/pipeline/computePipeline.ts:78

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

Buffer marked with ‘indirect’ usage containing dispatch parameters or raw GPUBuffer

GPUBuffer | TgpuBuffer<T> & IndirectFlag

PrimitiveOffsetInfo pointing to the first dispatch parameter. If not provided, starts at offset 0. To obtain safe offsets, use d.memoryLayoutOf(...).

number | PrimitiveOffsetInfo

void


toString(): string

Defined in: packages/typegpu/src/types.ts:339

string

SelfResolvable.toString


with<Entries>(bindGroupLayout, bindGroup): this

Defined in: packages/typegpu/src/core/pipeline/computePipeline.ts:59

Entries extends Record<string, TgpuLayoutEntry | null>

TgpuBindGroupLayout<Entries>

TgpuBindGroup<Entries>

this

with(bindGroupLayout, bindGroup): this

Defined in: packages/typegpu/src/core/pipeline/computePipeline.ts:63

TgpuBindGroupLayout

GPUBindGroup

this

with(bindGroup): this

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

TgpuBindGroup

this

with(encoder): this

Defined in: packages/typegpu/src/core/pipeline/computePipeline.ts:65

GPUCommandEncoder

this

with(pass): this

Defined in: packages/typegpu/src/core/pipeline/computePipeline.ts:66

GPUComputePassEncoder

this


withPerformanceCallback(callback): this

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

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

this

Timeable.withPerformanceCallback


withTimestampWrites(options): this

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

number

number

TgpuQuerySet<"timestamp"> | GPUQuerySet

this

Timeable.withTimestampWrites