diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-26 12:46:04 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-09-26 12:46:04 +0200 |
commit | a4c1804cab2ace8c7496390132c8cdc019b55078 (patch) | |
tree | 720174e7edf347c9de69eb958903e8ebab5c428f /drivers | |
parent | b64b464ba72ae54f6a1b90e403c6dfa2a7ccede6 (diff) | |
parent | c92a6c7e27cc51e1161425fd2d6e85a63d4b81fb (diff) | |
download | redot-engine-a4c1804cab2ace8c7496390132c8cdc019b55078.tar.gz |
Merge pull request #97483 from akien-mga/clang-format-19.1.0
CI: Update `clang-format` pre-commit hook to 19.1.0
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/d3d12/rendering_device_driver_d3d12.cpp | 2 | ||||
-rw-r--r-- | drivers/metal/metal_objects.mm | 2 | ||||
-rw-r--r-- | drivers/vulkan/rendering_context_driver_vulkan.h | 4 | ||||
-rw-r--r-- | drivers/xaudio2/audio_driver_xaudio2.cpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/d3d12/rendering_device_driver_d3d12.cpp b/drivers/d3d12/rendering_device_driver_d3d12.cpp index a445006058..52883de45e 100644 --- a/drivers/d3d12/rendering_device_driver_d3d12.cpp +++ b/drivers/d3d12/rendering_device_driver_d3d12.cpp @@ -3244,7 +3244,7 @@ Vector<uint8_t> RenderingDeviceDriverD3D12::shader_compile_binary_from_spirv(Vec DEV_ASSERT(binding_info.res_class == (uint32_t)RES_CLASS_INVALID || binding_info.res_class == (uint32_t)res_class); binding_info.res_class = res_class; } else if (p_dxil_type == DXIL_RES_SAMPLER) { - binding_info.has_sampler = (uint32_t) true; + binding_info.has_sampler = (uint32_t)true; } else { CRASH_NOW(); } diff --git a/drivers/metal/metal_objects.mm b/drivers/metal/metal_objects.mm index 1d08a10781..596728212a 100644 --- a/drivers/metal/metal_objects.mm +++ b/drivers/metal/metal_objects.mm @@ -1212,7 +1212,7 @@ vertex VaryingsPos vertClear(AttributesPos attributes [[stage_in]], constant Cle return varyings; } )", - ClearAttKey::DEPTH_INDEX]; + ClearAttKey::DEPTH_INDEX]; return new_func(msl, @"vertClear", nil); } diff --git a/drivers/vulkan/rendering_context_driver_vulkan.h b/drivers/vulkan/rendering_context_driver_vulkan.h index 4fbca012c6..f9352d617b 100644 --- a/drivers/vulkan/rendering_context_driver_vulkan.h +++ b/drivers/vulkan/rendering_context_driver_vulkan.h @@ -169,7 +169,7 @@ public: static VkAllocationCallbacks *get_allocation_callbacks(VkObjectType p_type); #if defined(VK_TRACK_DRIVER_MEMORY) || defined(VK_TRACK_DEVICE_MEMORY) - enum VkTrackedObjectType{ + enum VkTrackedObjectType { VK_TRACKED_OBJECT_DESCRIPTOR_UPDATE_TEMPLATE_KHR = VK_OBJECT_TYPE_COMMAND_POOL + 1, VK_TRACKED_OBJECT_TYPE_SURFACE, VK_TRACKED_OBJECT_TYPE_SWAPCHAIN, @@ -180,7 +180,7 @@ public: VK_TRACKED_OBJECT_TYPE_COUNT }; - enum VkTrackedSystemAllocationScope{ + enum VkTrackedSystemAllocationScope { VK_TRACKED_SYSTEM_ALLOCATION_SCOPE_COUNT = VK_SYSTEM_ALLOCATION_SCOPE_INSTANCE + 1 }; #endif diff --git a/drivers/xaudio2/audio_driver_xaudio2.cpp b/drivers/xaudio2/audio_driver_xaudio2.cpp index 3fe3ea058b..0c2fdb64df 100644 --- a/drivers/xaudio2/audio_driver_xaudio2.cpp +++ b/drivers/xaudio2/audio_driver_xaudio2.cpp @@ -48,9 +48,9 @@ Error AudioDriverXAudio2::init() { int latency = Engine::get_singleton()->get_audio_output_latency(); buffer_size = closest_power_of_2(latency * mix_rate / 1000); - samples_in = memnew_arr(int32_t, buffer_size * channels); + samples_in = memnew_arr(int32_t, size_t(buffer_size) * channels); for (int i = 0; i < AUDIO_BUFFERS; i++) { - samples_out[i] = memnew_arr(int16_t, buffer_size * channels); + samples_out[i] = memnew_arr(int16_t, size_t(buffer_size) * channels); xaudio_buffer[i].AudioBytes = buffer_size * channels * sizeof(int16_t); xaudio_buffer[i].pAudioData = (const BYTE *)(samples_out[i]); xaudio_buffer[i].Flags = 0; |