Skip to content

TgpuRenderPipeline

  • TgpuNamable.SelfResolvable.Timeable

Output extends IOLayout = IOLayout

readonly [$internal]: RenderPipelineInternals

SelfResolvable.[$internal]

packages/typegpu/src/core/pipeline/renderPipeline.ts:104


readonly hasIndexBuffer: boolean

packages/typegpu/src/core/pipeline/renderPipeline.ts:106


readonly resourceType: "render-pipeline"

packages/typegpu/src/core/pipeline/renderPipeline.ts:105

[$resolve](ctx): ResolvedSnippet

ResolutionCtx

ResolvedSnippet

SelfResolvable.[$resolve]

packages/typegpu/src/types.ts:303


$name(label): this

string

this

TgpuNamable.$name

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


draw(vertexCount, instanceCount?, firstVertex?, firstInstance?): void

number

number

number

number

void

packages/typegpu/src/core/pipeline/renderPipeline.ts:146


toString(): string

string

SelfResolvable.toString

packages/typegpu/src/types.ts:304


with<TData>(vertexLayout, buffer): this

TData extends WgslArray<BaseData> | Disarray<BaseData>

TgpuVertexLayout<TData>

TgpuBuffer<TData> & VertexFlag

this

packages/typegpu/src/core/pipeline/renderPipeline.ts:108

with<Entries>(bindGroupLayout, bindGroup): this

Entries extends Record<string, null | TgpuLayoutEntry>

TgpuBindGroupLayout<Entries>

TgpuBindGroup<Entries>

this

packages/typegpu/src/core/pipeline/renderPipeline.ts:116

with(bindGroup): this

TgpuBindGroup

this

packages/typegpu/src/core/pipeline/renderPipeline.ts:120


withColorAttachment(attachment): this

FragmentOutToColorAttachment<Output>

this

packages/typegpu/src/core/pipeline/renderPipeline.ts:122


withDepthStencilAttachment(attachment): this

DepthStencilAttachment

this

packages/typegpu/src/core/pipeline/renderPipeline.ts:126


withIndexBuffer(buffer, offsetElements?, sizeElements?): TgpuRenderPipeline<Output> & HasIndexBuffer

TgpuBuffer<AnyWgslData> & IndexFlag

number

number

TgpuRenderPipeline<Output> & HasIndexBuffer

packages/typegpu/src/core/pipeline/renderPipeline.ts:134

withIndexBuffer(buffer, indexFormat, offsetBytes?, sizeBytes?): TgpuRenderPipeline<Output> & HasIndexBuffer

GPUBuffer

GPUIndexFormat

number

number

TgpuRenderPipeline<Output> & HasIndexBuffer

packages/typegpu/src/core/pipeline/renderPipeline.ts:139


withPerformanceCallback(callback): this

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

this

Timeable.withPerformanceCallback

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


withStencilReference(reference): this

number

this

packages/typegpu/src/core/pipeline/renderPipeline.ts:130


withTimestampWrites(options): this

number

number

TgpuQuerySet<"timestamp"> | GPUQuerySet

this

Timeable.withTimestampWrites

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