Skip to content

Commit

Permalink
Fix wasm
Browse files Browse the repository at this point in the history
Signed-off-by: sagudev <[email protected]>
  • Loading branch information
sagudev committed Dec 5, 2024
1 parent be5acfa commit f74b3c7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions wgpu/src/backend/custom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,16 @@ impl QueueInterface for DynQueue {
fn on_submitted_work_done(&self, callback: dispatch::BoxSubmittedWorkDoneCallback) {
self.0.on_submitted_work_done(callback);
}

#[cfg(any(webgpu, webgl))]
fn copy_external_image_to_texture(
&self,
source: &wgt::CopyExternalImageSourceInfo,
dest: wgt::CopyExternalImageDestInfo<&crate::api::Texture>,
size: crate::Extent3d,
) {
unimplemented!()
}
}

#[derive(Debug)]
Expand Down Expand Up @@ -388,6 +398,14 @@ impl BufferInterface for DynBuffer {
fn destroy(&self) {
self.0.destroy();
}

#[cfg(webgpu)]
fn get_mapped_range_as_array_buffer(
&self,
sub_range: Range<wgt::BufferAddress>,
) -> Option<js_sys::ArrayBuffer> {
unimplemented!()
}
}

#[derive(Debug)]
Expand Down

0 comments on commit f74b3c7

Please sign in to comment.