Skip to content

Commit 11c982f

Browse files
committed
Update VisualC-GDK for GPU
1 parent dc22929 commit 11c982f

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

VisualC-GDK/SDL/SDL.vcxproj

+6
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@
325325
<ClInclude Include="..\..\include\SDL3\SDL_events.h" />
326326
<ClInclude Include="..\..\include\SDL3\SDL_filesystem.h" />
327327
<ClInclude Include="..\..\include\SDL3\SDL_gamepad.h" />
328+
<ClInclude Include="..\..\include\SDL3\SDL_gpu.h" />
328329
<ClInclude Include="..\..\include\SDL3\SDL_guid.h" />
329330
<ClInclude Include="..\..\include\SDL3\SDL_haptic.h" />
330331
<ClInclude Include="..\..\include\SDL3\SDL_hints.h" />
@@ -419,6 +420,7 @@
419420
<ClInclude Include="..\..\src\events\SDL_touch_c.h" />
420421
<ClInclude Include="..\..\src\events\SDL_windowevents_c.h" />
421422
<ClInclude Include="..\..\src\filesystem\SDL_sysfilesystem.h" />
423+
<ClInclude Include="..\..\src\gpu\SDL_sysgpu.h" />
422424
<ClInclude Include="..\..\src\haptic\SDL_haptic_c.h" />
423425
<ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
424426
<ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />
@@ -858,6 +860,10 @@
858860
<ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb_lsx.c" />
859861
<ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb_sse.c" />
860862
<ClCompile Include="..\..\src\video\yuv2rgb\yuv_rgb_std.c" />
863+
<ClCompile Include="..\..\src\gpu\SDL_gpu.c" />
864+
<ClCompile Include="..\..\src\gpu\d3d12\SDL_gpu_d3d11.c" />
865+
<ClCompile Include="..\..\src\gpu\d3d12\SDL_gpu_d3d12.c" />
866+
<ClCompile Include="..\..\src\gpu\d3d12\SDL_gpu_vulkan.c" />
861867
</ItemGroup>
862868
<ItemGroup>
863869
<ResourceCompile Include="..\..\src\core\windows\version.rc" />

VisualC-GDK/SDL/SDL.vcxproj.filters

+6
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@
5757
<ClCompile Include="..\..\src\events\SDL_windowevents.c" />
5858
<ClCompile Include="..\..\src\file\SDL_iostream.c" />
5959
<ClCompile Include="..\..\src\filesystem\gdk\SDL_sysfilesystem.cpp" />
60+
<ClCompile Include="..\..\src\gpu\SDL_gpu.c" />
61+
<ClCompile Include="..\..\src\gpu\d3d12\SDL_gpu_d3d11.c" />
62+
<ClCompile Include="..\..\src\gpu\d3d12\SDL_gpu_d3d12.c" />
63+
<ClCompile Include="..\..\src\gpu\d3d12\SDL_gpu_vulkan.c" />
6064
<ClCompile Include="..\..\src\haptic\dummy\SDL_syshaptic.c" />
6165
<ClCompile Include="..\..\src\haptic\SDL_haptic.c" />
6266
<ClCompile Include="..\..\src\haptic\windows\SDL_dinputhaptic.c" />
@@ -248,6 +252,7 @@
248252
<ClInclude Include="..\..\include\SDL3\SDL_events.h" />
249253
<ClInclude Include="..\..\include\SDL3\SDL_filesystem.h" />
250254
<ClInclude Include="..\..\include\SDL3\SDL_gamepad.h" />
255+
<ClInclude Include="..\..\include\SDL3\SDL_gpu.h" />
251256
<ClInclude Include="..\..\include\SDL3\SDL_guid.h" />
252257
<ClInclude Include="..\..\include\SDL3\SDL_haptic.h" />
253258
<ClInclude Include="..\..\include\SDL3\SDL_hints.h" />
@@ -340,6 +345,7 @@
340345
<ClInclude Include="..\..\src\filesystem\SDL_sysfilesystem.h">
341346
<Filter>filesystem</Filter>
342347
</ClInclude>
348+
<ClInclude Include="..\..\src\gpu\SDL_sysgpu.h" />
343349
<ClInclude Include="..\..\src\haptic\SDL_haptic_c.h" />
344350
<ClInclude Include="..\..\src\haptic\SDL_syshaptic.h" />
345351
<ClInclude Include="..\..\src\haptic\windows\SDL_dinputhaptic_c.h" />

include/build_config/SDL_build_config_wingdk.h

+6
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@
241241
/* Enable Vulkan support */
242242
#define SDL_VIDEO_VULKAN 1
243243

244+
#define SDL_GPU_D3D11 HAVE_D3D11_H
245+
#if !defined(SDL_GPU_D3D12)
246+
#define SDL_GPU_D3D12 1
247+
#endif
248+
#define SDL_GPU_VULKAN SDL_VIDEO_VULKAN
249+
244250
/* Enable system power support */
245251
#define SDL_POWER_WINDOWS 1
246252

include/build_config/SDL_build_config_xbox.h

+4
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,10 @@
211211
#define SDL_VIDEO_RENDER_D3D12 1
212212
#endif
213213

214+
#if !defined(SDL_GPU_D3D12)
215+
#define SDL_GPU_D3D12 1
216+
#endif
217+
214218
/* Enable OpenGL support */
215219
#ifndef SDL_VIDEO_OPENGL
216220
#define SDL_VIDEO_OPENGL 1

0 commit comments

Comments
 (0)