* Update SPIRV libraries - Update `spirv-cross` - Update `spirv-tools` - Update `glslang` `spirv-tools` contains a fix for an issue we reported (unnecessary promotions to highp in certain expressions). * Add SPIRV-Tools dependency to matinfo
21 lines
344 B
GLSL
21 lines
344 B
GLSL
|
|
float float_array[5][4][3];
|
|
|
|
struct PS_OUTPUT
|
|
{
|
|
float4 Color : SV_Target0;
|
|
};
|
|
|
|
PS_OUTPUT main()
|
|
{
|
|
float4 float4_array_1[2][3];
|
|
float4 float4_array_2[5][3];
|
|
|
|
float4_array_1[1][2] = float_array[2][3][1];
|
|
float4_array_2[1] = float4_array_1[0];
|
|
|
|
PS_OUTPUT psout;
|
|
psout.Color = float4_array_1[1][2];
|
|
return psout;
|
|
}
|