Merge pull request #1198 from asuessenbach/loop

Change type of loop variables from uint8_t to uint32_t.
This commit is contained in:
Andreas Süßenbach 2022-02-09 12:13:36 +01:00 committed by GitHub
commit 9755e112fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 15 deletions

View File

@ -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";

View File

@ -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 = " +

View File

@ -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";

View File

@ -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 = " +

View File

@ -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";