HLSL: allow length() on scalars
This commit is contained in:
parent
93750bc0a4
commit
1ca04c2bbd
5 changed files with 123 additions and 8 deletions
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue