mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Added D3D12EnableExperimentalFeatures.
This commit is contained in:
@@ -534,10 +534,11 @@ namespace bgfx { namespace d3d12
|
||||
}
|
||||
|
||||
#if USE_D3D12_DYNAMIC_LIB
|
||||
static PFN_D3D12_CREATE_DEVICE D3D12CreateDevice;
|
||||
static PFN_D3D12_GET_DEBUG_INTERFACE D3D12GetDebugInterface;
|
||||
static PFN_D3D12_SERIALIZE_ROOT_SIGNATURE D3D12SerializeRootSignature;
|
||||
static PFN_CREATE_DXGI_FACTORY CreateDXGIFactory1;
|
||||
static PFN_D3D12_ENABLE_EXPERIMENTAL_FEATURES D3D12EnableExperimentalFeatures;
|
||||
static PFN_D3D12_CREATE_DEVICE D3D12CreateDevice;
|
||||
static PFN_D3D12_GET_DEBUG_INTERFACE D3D12GetDebugInterface;
|
||||
static PFN_D3D12_SERIALIZE_ROOT_SIGNATURE D3D12SerializeRootSignature;
|
||||
static PFN_CREATE_DXGI_FACTORY CreateDXGIFactory1;
|
||||
|
||||
typedef HANDLE (WINAPI* PFN_CREATE_EVENT_EX_A)(LPSECURITY_ATTRIBUTES _attrs, LPCSTR _name, DWORD _flags, DWORD _access);
|
||||
static PFN_CREATE_EVENT_EX_A CreateEventExA;
|
||||
@@ -685,6 +686,9 @@ namespace bgfx { namespace d3d12
|
||||
|
||||
errorState = ErrorState::LoadedD3D12;
|
||||
|
||||
D3D12EnableExperimentalFeatures = (PFN_D3D12_ENABLE_EXPERIMENTAL_FEATURES)bx::dlsym(m_d3d12dll, "D3D12EnableExperimentalFeatures");
|
||||
BX_WARN(NULL != D3D12EnableExperimentalFeatures, "Function D3D12EnableExperimentalFeatures not found.");
|
||||
|
||||
D3D12CreateDevice = (PFN_D3D12_CREATE_DEVICE)bx::dlsym(m_d3d12dll, "D3D12CreateDevice");
|
||||
BX_WARN(NULL != D3D12CreateDevice, "Function D3D12CreateDevice not found.");
|
||||
|
||||
|
||||
@@ -83,6 +83,8 @@ extern "C" uint64_t WINAPI bgfx_PIXEventsReplaceBlock(bool _g
|
||||
|
||||
namespace bgfx { namespace d3d12
|
||||
{
|
||||
typedef HRESULT (WINAPI* PFN_D3D12_ENABLE_EXPERIMENTAL_FEATURES)(uint32_t _numFeatures, const IID* _iids, void* _configurationStructs, uint32_t* _configurationStructSizes);
|
||||
|
||||
struct Rdt
|
||||
{
|
||||
enum Enum
|
||||
|
||||
Reference in New Issue
Block a user