Skip to content

Add StoreOp::NONE for read-only attachments - #258

Merged
dzhdanNV merged 3 commits into
NVIDIA-RTX:mainfrom
Intrinsic-Games:main
Sep 7, 2026
Merged

Add StoreOp::NONE for read-only attachments#258
dzhdanNV merged 3 commits into
NVIDIA-RTX:mainfrom
Intrinsic-Games:main

Conversation

@ChillstepCoder

Copy link
Copy Markdown
Contributor

VK_VERSION_1_3 gives us VK_ATTACHMENT_STORE_OP_NONE, this maps it from StoreOp::NONE. This allows us to avoid store-time write access for read-only attachments like depth buffers. StoreOp seems to not be in use in DX api.

AI DISCLAIMER: Fable 5.1 found this issue while working on our vulkan renderer and it seems correct to me, I had GPT-6 Astra review it for good measure.

Maps to VK_ATTACHMENT_STORE_OP_NONE (core since Vulkan 1.3) so a read-only depth attachment does not count
as a store-time write; the legacy render-pass path falls back to STORE.
@dzhdanNV

dzhdanNV commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

Thanks. Adding StoreOp::NONE does male sense. But the implementation requires a bit more love to correctly handle VK_ATTACHMENT_STORE_OP_NONE support in dynamic and legacy render passes. I will do it right after merging...

@dzhdanNV
dzhdanNV merged commit b85899b into NVIDIA-RTX:main Sep 7, 2026
dzhdanNV added a commit that referenced this pull request Sep 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants