mirror of
https://github.com/opus-tango/IntroductionToVulkan.git
synced 2026-03-20 12:05:20 +00:00
Fix spelling mistakes
This commit is contained in:
@@ -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 };
|
||||||
|
|||||||
@@ -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 };
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user