mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-16 11:08:54 +00:00
Build config flags are either defined or undefined, never 0
This is for consistency with CMake build configuration Also added SDL_VIDEO_RENDER_GPU to the non-CMake build configurations
This commit is contained in:
parent
e3fd581aca
commit
387774ab8a
59 changed files with 212 additions and 306 deletions
|
|
@ -127,7 +127,7 @@ static const SDL_GPUBootstrap *backends[] = {
|
|||
#ifdef SDL_GPU_D3D12
|
||||
&D3D12Driver,
|
||||
#endif
|
||||
#if defined(SDL_GPU_VULKAN) && SDL_GPU_VULKAN
|
||||
#ifdef SDL_GPU_VULKAN
|
||||
&VulkanDriver,
|
||||
#endif
|
||||
#ifdef SDL_GPU_D3D11
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_GPU_D3D11
|
||||
#ifdef SDL_GPU_D3D11
|
||||
|
||||
#define D3D11_NO_HELPERS
|
||||
#define CINTERFACE
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_GPU_D3D12
|
||||
#ifdef SDL_GPU_D3D12
|
||||
|
||||
#include "../../video/directx/SDL_d3d12.h"
|
||||
#include "../SDL_sysgpu.h"
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_GPU_METAL
|
||||
#ifdef SDL_GPU_METAL
|
||||
|
||||
#include <Metal/Metal.h>
|
||||
#include <QuartzCore/CoreAnimation.h>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
#include "SDL_internal.h"
|
||||
|
||||
#if SDL_GPU_VULKAN
|
||||
#ifdef SDL_GPU_VULKAN
|
||||
|
||||
// Needed for VK_KHR_portability_subset
|
||||
#define VK_ENABLE_BETA_EXTENSIONS
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue