On Fri Apr 28 13:17:02 2023 +0000, Giovanni Mascellani wrote:
Given this is a relatively complex operation, it wouldn't be bad to test some less trivial input values and check that our implementation is reasonably similar to native.
It doesn't make for a good pixel test (same issue as dsx/dsy where the values have to be something pretty specific to get interesting results), but changing the test to something like this at least shows that the `sample_d` instruction is getting its input from the right place:
``` SamplerState s; Texture2D t;
float4 main() : sv_target { return t.SampleGrad(s, float2(0.5, 0.5), float2(0.1, 0.2), float2(0.3, 0.4)); } ```