Fixes for D3D12 on Linux.

This commit is contained in:
Бранимир Караџић 2020-07-02 19:50:09 -07:00
parent b96deb1cec
commit 006548e00f
3 changed files with 4 additions and 4 deletions

View File

@ -10,7 +10,7 @@
#include "dxgi.h"
#include "renderer_d3d.h"
#if !BX_PLATFORM_WINDOWS
#if !BX_PLATFORM_WINDOWS && !BX_PLATFORM_LINUX
# include <inspectable.h>
# if BX_PLATFORM_WINRT
# include <windows.ui.xaml.media.dxinterop.h>

View File

@ -8,7 +8,7 @@
#if BGFX_CONFIG_RENDERER_DIRECT3D12
# include "renderer_d3d12.h"
#if !BX_PLATFORM_WINDOWS
#if !BX_PLATFORM_WINDOWS && !BX_PLATFORM_LINUX
# include <inspectable.h>
# if BX_PLATFORM_WINRT
# include <windows.ui.xaml.media.dxinterop.h>

View File

@ -6,10 +6,10 @@
#ifndef BGFX_RENDERER_D3D12_H_HEADER_GUARD
#define BGFX_RENDERER_D3D12_H_HEADER_GUARD
#define USE_D3D12_DYNAMIC_LIB BX_PLATFORM_WINDOWS
#define USE_D3D12_DYNAMIC_LIB (BX_PLATFORM_WINDOWS || BX_PLATFORM_LINUX)
#include <sal.h>
#if BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT
#if BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT || BX_PLATFORM_LINUX
# include <d3d12.h>
#else
# if !BGFX_CONFIG_DEBUG