这是indexloc提供的服务,不要输入任何密码
Skip to content

Feature request: ignore shader writes to color attachments #2060

@MatusT

Description

@MatusT

I would like to propose an ability to discard shader writes to certain color attachments if it is doable.

Use case from my codebase:
I have a G-Buffer with Colors, Positions, Normals. I want to render opaque objects first and write associated g-buffer data. These data will be later used for (SS)AO (only opaque objects get AO computed). In the second pass I want to render transparent data into another color attachment BUT ignore writes of shader to positions and normals.

In this case I could use one shader with one pipeline with the desired functionality.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions