mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 23:26:24 +00:00
Fix MSVC build
(Manual)?SwapChainTests had a narrowing conversions from double to float Bug: dawn:269 Change-Id: I5b07f53556fa5461877631904fa2c1ab6c8e6596 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/17540 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
eb7eb909c8
commit
80a1868f33
@@ -150,7 +150,7 @@ void DoRender(WindowData* data) {
|
||||
|
||||
utils::ComboRenderPassDescriptor desc({view});
|
||||
desc.cColorAttachments[0].loadOp = wgpu::LoadOp::Clear;
|
||||
desc.cColorAttachments[0].clearColor = {data->clearCycle, 1.0 - data->clearCycle, 0.0, 1.0};
|
||||
desc.cColorAttachments[0].clearColor = {data->clearCycle, 1.0f - data->clearCycle, 0.0f, 1.0f};
|
||||
|
||||
wgpu::RenderPassEncoder pass = encoder.BeginRenderPass(&desc);
|
||||
pass.EndPass();
|
||||
|
||||
Reference in New Issue
Block a user