microsoft / hlsl-specs

HLSL Specifications

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[0011] Enable vk::SpirvType to be used in interface arrays and structs

s-perron opened this issue · comments

Which proposal does this relate to?

0011: Inline SPIR-V

Describe the issue or outstanding question.

The compiler does not know the size or alignment of a vk::SpirvType. Because types that are used in an interface variables like globals or structured buffers must be fully laid out, the compiler needs to know the size and alignment of a vk:SpirvType if it is used in an aggregate type that is part of the interface.

Additional context

We might need to think how this will interact with the different layout rules that we support.

FYI: @cassiebeckely

@llvm-beanz How do we get this added to the correct projects?