PP/HLSL: Fix #1424: support comma in nested curly braces for macro arg
This commit is contained in:
parent
0b964b3c35
commit
9cc81de096
5 changed files with 61 additions and 10 deletions
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()
|
||||
{
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue