buffer binding array?

This commit is contained in:
Quaternions 2023-09-05 00:17:47 -07:00
parent 7b5ce3feb1
commit 28ffc28dca

View File

@ -197,6 +197,7 @@ impl strafe_client::framework::Example for Skybox {
wgpu::Features::TEXTURE_COMPRESSION_ASTC wgpu::Features::TEXTURE_COMPRESSION_ASTC
| wgpu::Features::TEXTURE_COMPRESSION_ETC2 | wgpu::Features::TEXTURE_COMPRESSION_ETC2
| wgpu::Features::TEXTURE_COMPRESSION_BC | wgpu::Features::TEXTURE_COMPRESSION_BC
| wgpu::Features::BUFFER_BINDING_ARRAY
} }
fn init( fn init(
@ -248,7 +249,7 @@ impl strafe_client::framework::Example for Skybox {
has_dynamic_offset: false, has_dynamic_offset: false,
min_binding_size: None, min_binding_size: None,
}, },
count: None, count: Some(std::num::NonZeroU32::new(MAGIC_ENTITIES as u32).unwrap()),
}, },
], ],
}); });