HLSL: Handle "." for structure dereference and swizzle.
This commit is contained in:
parent
5aa59e2044
commit
93a162a857
6 changed files with 200 additions and 45 deletions
6
Test/hlsl.swizzle.frag
Normal file
6
Test/hlsl.swizzle.frag
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
float4 AmbientColor = float4(1, 0.5, 0, 1);
|
||||
|
||||
float4 ShaderFunction(float4 input) : COLOR0
|
||||
{
|
||||
return input.wwyx * float4(AmbientColor.z);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue