Added SDL_PROP_RENDERER_GPU_DEVICE_POINTER

Fixes https://github.com/libsdl-org/SDL/issues/11600
This commit is contained in:
Sam Lantinga
2024-12-23 16:30:18 -08:00
parent 7a22076a7c
commit 969f03d9f0
3 changed files with 12 additions and 0 deletions

View File

@@ -441,6 +441,11 @@ extern SDL_DECLSPEC const char * SDLCALL SDL_GetRendererName(SDL_Renderer *rende
* swapchain images, or potential frames in flight, used by the Vulkan
* renderer
*
* With the gpu renderer:
*
* - `SDL_PROP_RENDERER_GPU_DEVICE_POINTER`: the SDL_GPUDevice associated
* with the renderer
*
* \param renderer the rendering context.
* \returns a valid property ID on success or 0 on failure; call
* SDL_GetError() for more information.
@@ -474,6 +479,7 @@ extern SDL_DECLSPEC SDL_PropertiesID SDLCALL SDL_GetRendererProperties(SDL_Rende
#define SDL_PROP_RENDERER_VULKAN_GRAPHICS_QUEUE_FAMILY_INDEX_NUMBER "SDL.renderer.vulkan.graphics_queue_family_index"
#define SDL_PROP_RENDERER_VULKAN_PRESENT_QUEUE_FAMILY_INDEX_NUMBER "SDL.renderer.vulkan.present_queue_family_index"
#define SDL_PROP_RENDERER_VULKAN_SWAPCHAIN_IMAGE_COUNT_NUMBER "SDL.renderer.vulkan.swapchain_image_count"
#define SDL_PROP_RENDERER_GPU_DEVICE_POINTER "SDL.renderer.gpu.device"
/**
* Get the output size in pixels of a rendering context.