mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
hal/metal: bump the maximum command buffer count
This commit is contained in:
1 parent
989670257a
commit
d35997acd4
1 file changed
+7
-1
@@ -4,6 +4,8 @@ use parking_lot::Mutex;
|
||||
|
||||
use std::{sync::Arc, thread};
|
||||
|
||||
const MAX_COMMAND_BUFFERS: u64 = 2048;
|
||||
|
||||
unsafe impl Send for super::Adapter {}
|
||||
unsafe impl Sync for super::Adapter {}
|
||||
|
||||
@@ -18,7 +20,11 @@ impl crate::Adapter<super::Api> for super::Adapter {
|
||||
&self,
|
||||
features: wgt::Features,
|
||||
) -> Result<crate::OpenDevice<super::Api>, crate::DeviceError> {
|
||||
let queue = self.shared.device.lock().new_command_queue();
|
||||
let queue = self
|
||||
.shared
|
||||
.device
|
||||
.lock()
|
||||
.new_command_queue_with_max_command_buffer_count(MAX_COMMAND_BUFFERS);
|
||||
Ok(crate::OpenDevice {
|
||||
device: super::Device {
|
||||
shared: Arc::clone(&self.shared),
|
||||
|
||||
Reference in new issue
Block a user