On Mon Jun 9 11:17:58 2025 +0000, Nikolay Sivov wrote:
Checking every subresource seems unnecessary. I think it's enough to have tests for count>1 and index=1. Case for count==1 is the same as our existing tests, right?
The case for textures with only one subresource has a special behavior. For example, you can create a subresource surface from a surface with only one subresource. And then you create a bitmap from the subresource surface. After that, ID2D1Bitmap1_GetSurface() for the bitmap returns the parent surface, not the subresource surface. This is checked by `expect_parent_surface` in `check_bitmap_subresource_surface`.
For other cases, they are used to cover d2d_resource_get_rtv/srv_desc(). 4 subsoureces are not that many. So I think it's better to just test all subresources.