mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-16 08:27:05 +00:00
Fix Windows compilation using GN and clang-cl.
This includes a bunch of fixes for clang warnings in Windows specific code that was only compiled by MSVC previously. This also tidies up some BUILD.gn issues on Windows.
This commit is contained in:
committed by
Corentin Wallez
parent
3bb0bb940e
commit
5b61abce09
@@ -192,18 +192,18 @@ namespace {
|
||||
};
|
||||
|
||||
return {
|
||||
alignNonPow2(0, textureSpec.texelSize), rowPitch,
|
||||
alignNonPow2(512, textureSpec.texelSize), rowPitch,
|
||||
alignNonPow2(1024, textureSpec.texelSize), rowPitch,
|
||||
BufferSpec{alignNonPow2(0, textureSpec.texelSize), rowPitch},
|
||||
BufferSpec{alignNonPow2(512, textureSpec.texelSize), rowPitch},
|
||||
BufferSpec{alignNonPow2(1024, textureSpec.texelSize), rowPitch},
|
||||
|
||||
alignNonPow2(32, textureSpec.texelSize), rowPitch,
|
||||
alignNonPow2(64, textureSpec.texelSize), rowPitch,
|
||||
BufferSpec{alignNonPow2(32, textureSpec.texelSize), rowPitch},
|
||||
BufferSpec{alignNonPow2(64, textureSpec.texelSize), rowPitch},
|
||||
|
||||
alignNonPow2(31, textureSpec.texelSize), rowPitch,
|
||||
alignNonPow2(257, textureSpec.texelSize), rowPitch,
|
||||
alignNonPow2(511, textureSpec.texelSize), rowPitch,
|
||||
alignNonPow2(513, textureSpec.texelSize), rowPitch,
|
||||
alignNonPow2(1023, textureSpec.texelSize), rowPitch,
|
||||
BufferSpec{alignNonPow2(31, textureSpec.texelSize), rowPitch},
|
||||
BufferSpec{alignNonPow2(257, textureSpec.texelSize), rowPitch},
|
||||
BufferSpec{alignNonPow2(511, textureSpec.texelSize), rowPitch},
|
||||
BufferSpec{alignNonPow2(513, textureSpec.texelSize), rowPitch},
|
||||
BufferSpec{alignNonPow2(1023, textureSpec.texelSize), rowPitch},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user