HLSL: allow length() on scalars

This commit is contained in:
steve-lunarg
2017-03-24 10:12:53 -06:00
parent 93750bc0a4
commit 1ca04c2bbd
5 changed files with 123 additions and 8 deletions

View File

@@ -0,0 +1,6 @@
float4 main() : SV_Target0
{
float4 test = { 0, 1, 2, 3 };
return length(test.a);
}