[PATCH v5 vkd3d 13/13] tests: Add tests for texture gather methods.

Matteo Bruni matteo.mystral at gmail.com
Wed Jan 26 08:53:57 CST 2022


On Wed, Dec 22, 2021 at 12:23 AM Zebediah Figura
<zfigura at codeweavers.com> wrote:
>
> From: Francisco Casas <fcasas at codeweavers.com>
>
> Signed-off-by: Francisco Casas <fcasas at codeweavers.com>
> Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
> ---
> v5: Split from the previous patch, add require directives to allow the tests to
> pass with native d3dcompiler.
>
>  Makefile.am                          |   3 +
>  tests/hlsl-gather-offset.shader_test | 101 +++++++++++++++++++++++
>  tests/hlsl-gather.shader_test        | 115 +++++++++++++++++++++++++++
>  tests/shader_runner_d3d12.c          |  63 ++++++++++++++-
>  4 files changed, 280 insertions(+), 2 deletions(-)
>  create mode 100644 tests/hlsl-gather-offset.shader_test
>  create mode 100644 tests/hlsl-gather.shader_test

> diff --git a/tests/hlsl-gather.shader_test b/tests/hlsl-gather.shader_test
> new file mode 100644
> index 000000000..57af23d02
> --- /dev/null
> +++ b/tests/hlsl-gather.shader_test

> +[pixel shader]
> +SamplerState s;
> +Texture2D t;
> +
> +float4 main() : sv_target
> +{
> +    return t.GatherGreen(s, float2(0.2, 0.2), int2(0, 0), int2(0, 0), int2(0, 0), int2(0, 0));
> +}
> +

It might be interesting to add a test with multiple non-zero offsets.



More information about the wine-devel mailing list