HLSL: Fix #924: Convert between two different arrays with cast.
This commit is contained in:
parent
0320d090e2
commit
82ae8c31e0
7 changed files with 503 additions and 7 deletions
10
Test/hlsl.constructArray.vert
Normal file
10
Test/hlsl.constructArray.vert
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
float4 main() : SV_POSITION
|
||||
{
|
||||
int4 int4_array[3];
|
||||
float4 float4_array_times[2] = (float4[2])int4_array;
|
||||
float2 float2_array_times2[4] = (float2[4])int4_array;
|
||||
int4 int4_array2[2] = (int4[2])int4_array;
|
||||
int int1_array[2] = (int[2])int4_array;
|
||||
|
||||
return (float4)0.0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue