Skip to content

Commit 5ec6147

Browse files
maia-sflibitijibibo
authored andcommitted
Add missing type suffix to SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION prop
1 parent 6b07e13 commit 5ec6147

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/SDL3/SDL_gpu.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,7 +2309,7 @@ extern SDL_DECLSPEC SDL_GPUDevice * SDLCALL SDL_CreateGPUDevice(
23092309
*
23102310
* With the Vulkan backend:
23112311
*
2312-
* - `SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION`: By
2312+
* - `SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION_BOOLEAN`: By
23132313
* default, Vulkan device enumeration includes drivers of all types, including
23142314
* software renderers (for example, the Lavapipe Mesa driver). This can be
23152315
* useful if your application _requires_ SDL_GPU, but if you can provide your
@@ -2346,7 +2346,7 @@ extern SDL_DECLSPEC SDL_GPUDevice * SDLCALL SDL_CreateGPUDeviceWithProperties(
23462346
#define SDL_PROP_GPU_DEVICE_CREATE_SHADERS_METALLIB_BOOLEAN "SDL.gpu.device.create.shaders.metallib"
23472347
#define SDL_PROP_GPU_DEVICE_CREATE_D3D12_ALLOW_FEWER_RESOURCE_SLOTS_BOOLEAN "SDL.gpu.device.create.d3d12.allowtier1resourcebinding"
23482348
#define SDL_PROP_GPU_DEVICE_CREATE_D3D12_SEMANTIC_NAME_STRING "SDL.gpu.device.create.d3d12.semantic"
2349-
#define SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION "SDL.gpu.device.create.vulkan.requirehardwareacceleration"
2349+
#define SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION_BOOLEAN "SDL.gpu.device.create.vulkan.requirehardwareacceleration"
23502350

23512351
/**
23522352
* Destroys a GPU context previously returned by SDL_CreateGPUDevice.

src/gpu/vulkan/SDL_gpu_vulkan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11828,7 +11828,7 @@ static bool VULKAN_PrepareDriver(SDL_VideoDevice *_this, SDL_PropertiesID props)
1182811828
renderer->desiredDeviceFeatures.sampleRateShading = VK_TRUE;
1182911829
renderer->desiredDeviceFeatures.imageCubeArray = VK_TRUE;
1183011830

11831-
renderer->requireHardwareAcceleration = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION, false);
11831+
renderer->requireHardwareAcceleration = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION_BOOLEAN, false);
1183211832

1183311833
result = VULKAN_INTERNAL_PrepareVulkan(renderer);
1183411834
if (result) {
@@ -11879,7 +11879,7 @@ static SDL_GPUDevice *VULKAN_CreateDevice(bool debugMode, bool preferLowPower, S
1187911879
renderer->desiredDeviceFeatures.sampleRateShading = VK_TRUE;
1188011880
renderer->desiredDeviceFeatures.imageCubeArray = VK_TRUE;
1188111881

11882-
renderer->requireHardwareAcceleration = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION, false);
11882+
renderer->requireHardwareAcceleration = SDL_GetBooleanProperty(props, SDL_PROP_GPU_DEVICE_CREATE_VULKAN_REQUIRE_HARDWARE_ACCELERATION_BOOLEAN, false);
1188311883

1188411884
if (!VULKAN_INTERNAL_PrepareVulkan(renderer)) {
1188511885
SET_STRING_ERROR("Failed to initialize Vulkan!");

0 commit comments

Comments
 (0)