Skip to content

Commit

Permalink
fix clippy macos and web
Browse files Browse the repository at this point in the history
  • Loading branch information
Vecvec committed Jan 27, 2024
1 parent 5e0da85 commit e0de9f5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions wgpu-hal/src/metal/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,8 @@ impl crate::CommandEncoder<super::Api> for super::CommandEncoder {

unsafe fn copy_acceleration_structure_to_acceleration_structure(
&mut self,
_src: &crate::metal::Api::AccelerationStructure,
_dst: &crate::metal::Api::AccelerationStructure,
_src: &super::AccelerationStructure,
_dst: &super::AccelerationStructure,
copy: AccelerationStructureCopy,
) {
unimplemented!()
Expand Down
5 changes: 2 additions & 3 deletions wgpu-hal/src/metal/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use std::{
sync::{atomic, Arc},
thread, time,
};
use wgt::BufferAddress;

use super::conv;
use crate::auxil::map_naga_stage;
Expand Down Expand Up @@ -1231,8 +1230,8 @@ impl crate::Device<super::Api> for super::Device {

unsafe fn get_acceleration_structure_compact_size(
&self,
acceleration_structure: &crate::metal::Api::AccelerationStructure,
) -> BufferAddress {
acceleration_structure: &super::AccelerationStructure,
) -> wgt::BufferAddress {
unimplemented!()
}

Expand Down
9 changes: 9 additions & 0 deletions wgpu/src/backend/web.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3498,6 +3498,15 @@ impl crate::context::Context for Context {
fn tlas_drop(&self, _tlas: &Self::TlasId, _tlas_data: &Self::TlasData) {
unimplemented!("Raytracing not implemented for web");
}

fn command_encoder_compact_blas(
&self,
encoder: &Self::CommandEncoderId,
device_data: &Self::CommandEncoderData,
blas_id: &Self::BlasId,
) -> (Self::BlasId, Option<u64>, Self::BlasData) {
unimplemented!("Raytracing not implemented for web");
}
}

pub(crate) type SurfaceOutputDetail = ();
Expand Down

0 comments on commit e0de9f5

Please sign in to comment.