HLSL: Handle "." for structure dereference and swizzle.

This commit is contained in:
John Kessenich
2016-06-17 17:16:27 -06:00
parent 5aa59e2044
commit 93a162a857
6 changed files with 200 additions and 45 deletions

6
Test/hlsl.swizzle.frag Normal file
View File

@@ -0,0 +1,6 @@
float4 AmbientColor = float4(1, 0.5, 0, 1);
float4 ShaderFunction(float4 input) : COLOR0
{
return input.wwyx * float4(AmbientColor.z);
}