HLSL: Grammar: Make comma-separated declaration lists work.
This commit is contained in:
parent
92d44b1bb2
commit
532543c1c4
14 changed files with 6383 additions and 5047 deletions
12
Test/hlsl.init.frag
Normal file
12
Test/hlsl.init.frag
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
float4 a1 = float4(1, 0.5, 0, 1), b1 = float4(2.0, 2.5, 2.1, 2.2);
|
||||
float a2 = 0.2, b2;
|
||||
float a3, b3 = 0.3;
|
||||
float a4, b4 = 0.4, c4;
|
||||
float a5 = 0.5, b5, c5 = 1.5;
|
||||
|
||||
float4 ShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
float4 a2 = float4(0.2, 0.3, 0.4, 0.5);
|
||||
|
||||
return input * a1;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue