From d672e147db0df6186c528262367770dcde9d75fc Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Sun, 9 Aug 2026 17:36:41 -0700 Subject: rename and reexport a bunch of graphics state types the word "graphics" is part of the module name, so it does not need to be part of the struct name the fact that an object holds state is... not strictly implied by the fact it's a struct, but it happens that ALL our objects exist primarily to hold state, so we remove that word as well Force-Push: yes Change-Id: I1b3e2ac0f1c29304e75a190172463aabfba4b3a4 --- src/graphics/texture.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/graphics/texture.rs') diff --git a/src/graphics/texture.rs b/src/graphics/texture.rs index cd4dd7a..a6085e3 100644 --- a/src/graphics/texture.rs +++ b/src/graphics/texture.rs @@ -1,6 +1,6 @@ #![deny(unsafe_code)] use crate::error::*; -use crate::graphics::permanent::PermanentGraphicsState; +use crate::graphics::Permanent; use crate::graphics::util::{ stage_in_buffer, allocate_image, init_image_view, begin_transient_commands, end_transient_commands @@ -22,7 +22,7 @@ pub struct Texture { impl Texture { - pub fn new(permanent: &PermanentGraphicsState) -> Result<(Self, u32)> { + pub fn new(permanent: &Permanent) -> Result<(Self, u32)> { let graphics_queue = &permanent.graphics_queue; let instance = &permanent.instance; let device = &permanent.device; -- cgit 1.4.1