Skip to content

Commit

Permalink
nvapi-d3d12: Add stub for NvAPI_D3D12_SetDepthBoundsTestValues
Browse files Browse the repository at this point in the history
  • Loading branch information
jp7677 committed Oct 2, 2021
1 parent c69ac7c commit ca1d79c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/nvapi_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,16 @@ extern "C" {
pDevice->CreateGraphicsPipelineState(pPSODesc, __uuidof(ID3D12PipelineState), reinterpret_cast<void**>(ppPSO));
return Ok(str::format(n, " ", (*ppExtensions)->psoExtension, " (", fromPsoExtension((*ppExtensions)->psoExtension), ")"), alreadyLoggedOk);
}

NvAPI_Status __cdecl NvAPI_D3D12_SetDepthBoundsTestValues(ID3D12GraphicsCommandList *pCommandList, const float minDepth, const float maxDepth) {
static bool alreadyLoggedOk = false;
constexpr auto n = __func__;

if (pCommandList == nullptr)
return InvalidArgument(n);

// TODO: Add an actual implementation once VKD3D-Proton supports it.

return Ok(n, alreadyLoggedOk);
}
}
1 change: 1 addition & 0 deletions src/nvapi_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ extern "C" {
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D12_GetGraphicsCapabilities)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D12_IsFatbinPTXSupported)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D12_CreateGraphicsPipelineState)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D12_SetDepthBoundsTestValues)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D_GetObjectHandleForResource)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D_SetResourceHint)
INSERT_AND_RETURN_WHEN_EQUALS(NvAPI_D3D_GetCurrentSLIState)
Expand Down

0 comments on commit ca1d79c

Please sign in to comment.