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:
Austin Eng
2021-10-13 18:57:18 +00:00
committed by Dawn LUCI CQ
parent dcc520dc23
commit 91851e23a8
29 changed files with 408 additions and 302 deletions

View File

@@ -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;