mirror of
https://github.com/charles-lunarg/vk-bootstrap.git
synced 2024-11-22 07:24:34 +00:00
Small cleanup of tests
This commit is contained in:
parent
6ab5669064
commit
622e36a487
@ -738,7 +738,7 @@ TEST_CASE("Querying Required Extension Features in 1.1", "[VkBootstrap.version]"
|
|||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("Querying Vulkan 1.1 and 1.2 features", "[VkBootstrap.version]") {
|
TEST_CASE("Querying Vulkan 1.1 and 1.2 features", "[VkBootstrap.version]") {
|
||||||
[[maybe_unused]] VulkanMock& mock = get_and_setup_default();
|
VulkanMock& mock = get_and_setup_default();
|
||||||
mock.api_version = VK_API_VERSION_1_2;
|
mock.api_version = VK_API_VERSION_1_2;
|
||||||
mock.physical_devices_details[0].properties.apiVersion = VK_API_VERSION_1_2;
|
mock.physical_devices_details[0].properties.apiVersion = VK_API_VERSION_1_2;
|
||||||
|
|
||||||
@ -751,7 +751,6 @@ TEST_CASE("Querying Vulkan 1.1 and 1.2 features", "[VkBootstrap.version]") {
|
|||||||
mock.physical_devices_details[0].add_features_pNext_struct(mock_vulkan_12_features);
|
mock.physical_devices_details[0].add_features_pNext_struct(mock_vulkan_12_features);
|
||||||
|
|
||||||
GIVEN("A working instance") {
|
GIVEN("A working instance") {
|
||||||
vkb::InstanceBuilder builder;
|
|
||||||
auto instance = get_headless_instance(2); // make sure we use 1.2
|
auto instance = get_headless_instance(2); // make sure we use 1.2
|
||||||
SECTION("Requires a device that supports multiview and bufferDeviceAddress") {
|
SECTION("Requires a device that supports multiview and bufferDeviceAddress") {
|
||||||
VkPhysicalDeviceVulkan11Features features_11{};
|
VkPhysicalDeviceVulkan11Features features_11{};
|
||||||
|
@ -22,7 +22,7 @@ TEST_CASE("Dedicated Compute Queue, Separate Transfer", "[UnitTests.queue_select
|
|||||||
SECTION("Dedicated Queue First") {
|
SECTION("Dedicated Queue First") {
|
||||||
std::vector<VkQueueFamilyProperties> families = {
|
std::vector<VkQueueFamilyProperties> families = {
|
||||||
VkQueueFamilyProperties{
|
VkQueueFamilyProperties{
|
||||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_GRAPHICS_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
||||||
};
|
};
|
||||||
@ -37,7 +37,7 @@ TEST_CASE("Dedicated Compute Queue, Separate Transfer", "[UnitTests.queue_select
|
|||||||
SECTION("Dedicated Queue Last") {
|
SECTION("Dedicated Queue Last") {
|
||||||
std::vector<VkQueueFamilyProperties> families = {
|
std::vector<VkQueueFamilyProperties> families = {
|
||||||
VkQueueFamilyProperties{
|
VkQueueFamilyProperties{
|
||||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_GRAPHICS_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
||||||
};
|
};
|
||||||
@ -55,7 +55,7 @@ TEST_CASE("Dedicated Transfer Queue, Separate Compute", "[UnitTests.queue_select
|
|||||||
SECTION("Dedicated Queue First") {
|
SECTION("Dedicated Queue First") {
|
||||||
std::vector<VkQueueFamilyProperties> families = {
|
std::vector<VkQueueFamilyProperties> families = {
|
||||||
VkQueueFamilyProperties{
|
VkQueueFamilyProperties{
|
||||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_GRAPHICS_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VkQueueFamilyProperties{ VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
||||||
};
|
};
|
||||||
@ -70,7 +70,7 @@ TEST_CASE("Dedicated Transfer Queue, Separate Compute", "[UnitTests.queue_select
|
|||||||
SECTION("Dedicated Queue Last") {
|
SECTION("Dedicated Queue Last") {
|
||||||
std::vector<VkQueueFamilyProperties> families = {
|
std::vector<VkQueueFamilyProperties> families = {
|
||||||
VkQueueFamilyProperties{
|
VkQueueFamilyProperties{
|
||||||
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_GRAPHICS_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VK_QUEUE_GRAPHICS_BIT | VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
VkQueueFamilyProperties{ VK_QUEUE_COMPUTE_BIT | VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } },
|
||||||
VkQueueFamilyProperties{ VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
VkQueueFamilyProperties{ VK_QUEUE_TRANSFER_BIT, 1, 0, VkExtent3D{ 1, 1, 1 } }
|
||||||
};
|
};
|
||||||
|
@ -296,7 +296,9 @@ VKAPI_ATTR VkResult VKAPI_CALL shim_vkGetPhysicalDeviceSurfaceSupportKHR(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (surface && pSupported) *pSupported = true;
|
if (surface && pSupported) {
|
||||||
|
*pSupported = true;
|
||||||
|
}
|
||||||
return VK_SUCCESS;
|
return VK_SUCCESS;
|
||||||
}
|
}
|
||||||
VKAPI_ATTR VkResult VKAPI_CALL shim_vkGetPhysicalDeviceSurfaceFormatsKHR(
|
VKAPI_ATTR VkResult VKAPI_CALL shim_vkGetPhysicalDeviceSurfaceFormatsKHR(
|
||||||
|
Loading…
Reference in New Issue
Block a user