Get the DXGI resource associated with a texture.
IDXGIResource* SDL_GetTextureDXGIResource(SDL_Texture *texture);
|texture||the texture from which to get the associated resource|
Returns the DXGI resource associated with given texture or NULL if it is not available; call SDL_GetError() for more information.
This is available when using the direct3d11 and direct3d12 renderers.
Once you are done using the resource, you should release it to avoid a resource leak.
This function is available since SDL 3.0.0.