diff options
author | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-25 17:44:21 +0100 |
commit | bb1fb24290654394cd0a32c3a6b3d98e5131088d (patch) | |
tree | af926e6132b6e7c4af2d8c3673c331bbdfc33952 /stockton-render/src/draw/texture/loader.rs | |
parent | 4163aaeff0542b1f6b00d31c3d3a61fdbc2dbea5 (diff) |
feat(render): drawing with multiple texture arrays
requires faces to be sorted by depth to work properly, which isn't currently happening
Diffstat (limited to 'stockton-render/src/draw/texture/loader.rs')
-rw-r--r-- | stockton-render/src/draw/texture/loader.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stockton-render/src/draw/texture/loader.rs b/stockton-render/src/draw/texture/loader.rs index 017030f..b3aa3ae 100644 --- a/stockton-render/src/draw/texture/loader.rs +++ b/stockton-render/src/draw/texture/loader.rs @@ -155,6 +155,10 @@ impl TextureStore { } } + pub fn get_n_chunks(&self) -> usize { + self.chunks.len() + } + pub fn get_chunk_descriptor_set<'a>(&'a self, idx: usize) -> &'a DescriptorSet { &self.chunks[idx].descriptor_set } |