Rename GPUBindGroupLayoutBinding dynamic to hasDynamicOffset

Following WebGPU change at  https://github.com/gpuweb/gpuweb/pull/427,
this CL renames GPUBindGroupLayoutBinding dynamic to hasDynamicOffset.

Bug: dawn:22
Change-Id: Ie1c2bf4b1f6764c83be7cfe04f4f1a1d2205f685
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11500
Commit-Queue: François Beaufort <beaufort.francois@gmail.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
François Beaufort
2019-09-24 11:08:17 +00:00
committed by Commit Bot service account
parent 41f8aa550b
commit c3b613296d
11 changed files with 23 additions and 23 deletions

View File

@@ -254,7 +254,7 @@ namespace dawn_native { namespace opengl {
GLuint uboIndex = indices[bindingIndex];
GLuint offset = binding.offset;
if (layout.dynamic[bindingIndex]) {
if (layout.hasDynamicOffset[bindingIndex]) {
offset += dynamicOffsets[currentDynamicIndex];
++currentDynamicIndex;
}
@@ -298,7 +298,7 @@ namespace dawn_native { namespace opengl {
GLuint ssboIndex = indices[bindingIndex];
GLuint offset = binding.offset;
if (layout.dynamic[bindingIndex]) {
if (layout.hasDynamicOffset[bindingIndex]) {
offset += dynamicOffsets[currentDynamicIndex];
++currentDynamicIndex;
}