Scroll to navigation

SDL_GetTextureDXGIResource(3) SDL3 FUNCTIONS SDL_GetTextureDXGIResource(3)

NAME

SDL_GetTextureDXGIResource - Get the DXGI resource associated with a texture.

SYNOPSIS

#include "SDL3/SDL.h"
IDXGIResource* SDL_GetTextureDXGIResource(SDL_Texture *texture);

DESCRIPTION

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.

FUNCTION PARAMETERS

the texture from which to get the associated resource

RETURN VALUE

Returns the DXGI resource associated with given texture or NULL if it is not available; call SDL_GetError () for more information.

AVAILABILITY

This function is available since SDL 3.0.0.

SDL 3.0.0 SDL