Skip to content

TgpuRenderPipeline

  • TgpuNamable.SelfResolvable.Timeable

Output extends IOLayout = IOLayout

readonly [$internal]: RenderPipelineInternals

SelfResolvable.[$internal]

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


readonly hasIndexBuffer: boolean

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


readonly resourceType: "render-pipeline"

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

[$resolve](ctx): ResolvedSnippet

ResolutionCtx

ResolvedSnippet

SelfResolvable.[$resolve]

packages/typegpu/src/types.ts:300


$name(label): this

string

this

TgpuNamable.$name

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


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

number

number

number

number

void

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


toString(): string

string

SelfResolvable.toString

packages/typegpu/src/types.ts:301


with<TData>(vertexLayout, buffer): this

TData extends WgslArray<BaseData> | Disarray<BaseData>

TgpuVertexLayout<TData>

TgpuBuffer<TData> & VertexFlag

this

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

with<Entries>(bindGroupLayout, bindGroup): this

Entries extends Record<string, null | TgpuLayoutEntry>

TgpuBindGroupLayout<Entries>

TgpuBindGroup<Entries>

this

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

with(bindGroup): this

TgpuBindGroup

this

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


withColorAttachment(attachment): this

FragmentOutToColorAttachment<Output>

this

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


withDepthStencilAttachment(attachment): this

DepthStencilAttachment

this

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


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

TgpuBuffer<AnyWgslData> & IndexFlag

number

number

TgpuRenderPipeline<Output> & HasIndexBuffer

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

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

GPUBuffer

GPUIndexFormat

number

number

TgpuRenderPipeline<Output> & HasIndexBuffer

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


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:10