mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-23 19:48:29 +00:00
Renamed SDL_GetGPUDeviceDebugProperties() to SDL_GetGPUDeviceProperties()
We may want to extend this with additional properties in the future. Also removed SDL_PROP_GPU_DEVICE_DEBUG_VULKAN_CONFORMANCE_STRING. If we need feature level queries we can add them in the future.
This commit is contained in:
@@ -765,7 +765,7 @@ struct D3D12Renderer
|
||||
// FIXME: these might not be necessary since we're not using custom heaps
|
||||
bool UMA;
|
||||
bool UMACacheCoherent;
|
||||
SDL_PropertiesID debugProps;
|
||||
SDL_PropertiesID props;
|
||||
Uint32 allowedFramesInFlight;
|
||||
|
||||
// Indirect command signatures
|
||||
@@ -1536,7 +1536,7 @@ static void D3D12_INTERNAL_DestroyRenderer(D3D12Renderer *renderer)
|
||||
SDL_free(renderer->graphicsPipelinesToDestroy);
|
||||
SDL_free(renderer->computePipelinesToDestroy);
|
||||
|
||||
SDL_DestroyProperties(renderer->debugProps);
|
||||
SDL_DestroyProperties(renderer->props);
|
||||
|
||||
// Tear down D3D12 objects
|
||||
if (renderer->indirectDrawCommandSignature) {
|
||||
@@ -1625,10 +1625,10 @@ static void D3D12_DestroyDevice(SDL_GPUDevice *device)
|
||||
SDL_free(device);
|
||||
}
|
||||
|
||||
static SDL_PropertiesID D3D12_GetDeviceDebugProperties(SDL_GPUDevice *device)
|
||||
static SDL_PropertiesID D3D12_GetDeviceProperties(SDL_GPUDevice *device)
|
||||
{
|
||||
D3D12Renderer *renderer = (D3D12Renderer *)device->driverData;
|
||||
return renderer->debugProps;
|
||||
return renderer->props;
|
||||
}
|
||||
|
||||
// Barriers
|
||||
@@ -8626,7 +8626,7 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
|
||||
CHECK_D3D12_ERROR_AND_RETURN("Could not get adapter driver version", NULL);
|
||||
}
|
||||
|
||||
renderer->debugProps = SDL_CreateProperties();
|
||||
renderer->props = SDL_CreateProperties();
|
||||
if (verboseLogs) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_GPU, "SDL_GPU Driver: D3D12");
|
||||
}
|
||||
@@ -8634,8 +8634,8 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
|
||||
// Record device name
|
||||
char *deviceName = SDL_iconv_wchar_utf8(&adapterDesc.Description[0]);
|
||||
SDL_SetStringProperty(
|
||||
renderer->debugProps,
|
||||
SDL_PROP_GPU_DEVICE_DEBUG_NAME_STRING,
|
||||
renderer->props,
|
||||
SDL_PROP_GPU_DEVICE_NAME_STRING,
|
||||
deviceName);
|
||||
if (verboseLogs) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_GPU, "D3D12 Adapter: %s", deviceName);
|
||||
@@ -8653,8 +8653,8 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
|
||||
HIWORD(umdVersion.LowPart),
|
||||
LOWORD(umdVersion.LowPart));
|
||||
SDL_SetStringProperty(
|
||||
renderer->debugProps,
|
||||
SDL_PROP_GPU_DEVICE_DEBUG_DRIVER_VERSION_STRING,
|
||||
renderer->props,
|
||||
SDL_PROP_GPU_DEVICE_DRIVER_VERSION_STRING,
|
||||
driverVer);
|
||||
if (verboseLogs) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_GPU, "D3D12 Driver: %s", driverVer);
|
||||
|
Reference in New Issue
Block a user