Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jp7677/dxvk-nvapi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Peters <jp7677@gmail.com>2021-09-15 21:29:55 +0300
committerJens Peters <jp7677@gmail.com>2021-09-15 21:29:55 +0300
commit1f3a63bd6622310a6e58ea327952ed19ce5ebd74 (patch)
treebdb926c578781b4ea57dc78425fc8172871c576d
parentadcbd27f645aa612ac5c42793a64e2e9a27d4ce2 (diff)
tests: Resolve todo's
-rw-r--r--tests/nvapi_d3d12.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/nvapi_d3d12.cpp b/tests/nvapi_d3d12.cpp
index 711c767..aecef09 100644
--- a/tests/nvapi_d3d12.cpp
+++ b/tests/nvapi_d3d12.cpp
@@ -139,12 +139,14 @@ TEST_CASE("D3D12 methods succeed", "[.d3d12]") {
}
SECTION("GetCudaTextureObject/GetCudaSurfaceObject returns OK") {
- D3D12_CPU_DESCRIPTOR_HANDLE srvHandle = {0};
- D3D12_CPU_DESCRIPTOR_HANDLE samplerHandle = {0};
- REQUIRE_CALL(device, GetCudaTextureObject(_, _, nullptr)) // TODO: We should use `srvHandle, samplerHandle` here instead of `_, _`, investigate why this wont compile (no match for ‘operator==’ (operand types are ‘D3D12_CPU_DESCRIPTOR_HANDLE’ and ‘const D3D12_CPU_DESCRIPTOR_HANDLE’))
+ D3D12_CPU_DESCRIPTOR_HANDLE srvHandle = {0x123456};
+ D3D12_CPU_DESCRIPTOR_HANDLE samplerHandle = {0x654321};
+ REQUIRE_CALL(device, GetCudaTextureObject(_, _, nullptr))
+ .LR_WITH(_1.ptr == srvHandle.ptr && _2.ptr == samplerHandle.ptr)
.RETURN(S_OK)
.TIMES(1);
- REQUIRE_CALL(device, GetCudaSurfaceObject(_, nullptr)) // TODO: We should use `srvHandle` here instead of `_`, investigate why this wont compile (no match for ‘operator==’ (operand types are ‘D3D12_CPU_DESCRIPTOR_HANDLE’ and ‘const D3D12_CPU_DESCRIPTOR_HANDLE’))
+ REQUIRE_CALL(device, GetCudaSurfaceObject(_, nullptr))
+ .LR_WITH(_1.ptr == srvHandle.ptr)
.RETURN(S_OK)
.TIMES(1);