mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-09 13:38:00 +00:00
Remove several compile-time constants in favor of limits
Bug: dawn:685 Change-Id: Ifac25116c741fdab7b6a8093b4230065beca4773 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/65483 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
@@ -37,7 +37,8 @@ float RandomFloat(float min, float max) {
|
||||
|
||||
constexpr size_t kNumTriangles = 10000;
|
||||
|
||||
struct alignas(kMinUniformBufferOffsetAlignment) ShaderData {
|
||||
// Aligned as minUniformBufferOffsetAlignment
|
||||
struct alignas(256) ShaderData {
|
||||
float scale;
|
||||
float time;
|
||||
float offsetX;
|
||||
|
||||
Reference in New Issue
Block a user