Skip to content

[SPIR-V][SM6.7] Add support for RWTexture2DMS in the SPIR-V backend #5244

Closed

Description

@sharayua

I am trying to implement the RWTexture2DMS feature from SM 6.7 using DXC packages from the Agility SDK.
This is a dummy shader with minimal code.
Surprisingly, the shader compiles fine for DXIL, https://godbolt.org/z/z8qvbMEjd
but fails with SPIR-V, https://godbolt.org/z/59nPrsbdo

Would this be fixed in the coming some weeks?

~SA

Activity

  1. s-perron commented on May 29, 2023

    @s-perron
    Collaborator

    Would this be fixed in the coming some weeks?

    Don't expect a fix any time soon. When I looked at the spir-v generated by DXC, I noticed is wrong a lot of ways. We do not have many people working on DXC spir-v right now.

    This issues was discussed in the Vulkan docs, and can give an idea of how to implement it correctly:

    KhronosGroup/Vulkan-Docs#1015

  2. added
    bug
    spirv
    on May 29, 2023
  3. changed the title [-][SPIR-V] Shader compilation for RWTexture2DMS in SM 6.7 fails.[/-] [+][SPIR-V][SM6.7] Add support for RWTexture2DMS in the SPIR-V backend[/+] on May 13, 2024
  4. added
    enhancement
    and removed
    bug
    on May 13, 2024
  5. devshgraphicsprogramming commented on May 14, 2024

    @devshgraphicsprogramming

    Maybe this is another place to roll out Proposal 0011 user space code?

  6. s-perron commented on May 16, 2024

    @s-perron
    Collaborator

    Maybe this is another place to roll out Proposal 0011 user space code?

    We still need to implement this, even if a Vulkan only implementation can get by with inline spir-v. We want people to be able to write code that will work for both DXIL and SPIR-V.

  7. gjaegy commented on Aug 7, 2026

    @gjaegy

    Hi,
    We would be interested in having this feature supported as well, as we would need it to implement MSAA depth-buffer reprojection/interpolation (DLSS usage case).
    Is there any plan to have this implemented any time soon ?
    Thanks a lot for your work !

  8. s-perron commented on Aug 10, 2026

    @s-perron
    Collaborator
  9. UdheAdeen commented on Aug 15, 2026

    @UdheAdeen

    Hi, we would be interested in this feature too, we combine compute-generated gbuffer with rasterized geometry, so with ability to write to msaa textures directly our pipeline would become much more simple and flexible. Thanks for your work!

  10. Icohedron commented on Oct 15, 2026

    @Icohedron
    Collaborator

    I think this issue is fixed by #8755

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementsm6.7spirv

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions