File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ void App::init_buffers()
478478
479479 /* We also need some space for a uniform block which is going to hold time info. */
480480 const auto dynamic_ub_alignment_requirement = m_device_ptr->get_physical_device_properties ().core_vk1_0_properties_ptr ->limits .min_uniform_buffer_offset_alignment ;
481- const auto sine_props_data_buffer_size_per_swapchain_image = Anvil::Utils::round_up (sizeof (float ),
481+ const auto sine_props_data_buffer_size_per_swapchain_image = Anvil::Utils::round_up (static_cast < decltype (dynamic_ub_alignment_requirement)>( sizeof (float ) ),
482482 dynamic_ub_alignment_requirement);
483483 const auto sine_props_data_buffer_size_total = sine_props_data_buffer_size_per_swapchain_image * N_SWAPCHAIN_IMAGES;
484484
Original file line number Diff line number Diff line change @@ -346,9 +346,9 @@ void App::init_buffers()
346346{
347347 const VkDeviceSize uniform_alignment_req (m_physical_device_ptr->get_device_properties ().core_vk1_0_properties_ptr ->limits .min_uniform_buffer_offset_alignment );
348348
349- m_n_bytes_per_query = static_cast <uint32_t >(Anvil::Utils::round_up (sizeof (uint32_t ),
349+ m_n_bytes_per_query = static_cast <uint32_t >(Anvil::Utils::round_up (static_cast <VkDeviceSize>( sizeof (uint32_t ) ),
350350 uniform_alignment_req) );
351- m_time_n_bytes_per_swapchain_image = static_cast <uint32_t >(Anvil::Utils::round_up (sizeof (float ),
351+ m_time_n_bytes_per_swapchain_image = static_cast <uint32_t >(Anvil::Utils::round_up (static_cast <VkDeviceSize>( sizeof (float ) ),
352352 uniform_alignment_req) );
353353
354354 {
You can’t perform that action at this time.
0 commit comments