Extent function call tests with Queue semaphore commands. (#2369)

This commit is contained in:
Andreas Süßenbach 2025-11-25 13:39:06 +01:00 committed by GitHub
parent 6bbd8ccd68
commit 73121db60b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 37 additions and 0 deletions

View File

@ -564,6 +564,31 @@ int main( int /*argc*/, char ** /*argv*/ )
vk::Result result = device.waitForFences( fence, waitAll, timeout );
}
// Queue semaphore commands
{
vk::Device device;
vk::SemaphoreCreateInfo semaphoreCreateInfo;
vk::Semaphore semaphore;
vk::Result result = device.createSemaphore( &semaphoreCreateInfo, nullptr, &semaphore );
}
{
vk::Device device;
vk::SemaphoreCreateInfo semaphoreCreateInfo;
vk::Semaphore semaphore = device.createSemaphore( semaphoreCreateInfo );
}
{
vk::Device device;
vk::Semaphore semaphore;
vk::AllocationCallbacks allocationCallbacks;
device.destroySemaphore( semaphore, &allocationCallbacks );
}
{
vk::Device device;
vk::Semaphore semaphore;
device.destroySemaphore( semaphore );
}
#if 0
{
vk::PhysicalDevice physicalDevice;

View File

@ -287,5 +287,17 @@ int main( int /*argc*/, char ** /*argv*/ )
vk::Result result = device.waitForFences( fence, waitAll, timeout );
}
// Queue semaphore commands
{
vk::raii::Device device = nullptr;
vk::SemaphoreCreateInfo semaphoreCreateInfo;
vk::raii::Semaphore semaphore = device.createSemaphore( semaphoreCreateInfo );
}
{
vk::raii::Device device = nullptr;
vk::SemaphoreCreateInfo semaphoreCreateInfo;
vk::raii::Semaphore semaphore( device, semaphoreCreateInfo );
}
return 0;
}