gpu: Xbox buildfix
This commit is contained in:
parent
8a2e2e75d1
commit
db972604a8
1 changed files with 7 additions and 0 deletions
|
@ -8872,6 +8872,12 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
|
||||||
// Initialize the D3D12 debug layer, if applicable
|
// Initialize the D3D12 debug layer, if applicable
|
||||||
if (debugMode) {
|
if (debugMode) {
|
||||||
bool hasD3d12Debug = D3D12_INTERNAL_TryInitializeD3D12Debug(renderer);
|
bool hasD3d12Debug = D3D12_INTERNAL_TryInitializeD3D12Debug(renderer);
|
||||||
|
#if (defined(SDL_PLATFORM_XBOXONE) || defined(SDL_PLATFORM_XBOXSERIES))
|
||||||
|
if (hasD3d12Debug) {
|
||||||
|
SDL_LogInfo(
|
||||||
|
SDL_LOG_CATEGORY_GPU,
|
||||||
|
"Validation layers enabled, expect debug level performance!");
|
||||||
|
#else
|
||||||
if (hasDxgiDebug && hasD3d12Debug) {
|
if (hasDxgiDebug && hasD3d12Debug) {
|
||||||
SDL_LogInfo(
|
SDL_LogInfo(
|
||||||
SDL_LOG_CATEGORY_GPU,
|
SDL_LOG_CATEGORY_GPU,
|
||||||
|
@ -8880,6 +8886,7 @@ static SDL_GPUDevice *D3D12_CreateDevice(bool debugMode, bool preferLowPower, SD
|
||||||
SDL_LogWarn(
|
SDL_LogWarn(
|
||||||
SDL_LOG_CATEGORY_GPU,
|
SDL_LOG_CATEGORY_GPU,
|
||||||
"Validation layers partially enabled, some warnings may not be available");
|
"Validation layers partially enabled, some warnings may not be available");
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
SDL_LogWarn(
|
SDL_LogWarn(
|
||||||
SDL_LOG_CATEGORY_GPU,
|
SDL_LOG_CATEGORY_GPU,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue