From cbc7b56f28bd115110a75934840be4ee196783e7 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Mon, 23 Oct 2023 19:05:11 -0700 Subject: [PATCH] idea context is the thread setup and owns the state instance defined by other file --- src/graphics_context.rs | 6 ++++++ src/main.rs | 2 +- src/{render_thread.rs => physics_context.rs} | 0 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/graphics_context.rs rename src/{render_thread.rs => physics_context.rs} (100%) diff --git a/src/graphics_context.rs b/src/graphics_context.rs new file mode 100644 index 0000000..9755715 --- /dev/null +++ b/src/graphics_context.rs @@ -0,0 +1,6 @@ +struct Context{ + device:wgpu::Device, + queue:wgpu::Queue, +} + +//?? \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index b096685..237658f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,8 +12,8 @@ mod settings; mod primitives; mod instruction; mod load_roblox; -mod render_thread; mod model_graphics; +mod physics_context; mod graphics_context; fn load_file(path: std::path::PathBuf)->Option{ diff --git a/src/render_thread.rs b/src/physics_context.rs similarity index 100% rename from src/render_thread.rs rename to src/physics_context.rs