Skip to content

[HLSL][SPIRV] Add subpass inputs #124579

Open
Open
@s-perron

Description

@s-perron

Subpass inputs are a Vulkan specific resource type. They are useful for mobile platforms, and we want to add them the clang as well. The problem is that in DXC, they were not added in the vk namespace, and they should be. Here are the steps to implement this feature:

  • Update the spec to more SubpassInput to the vk namespace.
  • Design how the resource will be represented in the AST
  • Add the type to HLSLExternalSemaSource.cpp
  • Implement the vk::input_attachment_index attribute.
  • Generate the correct target type for the subpass input
  • Generate intrinsics to do the subpass load.
  • Resubmit the tests removed in [SPIRV] Expand RWBuffer load and store from HLSL #122355 that relate to subpass inputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    HLSLHLSL Language SupportSPIR-VSPIR-V language support

    Type

    Projects

    Status

    Planning

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions