aboutsummaryrefslogtreecommitdiff
path: root/layers/device_limits.cpp
diff options
context:
space:
mode:
authorMark Young <marky@lunarg.com>2016-01-25 12:18:32 -0700
committerMark Young <marky@lunarg.com>2016-01-25 12:18:32 -0700
commit96fbdee85c80d63fabaf165620e905029276db5b (patch)
tree453e2ccbbad11166ce88e8ec83bf9ff25782e35e /layers/device_limits.cpp
parent7844260c86caee71470c0794199f65808f42a957 (diff)
downloadusermoji-96fbdee85c80d63fabaf165620e905029276db5b.tar.xz
LAYERS: More 32-bit fixes caused by recent commits.
Had to fix more 32-bit build issues caused by recent commits.
Diffstat (limited to 'layers/device_limits.cpp')
-rw-r--r--layers/device_limits.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/layers/device_limits.cpp b/layers/device_limits.cpp
index 8648f5c6..6edb77de 100644
--- a/layers/device_limits.cpp
+++ b/layers/device_limits.cpp
@@ -588,11 +588,11 @@ VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets(
VkResult result = VK_ERROR_VALIDATION_FAILED_EXT;
VkBool32 skipCall = VK_FALSE;
- for (auto i = 0; i < descriptorWriteCount; i++) {
+ for (uint32_t i = 0; i < descriptorWriteCount; i++) {
if ((pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER) ||
(pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC)) {
VkDeviceSize uniformAlignment = dev_data->physDevPropertyMap[device].limits.minUniformBufferOffsetAlignment;
- for (auto j = 0; j < pDescriptorWrites[i].descriptorCount; j++) {
+ for (uint32_t j = 0; j < pDescriptorWrites[i].descriptorCount; j++) {
if (vk_safe_modulo(pDescriptorWrites[i].pBufferInfo[j].offset, uniformAlignment) != 0) {
skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, 0,
__LINE__, DEVLIMITS_INVALID_UNIFORM_BUFFER_OFFSET, "DL",
@@ -603,7 +603,7 @@ VK_LAYER_EXPORT VKAPI_ATTR void VKAPI_CALL vkUpdateDescriptorSets(
} else if ((pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER) ||
(pDescriptorWrites[i].descriptorType == VK_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC)) {
VkDeviceSize storageAlignment = dev_data->physDevPropertyMap[device].limits.minStorageBufferOffsetAlignment;
- for (auto j = 0; j < pDescriptorWrites[i].descriptorCount; j++) {
+ for (uint32_t j = 0; j < pDescriptorWrites[i].descriptorCount; j++) {
if (vk_safe_modulo(pDescriptorWrites[i].pBufferInfo[j].offset, storageAlignment) != 0) {
skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_PHYSICAL_DEVICE_EXT, 0,
__LINE__, DEVLIMITS_INVALID_STORAGE_BUFFER_OFFSET, "DL",