From e2cdae28d4a896d1b052ff47fa511b7d3d90a8bd Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Mon, 24 Apr 2017 18:34:28 -0700 Subject: layers: Fix some confused VkBool32 vs bool These aren't the same type! --- layers/buffer_validation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'layers/buffer_validation.cpp') diff --git a/layers/buffer_validation.cpp b/layers/buffer_validation.cpp index a07f0862..eefd2ab0 100644 --- a/layers/buffer_validation.cpp +++ b/layers/buffer_validation.cpp @@ -2275,7 +2275,7 @@ static bool validate_usage_flags(layer_data *device_data, VkFlags actual, VkFlag // Helper function to validate usage flags for buffers. For given buffer_state send actual vs. desired usage off to helper above // where an error will be flagged if usage is not correct -bool ValidateImageUsageFlags(layer_data *device_data, IMAGE_STATE const *image_state, VkFlags desired, VkBool32 strict, +bool ValidateImageUsageFlags(layer_data *device_data, IMAGE_STATE const *image_state, VkFlags desired, bool strict, int32_t const msgCode, char const *func_name, char const *usage_string) { return validate_usage_flags(device_data, image_state->createInfo.usage, desired, strict, reinterpret_cast(image_state->image), kVulkanObjectTypeImage, msgCode, func_name, @@ -2284,7 +2284,7 @@ bool ValidateImageUsageFlags(layer_data *device_data, IMAGE_STATE const *image_s // Helper function to validate usage flags for buffers. For given buffer_state send actual vs. desired usage off to helper above // where an error will be flagged if usage is not correct -bool ValidateBufferUsageFlags(layer_data *device_data, BUFFER_STATE const *buffer_state, VkFlags desired, VkBool32 strict, +bool ValidateBufferUsageFlags(layer_data *device_data, BUFFER_STATE const *buffer_state, VkFlags desired, bool strict, int32_t const msgCode, char const *func_name, char const *usage_string) { return validate_usage_flags(device_data, buffer_state->createInfo.usage, desired, strict, reinterpret_cast(buffer_state->buffer), kVulkanObjectTypeBuffer, msgCode, -- cgit v1.2.3