HLSL: Allow empty struct initializers
Review request: does this harm GLSL in any way?
This commit is contained in:
parent
7cca140956
commit
c0043cda82
4 changed files with 121 additions and 6 deletions
8
Test/hlsl.emptystruct.init.vert
Normal file
8
Test/hlsl.emptystruct.init.vert
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
struct Test { };
|
||||
|
||||
static const Test Test_Empty;
|
||||
|
||||
float4 main(in uint vertexIndex : VERTEXID) : VS_OUT_POSITION
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue