mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-13 15:16:16 +00:00
Make the dynamicOffsets optional in SetBindGroup.
BUG=dawn:22 Change-Id: I9d032d9be16a483046edc6055b86e61ae08118e4 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/12023 Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
16d20837cc
commit
70c8c10571
@@ -272,20 +272,20 @@ void frame() {
|
||||
{
|
||||
dawn::RenderPassEncoder pass = encoder.BeginRenderPass(&renderPass);
|
||||
pass.SetPipeline(pipeline);
|
||||
pass.SetBindGroup(0, bindGroup[0], 0, nullptr);
|
||||
pass.SetBindGroup(0, bindGroup[0]);
|
||||
pass.SetVertexBuffers(0, 1, &vertexBuffer, vertexBufferOffsets);
|
||||
pass.SetIndexBuffer(indexBuffer, 0);
|
||||
pass.DrawIndexed(36, 1, 0, 0, 0);
|
||||
|
||||
pass.SetStencilReference(0x1);
|
||||
pass.SetPipeline(planePipeline);
|
||||
pass.SetBindGroup(0, bindGroup[0], 0, nullptr);
|
||||
pass.SetBindGroup(0, bindGroup[0]);
|
||||
pass.SetVertexBuffers(0, 1, &planeBuffer, vertexBufferOffsets);
|
||||
pass.DrawIndexed(6, 1, 0, 0, 0);
|
||||
|
||||
pass.SetPipeline(reflectionPipeline);
|
||||
pass.SetVertexBuffers(0, 1, &vertexBuffer, vertexBufferOffsets);
|
||||
pass.SetBindGroup(0, bindGroup[1], 0, nullptr);
|
||||
pass.SetBindGroup(0, bindGroup[1]);
|
||||
pass.DrawIndexed(36, 1, 0, 0, 0);
|
||||
|
||||
pass.EndPass();
|
||||
|
||||
Reference in New Issue
Block a user