HLSL: Implement basic "struct" grammar.

This commit is contained in:
John Kessenich
2016-06-11 16:43:14 -06:00
parent 41ebc42926
commit e6e7494e2a
8 changed files with 257 additions and 6 deletions

26
Test/hlsl.struct.frag Normal file
View File

@@ -0,0 +1,26 @@
struct {
};
struct {
bool b;
};
struct myS {
bool b, c;
float4 a, d;
};
myS s1;
struct {
float4 i;
} s2;
float4 PixelShaderFunction(float4 input) : COLOR0
{
struct FS {
bool3 b3;
} s3;
s3 == s3;
}