PP/HLSL: Fix #1424: support comma in nested curly braces for macro arg
This commit is contained in:
3
Test/baseResults/hlsl.pp.expand.frag.err
Normal file
3
Test/baseResults/hlsl.pp.expand.frag.err
Normal file
@@ -0,0 +1,3 @@
|
||||
ERROR: HLSL currently only supported when requesting SPIR-V for Vulkan.
|
||||
ERROR: HLSL currently only supported when requesting SPIR-V for Vulkan.
|
||||
|
||||
18
Test/baseResults/hlsl.pp.expand.frag.out
Normal file
18
Test/baseResults/hlsl.pp.expand.frag.out
Normal file
@@ -0,0 +1,18 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
struct A
|
||||
{
|
||||
float4 a;
|
||||
float4 b;
|
||||
float4 c = { 1, 2, 3, 4 };
|
||||
float4 d = {({ {(({ 1, 2, 3, 4 }))} })}, { { 1, 2, 3, 4 } };
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user