HLSL: Allow empty struct initializers
Review request: does this harm GLSL in any way?
This commit is contained in:
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;
|
||||
}
|
||||
Reference in New Issue
Block a user