PeriDyno 1.0.0
Loading...
Searching...
No Matches
VulkanSwapChain.cpp File Reference
#include "VulkanSwapChain.h"
Include dependency graph for VulkanSwapChain.cpp:

Go to the source code of this file.

Functions

 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)
 

Variables

uint32_t queueCount
 
uint32_t graphicsQueueNodeIndex = UINT32_MAX
 
uint32_t presentQueueNodeIndex = UINT32_MAX
 
 queueNodeIndex = graphicsQueueNodeIndex
 
uint32_t formatCount
 
 else
 

Function Documentation

◆ assert() [1/2]

assert ( formatCount ,
0  )

◆ assert() [2/2]

assert ( queueCount >= 1)

◆ for() [1/2]

for ( auto &&surfaceFormat :surfaceFormats )

Definition at line 133 of file VulkanSwapChain.cpp.

Here is the call graph for this function:

◆ for() [2/2]

for ( )

Definition at line 59 of file VulkanSwapChain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ if() [1/6]

if ( ! found_B8G8R8A8_UNORM)

Definition at line 146 of file VulkanSwapChain.cpp.

Here is the call graph for this function:

◆ if() [2/6]

if ( (formatCount==1) &&(surfaceFormats[0].format==VK_FORMAT_UNDEFINED) )

Definition at line 123 of file VulkanSwapChain.cpp.

Here is the call graph for this function:

◆ if() [3/6]

if ( err ! = VK_SUCCESS)

Creates the platform specific surface abstraction of the native platform window used for presentation.

Definition at line 43 of file VulkanSwapChain.cpp.

Here is the call graph for this function:

◆ if() [4/6]

Definition at line 106 of file VulkanSwapChain.cpp.

Here is the call graph for this function:

◆ if() [5/6]

if ( graphicsQueueNodeIndex = = UINT32_MAX || presentQueueNodeIndex == UINT32_MAX)

Definition at line 100 of file VulkanSwapChain.cpp.

Here is the call graph for this function:

◆ if() [6/6]

if ( presentQueueNodeIndex = = UINT32_MAX)

Definition at line 85 of file VulkanSwapChain.cpp.

Here is the call graph for this function:

◆ queueProps()

std::vector< VkQueueFamilyProperties > queueProps ( queueCount )
Here is the caller graph for this function:

◆ supportsPresent()

std::vector< VkBool32 > supportsPresent ( queueCount )
Here is the caller graph for this function:

◆ surfaceFormats()

std::vector< VkSurfaceFormatKHR > surfaceFormats ( formatCount )
Here is the caller graph for this function:

◆ 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()) )
Here is the call graph for this function:

◆ vkGetPhysicalDeviceQueueFamilyProperties() [1/2]

vkGetPhysicalDeviceQueueFamilyProperties ( physicalDevice ,
& queueCount,
NULL  )
Here is the caller graph for this function:

◆ vkGetPhysicalDeviceQueueFamilyProperties() [2/2]

vkGetPhysicalDeviceQueueFamilyProperties ( physicalDevice ,
& queueCount,
queueProps. data() )
Here is the call graph for this function:

Variable Documentation

◆ else

else
Initial value:
{
bool found_B8G8R8A8_UNORM = false

Definition at line 128 of file VulkanSwapChain.cpp.

◆ formatCount

uint32_t formatCount

Definition at line 114 of file VulkanSwapChain.cpp.

◆ graphicsQueueNodeIndex

uint32_t graphicsQueueNodeIndex = UINT32_MAX

Definition at line 66 of file VulkanSwapChain.cpp.

◆ presentQueueNodeIndex

uint32_t presentQueueNodeIndex = UINT32_MAX

Definition at line 67 of file VulkanSwapChain.cpp.

◆ queueCount

uint32_t queueCount

Definition at line 48 of file VulkanSwapChain.cpp.

◆ queueNodeIndex

queueNodeIndex = graphicsQueueNodeIndex

Definition at line 111 of file VulkanSwapChain.cpp.