mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-28 23:49:12 +00:00
Compilation without vulkan: SDL_GPU_VULKAN is always defined for some plateform (at android, macos), test against 0 or 1
This commit is contained in:
parent
defbf67306
commit
41810c823d
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ static const SDL_GPUBootstrap *backends[] = {
|
||||||
#ifdef SDL_GPU_D3D12
|
#ifdef SDL_GPU_D3D12
|
||||||
&D3D12Driver,
|
&D3D12Driver,
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_GPU_VULKAN
|
#if defined(SDL_GPU_VULKAN) && SDL_GPU_VULKAN
|
||||||
&VulkanDriver,
|
&VulkanDriver,
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_GPU_D3D11
|
#ifdef SDL_GPU_D3D11
|
||||||
|
|
|
@ -33,7 +33,7 @@ typedef struct GPU_ShaderModuleSource
|
||||||
SDL_GPUShaderFormat format;
|
SDL_GPUShaderFormat format;
|
||||||
} GPU_ShaderModuleSource;
|
} GPU_ShaderModuleSource;
|
||||||
|
|
||||||
#ifdef SDL_GPU_VULKAN
|
#if defined(SDL_GPU_VULKAN) && SDL_GPU_VULKAN
|
||||||
#define IF_VULKAN(...) __VA_ARGS__
|
#define IF_VULKAN(...) __VA_ARGS__
|
||||||
#define HAVE_SPIRV_SHADERS 1
|
#define HAVE_SPIRV_SHADERS 1
|
||||||
#include "shaders/spir-v.h"
|
#include "shaders/spir-v.h"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue