diff options
| author | Yong He <yonghe@outlook.com> | 2022-12-07 12:52:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-07 12:52:20 -0800 |
| commit | 70714705747f3491c55e14b74f87641010351d6c (patch) | |
| tree | 8b0e3905892da915b731521dbd3dc0c86482b406 /tests/cross-compile | |
| parent | 3a3a8b5f7701109fc413f42692c4de5769870489 (diff) | |
Remove `construct` IR op. (#2555)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/cross-compile')
| -rw-r--r-- | tests/cross-compile/geometry-shader.slang.glsl | 20 | ||||
| -rw-r--r-- | tests/cross-compile/glsl-generic-in.slang.glsl | 11 |
2 files changed, 16 insertions, 15 deletions
diff --git a/tests/cross-compile/geometry-shader.slang.glsl b/tests/cross-compile/geometry-shader.slang.glsl index 5a8db5b09..1664e8468 100644 --- a/tests/cross-compile/geometry-shader.slang.glsl +++ b/tests/cross-compile/geometry-shader.slang.glsl @@ -58,11 +58,11 @@ void main() // types for the input, and/or eliminate the redundant temporary // by indexing directly into the sub-arrays. // - CoarseVertex_0 _S7[3] = { - CoarseVertex_0(input_position[0], input_color[0], input_id[0]), - CoarseVertex_0(input_position[1], input_color[1], input_id[1]), - CoarseVertex_0(input_position[2], input_color[2], input_id[2]) - }; + CoarseVertex_0 _S7 = { _S1[0], _S2[0], _S3[0] }; + CoarseVertex_0 _S8 = { _S1[1], _S2[1], _S3[1] }; + CoarseVertex_0 _S9 = { _S1[2], _S2[2], _S3[2] }; + + CoarseVertex_0 _S10[3] = { _S7, _S8, _S9 }; int ii_0; ii_0 = 0; @@ -75,18 +75,18 @@ void main() break; } - CoarseVertex_0 coarseVertex_0 = _S7[ii_0]; + CoarseVertex_0 coarseVertex_0 = _S10[ii_0]; RasterVertex_0 rasterVertex_0; rasterVertex_0.position_0 = coarseVertex_0.position_1; rasterVertex_0.color_0 = coarseVertex_0.color_1; rasterVertex_0.id_0 = coarseVertex_0.id_1 + _S6; - RasterVertex_0 _S8 = rasterVertex_0; + RasterVertex_0 _S11 = rasterVertex_0; - output_position = _S8.position_0; - output_color = _S8.color_0; - gl_Layer = int(_S8.id_0); + output_position = _S11.position_0; + output_color = _S11.color_0; + gl_Layer = int(_S11.id_0); EmitVertex(); diff --git a/tests/cross-compile/glsl-generic-in.slang.glsl b/tests/cross-compile/glsl-generic-in.slang.glsl index 61ce0b71b..2c3a3f877 100644 --- a/tests/cross-compile/glsl-generic-in.slang.glsl +++ b/tests/cross-compile/glsl-generic-in.slang.glsl @@ -44,15 +44,16 @@ struct VOut_0 void main() { - GIn_0 _S4 = GIn_0(_S1, F_0(_S2, _S3)); + F_0 _S4 = { _S2, _S3 }; + GIn_0 _S5 = { _S1, _S4 }; VOut_0 vout_0; - vec3 _S5 = _S4.p0_0; + vec3 _S6 = _S5.p0_0; - float _S6 = F_get_0(_S4.field_0); - float _S7 = E_get_0(); + float _S7 = F_get_0(_S5.field_0); + float _S8 = E_get_0(); - vout_0.projPos_0 = vec4(_S5, _S6 + _S7); + vout_0.projPos_0 = vec4(_S6, _S7 + _S8); gl_Position = vout_0.projPos_0; return; }
\ No newline at end of file |
