MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-ValidationLayers / GetCounterValue

Method GetCounterValue

tests/framework/binding.cpp:1023–1031  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1021}
1022
1023uint64_t Semaphore::GetCounterValue(bool use_khr) const {
1024 uint64_t counter = 0;
1025 if (use_khr) {
1026 vk::GetSemaphoreCounterValueKHR(device(), handle(), &counter);
1027 } else {
1028 vk::GetSemaphoreCounterValue(device(), handle(), &counter);
1029 }
1030 return counter;
1031}
1032
1033#ifdef VK_USE_PLATFORM_WIN32_KHR
1034VkResult Semaphore::ExportHandle(HANDLE& win32_handle, VkExternalSemaphoreHandleTypeFlagBits handle_type) {

Callers 3

TEST_FFunction · 0.80
TEST_FFunction · 0.80
TEST_FFunction · 0.80

Calls 2

GetSemaphoreCounterValueFunction · 0.85

Tested by

no test coverage detected