Empty Payload struct not recognized in DXIL
When compiling an RT shader to Spir-v , the empty Payload struct is recognized - and the shader compiles just fine, however with DXIL the same shader fails to compile.
http://shader-playground.timjones.io/2ea9b49aff52b7bd018503d4a4df4bf5
struct Payload {}; [shader("miss")] void main(inout Payload payload) {}
I've tried disabling optimizations, however this did not have any effect.
@ehsannas This should get the spirv label applied as well.
@Jasper-Bekkers why? it sounds like the issue doesn't exist when compiling to SPIR-V.
Ah sorry @ehsannas I mis-understood. My bad :-)
To help us prioritize this, can you explain the scenarios that this is blocking a bit please? It does indeed seem like an edge case that should work, we'd just like to understand when you'd need to have an empty payload?