Go to the source code of this file.
|
| if (err !=VK_SUCCESS) |
| Creates the platform specific surface abstraction of the native platform window used for presentation.
|
|
| vkGetPhysicalDeviceQueueFamilyProperties (physicalDevice, &queueCount, NULL) |
|
| assert (queueCount >=1) |
|
std::vector< VkQueueFamilyProperties > | queueProps (queueCount) |
|
| vkGetPhysicalDeviceQueueFamilyProperties (physicalDevice, &queueCount, queueProps.data()) |
|
std::vector< VkBool32 > | supportsPresent (queueCount) |
|
| for (uint32_t i=0;i< queueCount;i++) |
|
| if (presentQueueNodeIndex==UINT32_MAX) |
|
| if (graphicsQueueNodeIndex==UINT32_MAX||presentQueueNodeIndex==UINT32_MAX) |
|
| if (graphicsQueueNodeIndex !=presentQueueNodeIndex) |
|
| VK_CHECK_RESULT (fpGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, &formatCount, NULL)) |
|
| assert (formatCount > 0) |
|
std::vector< VkSurfaceFormatKHR > | surfaceFormats (formatCount) |
|
| VK_CHECK_RESULT (fpGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, &formatCount, surfaceFormats.data())) |
|
| if ((formatCount==1) &&(surfaceFormats[0].format==VK_FORMAT_UNDEFINED)) |
|
| for (auto &&surfaceFormat :surfaceFormats) |
|
| if (!found_B8G8R8A8_UNORM) |
|
◆ assert() [1/2]
◆ assert() [2/2]
◆ for() [1/2]
◆ for() [2/2]
◆ if() [1/6]
if |
( |
! | found_B8G8R8A8_UNORM | ) |
|
◆ if() [2/6]
◆ if() [3/6]
Creates the platform specific surface abstraction of the native platform window used for presentation.
Definition at line 43 of file VulkanSwapChain.cpp.
◆ if() [4/6]
◆ if() [5/6]
◆ if() [6/6]
◆ queueProps()
std::vector< VkQueueFamilyProperties > queueProps |
( |
queueCount | | ) |
|
◆ supportsPresent()
std::vector< VkBool32 > supportsPresent |
( |
queueCount | | ) |
|
◆ surfaceFormats()
std::vector< VkSurfaceFormatKHR > surfaceFormats |
( |
formatCount | | ) |
|
◆ VK_CHECK_RESULT() [1/2]
VK_CHECK_RESULT |
( |
fpGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, &formatCount, NULL) | | ) |
|
◆ VK_CHECK_RESULT() [2/2]
VK_CHECK_RESULT |
( |
fpGetPhysicalDeviceSurfaceFormatsKHR(physicalDevice, surface, &formatCount, surfaceFormats.data()) | | ) |
|
◆ vkGetPhysicalDeviceQueueFamilyProperties() [1/2]
vkGetPhysicalDeviceQueueFamilyProperties |
( |
physicalDevice | , |
|
|
& | queueCount, |
|
|
NULL | ) |
◆ vkGetPhysicalDeviceQueueFamilyProperties() [2/2]
vkGetPhysicalDeviceQueueFamilyProperties |
( |
physicalDevice | , |
|
|
& | queueCount, |
|
|
queueProps. | data() ) |
◆ else
◆ formatCount
◆ graphicsQueueNodeIndex
uint32_t graphicsQueueNodeIndex = UINT32_MAX |
◆ presentQueueNodeIndex
uint32_t presentQueueNodeIndex = UINT32_MAX |
◆ queueCount
◆ queueNodeIndex