Skip to content

Commit

Permalink
Fix incorrect use of new DrawKind
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jun 24, 2024
1 parent 0e85ae2 commit 307c84f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions wgpu-core/src/command/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ impl RenderBundleEncoder {
indexed: false,
} => {
let scope = PassErrorScope::Draw {
kind: DrawKind::MultiDrawIndirect,
kind: DrawKind::DrawIndirect,
indexed: false,
pipeline: state.pipeline_id(),
};
Expand Down Expand Up @@ -738,7 +738,7 @@ impl RenderBundleEncoder {
indexed: true,
} => {
let scope = PassErrorScope::Draw {
kind: DrawKind::MultiDrawIndirect,
kind: DrawKind::DrawIndirect,
indexed: true,
pipeline: state.pipeline_id(),
};
Expand Down
6 changes: 5 additions & 1 deletion wgpu-core/src/command/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,11 @@ impl Global {
api_log!("RenderPass::draw_indirect (indexed:{indexed}) {indirect_buffer_id:?} {offset} {count:?}");

let scope = PassErrorScope::Draw {
kind: DrawKind::MultiDrawIndirect,
kind: if count.is_some() {
DrawKind::MultiDrawIndirect
} else {
DrawKind::DrawIndirect
},
indexed,
pipeline: state.pipeline,
};
Expand Down

0 comments on commit 307c84f

Please sign in to comment.