[PATCH vkd3d 4/5] tests: Introduce check_sub_resource_uvec4().

Henri Verbeet hverbeet at gmail.com
Wed Oct 31 12:48:35 CDT 2018


On Wed, 31 Oct 2018 at 18:49, Józef Kucia <joseph.kucia at gmail.com> wrote:
> +#define check_sub_resource_uvec4(a, b, c, d, e) check_sub_resource_uvec4_(__LINE__, a, b, c, d, e)
> +static void check_sub_resource_uvec4_(unsigned int line, ID3D12Resource *texture,
> +        unsigned int sub_resource_idx, ID3D12CommandQueue *queue, ID3D12GraphicsCommandList *command_list,
> +        const struct uvec4 *expected_value)
> +{
> +    struct resource_readback rb;
> +    struct uvec4 value = {};
> +    unsigned int x = 0, y;
> +    bool all_match = true;
> +
> +    get_texture_readback_with_command_list(texture, 0, &rb, queue, command_list);
You don't seem to be using the sub-resource index here.



More information about the wine-devel mailing list