Giovanni Mascellani (@giomasce) commented about tests/hlsl-getdimensions.shader_test:
+[require] +shader model >= 4.0
+[texture 0] +size (2, 3)
+1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 +1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0 1.0 0.0
+[pixel shader] +Texture2D t0 : register(t0);
+float4 main() : sv_target +{
- uint width, height;
- t0.GetDimensions(width, height);
Maybe we can test other overloads too? Including passing some arguments as `float` and others as `uint`, given that this context is a bit less trivial than what we're used to.