summary refs log tree commit diff
path: root/src/main.rs
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-08-06 17:10:19 -0700
committerIrene Knapp <ireneista@irenes.space>2026-08-06 17:10:19 -0700
commit698c9493c89fb0c41eb7a10186c6befc7ad01d79 (patch)
tree4f55e18395c04f41bc9773b64c8339a97daa874b /src/main.rs
parent26e89267c0d745793d777ad0b1157a5596258515 (diff)
further splitting of graphics submodules
now this is starting to feel like halfway decent organization

Force-Push: yes
Change-Id: I45cc4afb45e1528705680eb4192c1e9ba72f53fb
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index 2078dec..1b9d0fe 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -3,9 +3,10 @@ use crate::error::*;
 use crate::graphics::permanent::{
   PermanentGraphicsState, GraphicsStateForReinit
 };
+use crate::graphics::render_state::RenderState;
 use crate::graphics::scene::generate_scene_commands;
 use crate::graphics::window_dressing::{
-  WindowDressing, RenderState, N_SIMULTANEOUS_FRAMES
+  WindowDressing, N_SIMULTANEOUS_FRAMES
 };
 use crate::linear_algebra::{ Vec3, Mat4, Transformation };
 use crate::shader_data::UniformBlock;
@@ -153,7 +154,7 @@ impl Surreality {
               image_index, time, &render_state, device,
               &window_dressing.swapchain.extent)?;
 
-      render_uniforms(time, device,
+      render_uniforms(device,
                       &window_dressing.uniform_buffer_memory[image_index],
                       &window_dressing.swapchain.extent)?;
 
@@ -300,8 +301,8 @@ fn main() -> std::process::ExitCode {
 
 
 #[allow(unsafe_code)]
-fn render_uniforms(time: f32, device: &Device,
-                   device_memory: &vk::DeviceMemory, extent: &vk::Extent2D)
+fn render_uniforms(device: &Device, device_memory: &vk::DeviceMemory,
+                   extent: &vk::Extent2D)
     -> Result<()>
 {
   let view = Transformation::look_at(&Vec3::new(0.0, -3.0, -10.0),