From 9142bea37e2d13a49dbd65865867f67418d55f8b Mon Sep 17 00:00:00 2001 From: asuessenbach Date: Wed, 9 Feb 2022 08:32:42 +0100 Subject: [PATCH] Change type of loop variables from uint8_t to uint32_t. --- .../CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp | 6 +++--- .../EnableValidationWithCallback.cpp | 6 +++--- .../CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp | 6 +++--- .../EnableValidationWithCallback.cpp | 6 +++--- samples/utils/utils.cpp | 6 +++--- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/RAII_Samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp b/RAII_Samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp index 51a95dd..08b6782 100644 --- a/RAII_Samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp +++ b/RAII_Samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp @@ -42,7 +42,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag { message << "\t" << "Queue Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->queueLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->queueLabelCount; i++ ) { message << "\t\t" << "labelName = <" << pCallbackData->pQueueLabels[i].pLabelName << ">\n"; @@ -52,7 +52,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag { message << "\t" << "CommandBuffer Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) { message << "\t\t" << "labelName = <" << pCallbackData->pCmdBufLabels[i].pLabelName << ">\n"; @@ -62,7 +62,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag { message << "\t" << "Objects:\n"; - for ( uint8_t i = 0; i < pCallbackData->objectCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->objectCount; i++ ) { message << "\t\t" << "Object " << i << "\n"; diff --git a/RAII_Samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp b/RAII_Samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp index 857b2d6..502f38f 100644 --- a/RAII_Samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp +++ b/RAII_Samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp @@ -68,7 +68,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag if ( 0 < pCallbackData->queueLabelCount ) { message += std::string( "\t" ) + "Queue Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->queueLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->queueLabelCount; i++ ) { message += std::string( "\t\t" ) + "labelName = <" + pCallbackData->pQueueLabels[i].pLabelName + ">\n"; } @@ -76,14 +76,14 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag if ( 0 < pCallbackData->cmdBufLabelCount ) { message += std::string( "\t" ) + "CommandBuffer Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) { message += std::string( "\t\t" ) + "labelName = <" + pCallbackData->pCmdBufLabels[i].pLabelName + ">\n"; } } if ( 0 < pCallbackData->objectCount ) { - for ( uint8_t i = 0; i < pCallbackData->objectCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->objectCount; i++ ) { message += std::string( "\t" ) + "Object " + std::to_string( i ) + "\n"; message += std::string( "\t\t" ) + "objectType = " + diff --git a/samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp b/samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp index f8fc3a3..f1eae71 100644 --- a/samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp +++ b/samples/CreateDebugUtilsMessenger/CreateDebugUtilsMessenger.cpp @@ -60,7 +60,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag { message << "\t" << "Queue Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->queueLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->queueLabelCount; i++ ) { message << "\t\t" << "labelName = <" << pCallbackData->pQueueLabels[i].pLabelName << ">\n"; @@ -70,7 +70,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag { message << "\t" << "CommandBuffer Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) { message << "\t\t" << "labelName = <" << pCallbackData->pCmdBufLabels[i].pLabelName << ">\n"; @@ -80,7 +80,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag { message << "\t" << "Objects:\n"; - for ( uint8_t i = 0; i < pCallbackData->objectCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->objectCount; i++ ) { message << "\t\t" << "Object " << i << "\n"; diff --git a/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp b/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp index 4c0e7ee..f43b1f7 100644 --- a/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp +++ b/samples/EnableValidationWithCallback/EnableValidationWithCallback.cpp @@ -68,7 +68,7 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag if ( 0 < pCallbackData->queueLabelCount ) { message += std::string( "\t" ) + "Queue Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->queueLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->queueLabelCount; i++ ) { message += std::string( "\t\t" ) + "labelName = <" + pCallbackData->pQueueLabels[i].pLabelName + ">\n"; } @@ -76,14 +76,14 @@ VKAPI_ATTR VkBool32 VKAPI_CALL debugMessageFunc( VkDebugUtilsMessageSeverityFlag if ( 0 < pCallbackData->cmdBufLabelCount ) { message += std::string( "\t" ) + "CommandBuffer Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) { message += std::string( "\t\t" ) + "labelName = <" + pCallbackData->pCmdBufLabels[i].pLabelName + ">\n"; } } if ( 0 < pCallbackData->objectCount ) { - for ( uint8_t i = 0; i < pCallbackData->objectCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->objectCount; i++ ) { message += std::string( "\t" ) + "Object " + std::to_string( i ) + "\n"; message += std::string( "\t\t" ) + "objectType = " + diff --git a/samples/utils/utils.cpp b/samples/utils/utils.cpp index 5a199b6..95a37eb 100644 --- a/samples/utils/utils.cpp +++ b/samples/utils/utils.cpp @@ -438,7 +438,7 @@ namespace vk { std::cerr << "\t" << "Queue Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->queueLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->queueLabelCount; i++ ) { std::cerr << "\t\t" << "labelName = <" << pCallbackData->pQueueLabels[i].pLabelName << ">\n"; @@ -448,7 +448,7 @@ namespace vk { std::cerr << "\t" << "CommandBuffer Labels:\n"; - for ( uint8_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->cmdBufLabelCount; i++ ) { std::cerr << "\t\t" << "labelName = <" << pCallbackData->pCmdBufLabels[i].pLabelName << ">\n"; @@ -458,7 +458,7 @@ namespace vk { std::cerr << "\t" << "Objects:\n"; - for ( uint8_t i = 0; i < pCallbackData->objectCount; i++ ) + for ( uint32_t i = 0; i < pCallbackData->objectCount; i++ ) { std::cerr << "\t\t" << "Object " << i << "\n";