On 8/11/22 15:26, Francisco Casas wrote:
+[texture 0] +size (1, 1) +1.0 1.0 1.0 1.0
+[texture 1] +size (1, 1) +2.0 2.0 2.0 1.0
+[texture 2] +size (1, 1) +3.0 3.0 3.0 1.0
+[pixel shader] +Texture2D tex[3];
+struct foo {
- float4 p;
- Texture2D t;
+};
+float4 main() : sv_target +{
- struct foo s[3];
- s[0].t = tex[0];
- s[1].t = tex[1];
- s[2].t = tex[2];
- return 100 * s[2].t.Load(0) + 10 * s[0].t.Load(0) + s[1].t.Load(0);
+}
+[test] +todo draw quad +todo probe all rgba (312, 312, 312, 111)
+[texture 0] +size (1, 1) +1.0 1.0 1.0 1.0
+[texture 1] +size (1, 1) +2.0 2.0 2.0 1.0
+[texture 2] +size (1, 1) +3.0 3.0 3.0 1.0
You don't need to redeclare the textures if they don't change.