VkResult result = get_dispatch_table(mem_tracker_device_table_map, device)->CreateGraphicsPipelines(device, pipelineCache, count, pCreateInfos, pPipelines);
if (result == VK_SUCCESS) {
loader_platform_thread_lock_mutex(&globalLock);
- for (int i = 0; i < count; i++) {
+ for (uint32_t i = 0; i < count; i++) {
add_object_create_info(pPipelines[i].handle, VK_OBJECT_TYPE_PIPELINE, &pCreateInfos[i]);
}
loader_platform_thread_unlock_mutex(&globalLock);
VkResult result = get_dispatch_table(mem_tracker_device_table_map, device)->CreateComputePipelines(device, pipelineCache, count, pCreateInfos, pPipelines);
if (result == VK_SUCCESS) {
loader_platform_thread_lock_mutex(&globalLock);
- for (int i = 0; i < count; i++) {
+ for (uint32_t i = 0; i < count; i++) {
add_object_create_info(pPipelines[i].handle, VK_OBJECT_TYPE_PIPELINE, &pCreateInfos[i]);
}
loader_platform_thread_unlock_mutex(&globalLock);
(*pPhysicalDeviceCount > 0)) {
// Record the VkPhysicalDevices returned by the ICD:
SwpInstance *pInstance = &instanceMap[instance];
- for (int i = 0; i < *pPhysicalDeviceCount; i++) {
+ for (uint32_t i = 0; i < *pPhysicalDeviceCount; i++) {
physicalDeviceMap[pPhysicalDevices[i]].physicalDevice =
pPhysicalDevices[i];
physicalDeviceMap[pPhysicalDevices[i]].pInstance = pInstance;
pDevice->pSurfaceFormats = (VkSurfaceFormatKHR *)
malloc(*pCount * sizeof(VkSurfaceFormatKHR));
if (pDevice->pSurfaceFormats) {
- for (int i = 0 ; i < *pCount ; i++) {
+ for (uint32_t i = 0 ; i < *pCount ; i++) {
pDevice->pSurfaceFormats[i] = pSurfaceFormats[i];
}
} else {
pDevice->pPresentModes = (VkPresentModeKHR *)
malloc(*pCount * sizeof(VkPresentModeKHR));
if (pDevice->pSurfaceFormats) {
- for (int i = 0 ; i < *pCount ; i++) {
+ for (uint32_t i = 0 ; i < *pCount ; i++) {
pDevice->pPresentModes[i] = pPresentModes[i];
}
} else {
bool foundFormat = false;
bool foundColorSpace = false;
bool foundMatch = false;
- for (int i = 0 ; i < pDevice->surfaceFormatCount ; i++) {
+ for (uint32_t i = 0 ; i < pDevice->surfaceFormatCount ; i++) {
if (pCreateInfo->imageFormat == pDevice->pSurfaceFormats[i].format) {
// Validate pCreateInfo->imageColorSpace against
// VkSurfaceFormatKHR::colorSpace:
// Validate pCreateInfo->presentMode against
// vkGetSurfacePresentModesKHR():
bool foundMatch = false;
- for (int i = 0 ; i < pDevice->presentModeCount ; i++) {
+ for (uint32_t i = 0 ; i < pDevice->presentModeCount ; i++) {
if (pDevice->pPresentModes[i] == pCreateInfo->presentMode) {
foundMatch = true;
break;
// Record the images and their state:
if (pSwapchain) {
pSwapchain->imageCount = *pCount;
- for (int i = 0 ; i < *pCount ; i++) {
+ for (uint32_t i = 0 ; i < *pCount ; i++) {
pSwapchain->images[i].image = pSwapchainImages[i];
pSwapchain->images[i].pSwapchain = pSwapchain;
pSwapchain->images[i].ownedByApp = false;
} else {
// Look to see if the application is trying to own too many images at
// the same time (i.e. not leave any to display):
- int imagesOwnedByApp = 0;
- for (int i = 0 ; i < pSwapchain->imageCount ; i++) {
+ uint32_t imagesOwnedByApp = 0;
+ for (uint32_t i = 0 ; i < pSwapchain->imageCount ; i++) {
if (pSwapchain->images[i].ownedByApp) {
imagesOwnedByApp++;
}
VkBool32 skipCall = VK_FALSE;
layer_data *my_data = get_my_data_ptr(get_dispatch_key(queue), layer_data_map);
- for (int i = 0; i < pPresentInfo->swapchainCount ; i++) {
- int index = pPresentInfo->imageIndices[i];
+ for (uint32_t i = 0; i < pPresentInfo->swapchainCount ; i++) {
+ uint32_t index = pPresentInfo->imageIndices[i];
SwpSwapchain *pSwapchain =
&swapchainMap[pPresentInfo->swapchains[i].handle];
if (pSwapchain) {
pPresentInfo);
if ((result == VK_SUCCESS) || (result == VK_SUBOPTIMAL_KHR)) {
- for (int i = 0; i < pPresentInfo->swapchainCount ; i++) {
+ for (uint32_t i = 0; i < pPresentInfo->swapchainCount ; i++) {
int index = pPresentInfo->imageIndices[i];
SwpSwapchain *pSwapchain =
&swapchainMap[pPresentInfo->swapchains[i].handle];