There is a texture created by the following function call:
direct3d_device->CreateTexture( width, height, 1, D3DUSAGE_RENDERTARGET, get_pixel_format(), D3DPOOL_DEFAULT, &direct3d_texture ); As you know, textures created with the D3DPOOL_DEFAULT flag cannot be blocked for reading and writing.
It is necessary to read part of the texture (no need to write). Is there a way around this restriction? Create texture with flag D3DUSAGE_RENDERTARGET | D3DUSAGE_DYNAMIC D3DUSAGE_RENDERTARGET | D3DUSAGE_DYNAMIC failed.