From 28ffc28dca700dfad8d6a4a6065498efc6a9a700 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Tue, 5 Sep 2023 00:17:47 -0700 Subject: [PATCH] buffer binding array? --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index db3a6fb..900e177 100644 --- a/src/main.rs +++ b/src/main.rs @@ -197,6 +197,7 @@ impl strafe_client::framework::Example for Skybox { wgpu::Features::TEXTURE_COMPRESSION_ASTC | wgpu::Features::TEXTURE_COMPRESSION_ETC2 | wgpu::Features::TEXTURE_COMPRESSION_BC + | wgpu::Features::BUFFER_BINDING_ARRAY } fn init( @@ -248,7 +249,7 @@ impl strafe_client::framework::Example for Skybox { has_dynamic_offset: false, min_binding_size: None, }, - count: None, + count: Some(std::num::NonZeroU32::new(MAGIC_ENTITIES as u32).unwrap()), }, ], });