diff options
| author | HampusM <hampus@hampusmat.com> | 2026-08-26 17:39:17 +0200 |
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2026-08-26 17:39:17 +0200 |
| commit | 7abe3894137f55aaa7aa0e0c491795342b6124bc (patch) | |
| tree | 578cd3bce6cdeeacf0ae82f6c6d727612a1b17d0 /engine/src/ui/dear_imgui.rs | |
| parent | 07171b85b9365bb52b84fd865066d01d885fcbb3 (diff) | |
feat(engine): add cube map support to UpdateTexture rendering commmand
Diffstat (limited to 'engine/src/ui/dear_imgui.rs')
| -rw-r--r-- | engine/src/ui/dear_imgui.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/src/ui/dear_imgui.rs b/engine/src/ui/dear_imgui.rs index e9fc5ff..fbe4ed8 100644 --- a/engine/src/ui/dear_imgui.rs +++ b/engine/src/ui/dear_imgui.rs @@ -72,6 +72,7 @@ use crate::rendering::{ ScissorBox, Surface, SurfaceId, + TextureUpdate, PRE_RENDER_PHASE, }; use crate::texture::{Properties as TextureProperties, Tex2D, Texture}; @@ -626,6 +627,7 @@ fn add_drawing_render_pass( render_pass.commands.push(RenderingCommand::UpdateTexture { obj_id: *texture_object_id, image: rect_image, + update: TextureUpdate::Texture2D, offset: Vec2 { x: rect.rect.x as u32, y: rect.rect.y as u32, |
