HLSL: Add typedef grammar and production.
This commit is contained in:
parent
d5ed0b6982
commit
5e69ec683d
6 changed files with 192 additions and 11 deletions
11
Test/hlsl.typedef.frag
Normal file
11
Test/hlsl.typedef.frag
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
typedef float4 myVec4;
|
||||
|
||||
float4 ShaderFunction(float4 input, int ii) : COLOR0
|
||||
{
|
||||
typedef int myInt;
|
||||
myVec4 a1 = myVec4(1.0);
|
||||
myInt i = 2;
|
||||
typedef myInt myInt2;
|
||||
myInt2 j = ii;
|
||||
return input * a1 + myVec4(i + j);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue