mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-29 21:56:58 +00:00
Replace 'reinterpret_cast' with 'static_cast'
This commit is contained in:
parent
53ede795a2
commit
6d44afc7dd
26 changed files with 31 additions and 36 deletions
|
@ -180,7 +180,7 @@ bool StagingBuffer::AllocateBuffer(STAGING_BUFFER_TYPE type, VkDeviceSize size,
|
|||
}
|
||||
}
|
||||
|
||||
*out_map_ptr = reinterpret_cast<char*>(alloc_info.pMappedData);
|
||||
*out_map_ptr = static_cast<char*>(alloc_info.pMappedData);
|
||||
|
||||
if (res != VK_SUCCESS)
|
||||
{
|
||||
|
|
|
@ -81,7 +81,7 @@ bool StreamBuffer::AllocateBuffer()
|
|||
// Replace with the new buffer
|
||||
m_buffer = buffer;
|
||||
m_alloc = alloc;
|
||||
m_host_pointer = reinterpret_cast<u8*>(alloc_info.pMappedData);
|
||||
m_host_pointer = static_cast<u8*>(alloc_info.pMappedData);
|
||||
m_current_offset = 0;
|
||||
m_current_gpu_position = 0;
|
||||
m_tracked_fences.clear();
|
||||
|
|
|
@ -46,7 +46,7 @@ VkSurfaceKHR SwapChain::CreateVulkanSurface(VkInstance instance, const WindowSys
|
|||
nullptr, // const void* pNext
|
||||
0, // VkWin32SurfaceCreateFlagsKHR flags
|
||||
nullptr, // HINSTANCE hinstance
|
||||
reinterpret_cast<HWND>(wsi.render_surface) // HWND hwnd
|
||||
static_cast<HWND>(wsi.render_surface) // HWND hwnd
|
||||
};
|
||||
|
||||
VkSurfaceKHR surface;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue