DirectXShaderCompiler icon indicating copy to clipboard operation
DirectXShaderCompiler copied to clipboard

Empty Payload struct not recognized in DXIL

Open DBouma opened this issue 5 years ago • 4 comments

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.

DBouma avatar Dec 07 '20 12:12 DBouma

@ehsannas This should get the spirv label applied as well.

Jasper-Bekkers avatar Jan 17 '21 20:01 Jasper-Bekkers

@Jasper-Bekkers why? it sounds like the issue doesn't exist when compiling to SPIR-V.

ehsannas avatar Jan 18 '21 15:01 ehsannas

Ah sorry @ehsannas I mis-understood. My bad :-)

Jasper-Bekkers avatar Jan 19 '21 14:01 Jasper-Bekkers

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?

damyanp avatar Apr 11 '24 16:04 damyanp