mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 02:39:11 +00:00
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:
committed by
Commit Bot service account
parent
41f8aa550b
commit
c3b613296d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user