Skip to content

Commit

Permalink
Define wgpu_core::Global::create_render_bundle_error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimblandy committed May 3, 2023
1 parent 66c029f commit fbb6524
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion wgpu-core/src/device/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3704,6 +3704,19 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
let mut token = Token::root();
let fid = hub.buffers.prepare(id_in);

fid.assign_error(label.borrow_or_default(), &mut token);
}

pub fn create_render_bundle_error<A: HalApi>(
&self,
id_in: Input<G, id::RenderBundleId>,
label: Label,
) {
log::error!("JIMB: wgpu_core::Global::create_render_bundle_error: label = {label:?}");
let hub = A::hub(self);
let mut token = Token::root();
let fid = hub.render_bundles.prepare(id_in);

let (_, mut token) = hub.devices.read(&mut token);
fid.assign_error(label.borrow_or_default(), &mut token);
}
Expand All @@ -3716,7 +3729,6 @@ impl<G: GlobalIdentityHandlerFactory> Global<G> {
let mut token = Token::root();
let fid = hub.textures.prepare(id_in);

let (_, mut token) = hub.devices.read(&mut token);
fid.assign_error(label.borrow_or_default(), &mut token);
}

Expand Down

0 comments on commit fbb6524

Please sign in to comment.