aboutsummaryrefslogtreecommitdiff
path: root/adapters/fparkan-render-vulkan/src/ffi/resources.rs
diff options
context:
space:
mode:
authorValentin Popov <valentin@popov.link>2026-07-18 14:19:07 +0300
committerValentin Popov <valentin@popov.link>2026-07-18 14:19:07 +0300
commit438aaebcbc5c963d378d297bfb13e2af24b12084 (patch)
tree06e53f63862eaf21c64220491cde1606e8a4d9b1 /adapters/fparkan-render-vulkan/src/ffi/resources.rs
parent733bfcf6fa2e17dbc94487fb1b9eb4f896e53845 (diff)
downloadfparkan-438aaebcbc5c963d378d297bfb13e2af24b12084.tar.xz
fparkan-438aaebcbc5c963d378d297bfb13e2af24b12084.zip
feat(render): support full-scene 32-bit indices
Diffstat (limited to 'adapters/fparkan-render-vulkan/src/ffi/resources.rs')
-rw-r--r--adapters/fparkan-render-vulkan/src/ffi/resources.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/adapters/fparkan-render-vulkan/src/ffi/resources.rs b/adapters/fparkan-render-vulkan/src/ffi/resources.rs
index b7e84bd..1d38503 100644
--- a/adapters/fparkan-render-vulkan/src/ffi/resources.rs
+++ b/adapters/fparkan-render-vulkan/src/ffi/resources.rs
@@ -236,7 +236,7 @@ pub(super) fn create_static_mesh_index_buffer(
device: &VulkanLogicalDeviceProbe,
mesh: &VulkanStaticMesh,
) -> Result<VulkanAllocatedBuffer, VulkanSmokeRendererError> {
- let mut bytes = Vec::with_capacity(mesh.indices.len() * std::mem::size_of::<u16>());
+ let mut bytes = Vec::with_capacity(mesh.indices.len() * std::mem::size_of::<u32>());
for &index in &mesh.indices {
bytes.extend_from_slice(&index.to_ne_bytes());
}