PP/HLSL: Fix #1424: support comma in nested curly braces for macro arg

This commit is contained in:
John Kessenich
2018-07-02 10:40:32 -06:00
parent 0b964b3c35
commit 9cc81de096
5 changed files with 61 additions and 10 deletions

View 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.

View 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()
{
}