HLSL: Implement basic "struct" grammar.
This commit is contained in:
parent
41ebc42926
commit
e6e7494e2a
8 changed files with 257 additions and 6 deletions
26
Test/hlsl.struct.frag
Normal file
26
Test/hlsl.struct.frag
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue