Re: [PATCH v2 0/7] MR9034: d3dx10: Add support for creating textures from images using shared code.
Matteo Bruni (@Mystral) commented about dlls/d3dx10_43/texture.c:
+ struct d3dx_pixels src_pixels, dst_pixels; + uint32_t dst_row_pitch, dst_slice_pitch; + + hr = d3dx_image_get_pixels(&image, i, j, &src_pixels); + if (FAILED(hr)) + break; + + hr = d3dx_calculate_pixels_size(fmt_desc->format, dst_size.width, dst_size.height, &dst_row_pitch, + &dst_slice_pitch); + if (FAILED(hr)) + break; + + set_d3dx_pixels(&dst_pixels, pixels_buffer, dst_row_pitch, dst_slice_pitch, NULL, dst_size.width, + dst_size.height, dst_size.depth, &unaligned_rect); + + hr = d3dx_load_pixels_from_pixels(&dst_pixels, fmt_desc, &src_pixels, src_desc, D3DX10_FILTER_POINT, 0); Just a question in passing, unrelated to the patch: do we know if `D3DX10_FILTER_POINT` is actually the default filter?
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9034#note_117122
participants (1)
-
Matteo Bruni (@Mystral)