Fix spelling mistakes

This commit is contained in:
Eric Engestrom
2016-04-08 00:34:58 +01:00
parent ef9d81d2bf
commit 27851ad5df
3 changed files with 3 additions and 3 deletions

View File

@@ -580,7 +580,7 @@ namespace Tutorial {
VkSurfaceFormatKHR VulkanCommon::GetSwapChainFormat( std::vector<VkSurfaceFormatKHR> &surface_formats ) { VkSurfaceFormatKHR VulkanCommon::GetSwapChainFormat( std::vector<VkSurfaceFormatKHR> &surface_formats ) {
// If the list contains only one entry with undefined format // If the list contains only one entry with undefined format
// it mean that there are no preferred surface formats and any can be choosen // it means that there are no preferred surface formats and any can be chosen
if( (surface_formats.size() == 1) && if( (surface_formats.size() == 1) &&
(surface_formats[0].format == VK_FORMAT_UNDEFINED) ) { (surface_formats[0].format == VK_FORMAT_UNDEFINED) ) {
return{ VK_FORMAT_R8G8B8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR }; return{ VK_FORMAT_R8G8B8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR };

View File

@@ -526,7 +526,7 @@ namespace Tutorial {
VkSurfaceFormatKHR Tutorial02::GetSwapChainFormat( std::vector<VkSurfaceFormatKHR> &surface_formats ) { VkSurfaceFormatKHR Tutorial02::GetSwapChainFormat( std::vector<VkSurfaceFormatKHR> &surface_formats ) {
// If the list contains only one entry with undefined format // If the list contains only one entry with undefined format
// it mean that there are no preferred surface formats and any can be choosen // it means that there are no preferred surface formats and any can be chosen
if( (surface_formats.size() == 1) && if( (surface_formats.size() == 1) &&
(surface_formats[0].format == VK_FORMAT_UNDEFINED) ) { (surface_formats[0].format == VK_FORMAT_UNDEFINED) ) {
return{ VK_FORMAT_R8G8B8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR }; return{ VK_FORMAT_R8G8B8A8_UNORM, VK_COLORSPACE_SRGB_NONLINEAR_KHR };

View File

@@ -550,7 +550,7 @@ namespace Tutorial {
}; };
if( vkQueueSubmit( GetGraphicsQueue().Handle, 1, &submit_rendering_info, VK_NULL_HANDLE ) != VK_SUCCESS ) { if( vkQueueSubmit( GetGraphicsQueue().Handle, 1, &submit_rendering_info, VK_NULL_HANDLE ) != VK_SUCCESS ) {
printf( "Error occured during submition of command buffer with vertex buffer barrier!!\n" ); printf( "Error occurred during submission of command buffer with vertex buffer barrier!!\n" );
return false; return false;
} }