summaryrefslogtreecommitdiff
path: root/engine/src/rendering.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-08-29 23:08:14 +0200
committerHampusM <hampus@hampusmat.com>2026-08-29 23:08:14 +0200
commit5fbb20f595de6c62a86ae13abf094d70bf215e8b (patch)
tree68d523942afa26514836191a4648cfc7a0c7bd8d /engine/src/rendering.rs
parent7baf722071707ecee0c61dd1eedc3d348e023930 (diff)
feat(engine): add depth texture pixel data format
Diffstat (limited to 'engine/src/rendering.rs')
-rw-r--r--engine/src/rendering.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/engine/src/rendering.rs b/engine/src/rendering.rs
index ffb5a4f..c9726d0 100644
--- a/engine/src/rendering.rs
+++ b/engine/src/rendering.rs
@@ -632,12 +632,20 @@ pub enum SrgbaTextureDataType
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
#[non_exhaustive]
+pub enum DepthTextureDataType
+{
+ Float32,
+}
+
+#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
+#[non_exhaustive]
pub enum TexturePixelDataFormat
{
Rgb(RgbTextureDataType),
Rgba(RgbaTextureDataType),
Srgb(SrgbTextureDataType),
Srgba(SrgbaTextureDataType),
+ Depth(DepthTextureDataType),
}
impl TexturePixelDataFormat