From 50a476c3714b3c423609ec04ce424c244bd2a1c1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 14 Mar 2018 20:34:35 -0400 Subject: Assert: Uppercase assertion macros Macros should be all upper-cased. This is also kind of a wart that's been sticking out for quite a while now (we avoid prefixing underscores). --- Source/Core/VideoBackends/Vulkan/Util.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/Core/VideoBackends/Vulkan/Util.cpp') diff --git a/Source/Core/VideoBackends/Vulkan/Util.cpp b/Source/Core/VideoBackends/Vulkan/Util.cpp index facae2ac14..07c0311da1 100644 --- a/Source/Core/VideoBackends/Vulkan/Util.cpp +++ b/Source/Core/VideoBackends/Vulkan/Util.cpp @@ -397,7 +397,7 @@ void UtilityShaderDraw::CommitPSUniforms(size_t size) void UtilityShaderDraw::SetPushConstants(const void* data, size_t data_size) { - _assert_(static_cast(data_size) < PUSH_CONSTANT_BUFFER_SIZE); + ASSERT(static_cast(data_size) < PUSH_CONSTANT_BUFFER_SIZE); vkCmdPushConstants(m_command_buffer, m_pipeline_info.pipeline_layout, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, @@ -414,8 +414,8 @@ void UtilityShaderDraw::SetPSSampler(size_t index, VkImageView view, VkSampler s void UtilityShaderDraw::SetPSTexelBuffer(VkBufferView view) { // Should only be used with the texture conversion pipeline layout. - _assert_(m_pipeline_info.pipeline_layout == - g_object_cache->GetPipelineLayout(PIPELINE_LAYOUT_TEXTURE_CONVERSION)); + ASSERT(m_pipeline_info.pipeline_layout == + g_object_cache->GetPipelineLayout(PIPELINE_LAYOUT_TEXTURE_CONVERSION)); m_ps_texel_buffer = view; } @@ -765,7 +765,7 @@ void ComputeShaderDispatcher::CommitUniformBuffer(size_t size) void ComputeShaderDispatcher::SetPushConstants(const void* data, size_t data_size) { - _assert_(static_cast(data_size) < PUSH_CONSTANT_BUFFER_SIZE); + ASSERT(static_cast(data_size) < PUSH_CONSTANT_BUFFER_SIZE); vkCmdPushConstants(m_command_buffer, m_pipeline_info.pipeline_layout, VK_SHADER_STAGE_COMPUTE_BIT, 0, static_cast(data_size), data); -- cgit v1.2.3