directx - How do I stretch a sub-region of a ID3D11Texture2D? -
my component given source id3d11texture2d
buffer that, of time, copy staging id3d11texture2d
buffer using id3d11devicecontext::copyresource
. these 2 buffers same size.
sometimes, want copy rectangular sub-region of source buffer staging buffer , stretch staging buffer still same size. rectangular sub-region has same aspect ratio source.
the staging buffer never used rendering. it's saved media file.
Comments
Post a Comment