Skip to content

Commit

Permalink
Fix remaining warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Nagle committed Jul 5, 2024
1 parent a846beb commit 97ca985
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rend3-routine/src/forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ use wgpu::{
use crate::common::{CameraSpecifier, PerMaterialArchetypeInterface, WholeFrameInterfaces};
use crate::uniforms::PerCameraUniform;

/// This structure is unused.
#[allow(dead_code)] // This structure is never constructed
#[derive(Serialize)]
struct ForwardPreprocessingArguments {
profile: Option<RendererProfile>,
Expand Down
7 changes: 7 additions & 0 deletions rend3/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,15 @@ trait_supertrait_alias!(pub AddMaterialFillInvoke: FnOnce(&mut MaterialManager,
trait_supertrait_alias!(pub ChangeMaterialChangeInvoke: FnOnce(&mut MaterialManager, &Device, &TextureManager<crate::types::Texture2DTag>, RawMaterialHandle) + WasmNotSend + WasmNotSync);
trait_supertrait_alias!(pub AddGraphDataAddInvoke: FnOnce(&mut GraphStorage) + WasmNotSend);

/// Instructions are the basic operations performed by the renderer.
/// The user queues them up by making requests of Rend3,
/// and they are all executed at the beginning
/// of each frame render.
pub struct Instruction {
/// The actual instruction item.
pub kind: InstructionKind,
/// This field is not used.
#[allow(dead_code)]
pub location: Location<'static>,
}

Expand Down

0 comments on commit 97ca985

Please sign in to comment.