Update DDI for SignDxbc runtime callback

This commit is contained in:
Tanner Van De Walle 2022-10-18 13:51:25 -07:00
Родитель daee5f1780
Коммит 64bbfacbc7
3 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -50,5 +50,6 @@ namespace D3D9on12
const D3D9ON12_PRIVATE_CALLBACKS m_privateCallbacks;
const bool m_bSupportsNewPresent;
const bool m_bSupportsShaderSigning;
};
};

Просмотреть файл

@ -40,10 +40,12 @@ typedef struct _D3D9ON12_PRESENTCB_ARGS
typedef HRESULT(CALLBACK* PFND3D9ON12_PRESENTCB)(_In_ HANDLE, _In_ D3D9ON12_PRESENTCB_ARGS*);
typedef HRESULT(CALLBACK* PFND3D9ON12_SIGNDXBCCB)(_Inout_ BYTE* pData, _In_ UINT32 byteCount);
typedef struct _D3D9ON12_PRIVATE_CALLBACKS
{
PFND3D9ON12_PRESENTCB pfnPresentCB;
PFND3D9ON12_SIGNDXBCCB pfnSignDxbcCB;
} D3D9ON12_PRIVATE_CALLBACKS;
typedef struct _D3D9ON12_CREATE_DEVICE_ARGS2

Просмотреть файл

@ -207,7 +207,8 @@ namespace D3D9on12
m_AdapterCallbacks( *OpenAdapter.pAdapterCallbacks ),
m_pDevice(nullptr),
m_privateCallbacks(pArgs->D3D9On12InterfaceVersion >= 2 ? *pArgs->pPrivateCallbacks : D3D9ON12_PRIVATE_CALLBACKS()),
m_bSupportsNewPresent(pArgs->D3D9On12InterfaceVersion >= 2 ? m_privateCallbacks.pfnPresentCB != nullptr : false)
m_bSupportsNewPresent(pArgs->D3D9On12InterfaceVersion >= 2 ? m_privateCallbacks.pfnPresentCB != nullptr : false),
m_bSupportsShaderSigning(pArgs->D3D9On12InterfaceVersion >= 2 ? m_privateCallbacks.pfnSignDxbcCB != nullptr : false)
{
if (RegistryConstants::g_cBreakOnLoad)
{