June 7, 2023
9:04 a.m.
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.
-- https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/218#note_34942