Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/tests/d3dx10.c:
+} + +static void *get_readback_data(struct resource_readback *rb, uint32_t x, uint32_t y, unsigned byte_width) +{ + return (uint8_t *)rb->map_desc.pData + y * rb->map_desc.RowPitch + x * byte_width; +} + +static uint32_t get_readback_u32(struct resource_readback *rb, uint32_t x, uint32_t y) +{ + return *(uint32_t *)get_readback_data(rb, x, y, sizeof(uint32_t)); +} + +static uint32_t get_readback_color(struct resource_readback *rb, uint32_t x, uint32_t y) +{ + return get_readback_u32(rb, x, y); +} I think this function is mostly a historical artifact of the d3d10core tests: they originally supported readback only from 8 bpc UNORM texture formats (see e.g. 86aaebc48aa1). We probably don't need to bring it here, likewise for the "color" wording.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9089#note_117568