summaryrefslogtreecommitdiff
path: root/engine/src/rendering.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-07-14 14:55:03 +0200
committerHampusM <hampus@hampusmat.com>2026-07-14 14:55:03 +0200
commitd3e678fa6112ac82b59e638c41cde8b9c4b0035e (patch)
tree551563fc84d1f7f203f238ea167b3de5e0624c85 /engine/src/rendering.rs
parent908ae3fcaa119f8fcac1aacbf43bac649c75eac6 (diff)
feat(engine): add UpdateTexture rendering command
Diffstat (limited to 'engine/src/rendering.rs')
-rw-r--r--engine/src/rendering.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/engine/src/rendering.rs b/engine/src/rendering.rs
index 8ce48fc..9a6350e 100644
--- a/engine/src/rendering.rs
+++ b/engine/src/rendering.rs
@@ -238,6 +238,12 @@ pub enum Command
ActivateShader(ObjectId),
SetShaderBinding(ShaderBindingLocation, ShaderBindingValue),
CreateTexture(ObjectId, AssetOrValue<Texture>),
+ UpdateTexture
+ {
+ obj_id: ObjectId,
+ texture: AssetOrValue<Texture>,
+ offset: Vec2<u32>,
+ },
RemoveTexture(ObjectId),
CreateMesh
{