Skip to content

Support for attach-less render passes #503

@kvark

Description

@kvark

There is a use case of doing a render pass with no attachments. For example, when the pixel shader does some work with storage buffers, and we still want rasterization to happen, just without rendering per se.

Currently what happens is - we don't know the rasterization area when the render pass is started, and our implementation panics. It has no way to know this today.

Possible solutions:

  1. say this is an unsupported use case. Users could technically have a dummy attachment and set up the blend equations to always fail...
  2. have an optional member of RenderPassDescriptor with the rasterization area. When not set, it's automatically derived from the attachments, which are expected to be of the same size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    apiWebGPU APIapi-milestone-2-202502api issues that were in milestone 2 before we triaged milestone 1 on 2025-02-19feature requestA request for a new GPU feature exposed in the API

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions