mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-05-15 03:41:34 +00:00
Allow SetBindGroup command to be skipped with dynamic offsets.
Fixes a bug where SetBindGroup command would fail to be skipped. BUG=dawn:256 Change-Id: I9815c9d31aa88f6881274a1873cabe17379cc2e0 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13800 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Bryan Bernhart <bryan.bernhart@intel.com>
This commit is contained in:
parent
d0c07f112e
commit
9c81f8738a
@ -254,9 +254,12 @@ namespace dawn_native {
|
|||||||
commands->NextCommand<SetBlendColorCmd>();
|
commands->NextCommand<SetBlendColorCmd>();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Command::SetBindGroup:
|
case Command::SetBindGroup: {
|
||||||
commands->NextCommand<SetBindGroupCmd>();
|
SetBindGroupCmd* cmd = commands->NextCommand<SetBindGroupCmd>();
|
||||||
break;
|
if (cmd->dynamicOffsetCount > 0) {
|
||||||
|
commands->NextData<uint32_t>(cmd->dynamicOffsetCount);
|
||||||
|
}
|
||||||
|
} break;
|
||||||
|
|
||||||
case Command::SetIndexBuffer:
|
case Command::SetIndexBuffer:
|
||||||
commands->NextCommand<SetIndexBufferCmd>();
|
commands->NextCommand<SetIndexBufferCmd>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user