On 26 September 2018 at 21:18, Henri Verbeet hverbeet@gmail.com wrote:
I don't think you need a separate view field if you have a bitmap. I think the rendertarget view should be stored in the d2d_bitmap structure. I.e., the same way the shader resource view is part of that structure.
Actually, related to that, I imagine SetTarget() should check that the bitmap has D2D1_BITMAP_OPTIONS_TARGET.