HLSL: allow length() on scalars
This commit is contained in:
6
Test/hlsl.scalar-length.frag
Normal file
6
Test/hlsl.scalar-length.frag
Normal file
@@ -0,0 +1,6 @@
|
||||
float4 main() : SV_Target0
|
||||
{
|
||||
float4 test = { 0, 1, 2, 3 };
|
||||
|
||||
return length(test.a);
|
||||
}
|
||||
Reference in New Issue
Block a user