Skip to content

Commit 038d575

Browse files
committed
Minor changes
1 parent 991f836 commit 038d575

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

toybox-gfx/src/command/compute.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ impl ComputeCmd {
3737
}
3838
}
3939

40+
#[tracing::instrument(skip_all, name="ComputeCmd::execute")]
4041
pub fn execute(&self, core: &mut Core, rm: &mut ResourceManager) {
4142
let shader_handle = match self.compute_shader {
4243
ShaderArgument::Handle(handle) => handle,

toybox-gfx/src/command/draw.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ impl DrawCmd {
9090
}
9191
}
9292

93+
#[tracing::instrument(skip_all, name="DrawCmd::execute")]
9394
pub fn execute(&self, core: &mut Core, rm: &mut ResourceManager) {
9495
let vertex_shader_handle = match self.vertex_shader {
9596
ShaderArgument::Handle(name) => name,

toybox-input/src/debug.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn tracker_ui(ui: &mut egui::Ui, input: &mut System) {
5353

5454
ui.label("Press F9 to toggle mouse capture");
5555

56-
if input.button_just_down(LogicalNamedKey::F9) {
56+
if input.button_just_down(keys::F9) {
5757
state.wants_capture = !state.wants_capture;
5858
input.set_capture_mouse(state.wants_capture);
5959
}

toybox-vfs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl Vfs {
2727
&self.resource_root
2828
}
2929

30-
pub fn resource_path(&self, virtual_path: impl AsRef<Path>) -> anyhow::Result<PathBuf> {
30+
fn resource_path(&self, virtual_path: impl AsRef<Path>) -> anyhow::Result<PathBuf> {
3131
let components = virtual_path.as_ref().components();
3232

3333
let clean_path = clean_virtual_path(components)

0 commit comments

Comments
 (0)