SDL: GDK build: PFN_D3D12_XBOX_CREATE_DEVICE not defined for Xbox One (#10690)

From b1b4a9cd1b198c614a134086ac8461be0c46ea5f Mon Sep 17 00:00:00 2001
From: Daniel Ludwig <[EMAIL REDACTED]>
Date: Tue, 3 Sep 2024 15:09:00 +0200
Subject: [PATCH] GDK build: PFN_D3D12_XBOX_CREATE_DEVICE not defined for Xbox
 One (#10690)

---
 src/gpu/d3d12/SDL_gpu_d3d12.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gpu/d3d12/SDL_gpu_d3d12.c b/src/gpu/d3d12/SDL_gpu_d3d12.c
index 196cf8434dede..983044ff14e17 100644
--- a/src/gpu/d3d12/SDL_gpu_d3d12.c
+++ b/src/gpu/d3d12/SDL_gpu_d3d12.c
@@ -882,6 +882,11 @@ static ID3D12Device *s_Device;
 static ID3D12CommandQueue *s_CommandQueue;
 #endif
 
+#if defined(SDL_PLATFORM_XBOXONE)
+// This is not defined in d3d12_x.h.
+typedef HRESULT (D3DAPI* PFN_D3D12_XBOX_CREATE_DEVICE)(_In_opt_ IGraphicsUnknown*, _In_ const D3D12XBOX_CREATE_DEVICE_PARAMETERS*, _In_ REFIID, _Outptr_opt_ void**);
+#endif
+
 // Logging
 
 static void