diff --git a/renderdoc/driver/vulkan/vk_msaa_buffer_conv.cpp b/renderdoc/driver/vulkan/vk_msaa_buffer_conv.cpp index 0296fc5a7..86080c4f4 100644 --- a/renderdoc/driver/vulkan/vk_msaa_buffer_conv.cpp +++ b/renderdoc/driver/vulkan/vk_msaa_buffer_conv.cpp @@ -161,7 +161,7 @@ void VulkanDebugManager::CopyTex2DMSToBuffer(VkCommandBuffer cmd, VkBuffer destB Vec4u params[2] = { {extent.width, currentSlice, currentSample, bs}, - {maxInvoc, dispatchOffset & 0xffffffffU, 0, 0}, + {maxInvoc, uint32_t(dispatchOffset & 0xffffffffU), 0, 0}, }; ObjDisp(cmd)->CmdPushConstants(Unwrap(cmd), Unwrap(m_BufferMSPipeLayout), @@ -366,7 +366,7 @@ void VulkanDebugManager::CopyDepthTex2DMSToBuffer(VkCommandBuffer cmd, VkBuffer Vec4u params[2] = { {extent.width, currentSlice, currentSample, fmtIndex}, - {maxInvoc, dispatchOffset & 0xffffffffU, 0, 0}, + {maxInvoc, uint32_t(dispatchOffset & 0xffffffffU), 0, 0}, }; ObjDisp(cmd)->CmdPushConstants(Unwrap(cmd), Unwrap(m_BufferMSPipeLayout), VK_SHADER_STAGE_ALL, @@ -528,7 +528,7 @@ void VulkanDebugManager::CopyBufferToTex2DMS(VkCommandBuffer cmd, VkImage destMS Vec4u params[2] = { {extent.width, currentSlice, currentSample, bs}, - {maxInvoc, dispatchOffset & 0xffffffffU, 0, 0}, + {maxInvoc, uint32_t(dispatchOffset & 0xffffffffU), 0, 0}, }; ObjDisp(cmd)->CmdPushConstants(Unwrap(cmd), Unwrap(m_BufferMSPipeLayout), diff --git a/renderdoc/driver/vulkan/vk_shaderdebug.cpp b/renderdoc/driver/vulkan/vk_shaderdebug.cpp index 182d508ff..dbdaa3329 100644 --- a/renderdoc/driver/vulkan/vk_shaderdebug.cpp +++ b/renderdoc/driver/vulkan/vk_shaderdebug.cpp @@ -1734,7 +1734,7 @@ private: const uint32_t numSlices = imageProps.type == VK_IMAGE_TYPE_3D ? 1 : data.depth; const uint32_t numSamples = (uint32_t)imageProps.samples; - data.bytes.reserve(data.samplePitch * numSamples); + data.bytes.reserve(size_t(data.samplePitch * numSamples)); // defaults are fine - no interpretation. Maybe we could use the view's typecast? const GetTextureDataParams params = GetTextureDataParams(); @@ -4006,7 +4006,7 @@ ShaderDebugTrace *VulkanReplay::DebugVertex(uint32_t eventId, uint32_t vertid, u bytebuf data; - size_t size = GetByteSize(1, 1, 1, attr.format, 0); + size_t size = (size_t)GetByteSize(1, 1, 1, attr.format, 0); bool found = false;