mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement GPUBuffer.mapAsync and update wgpu-core
This commit is contained in:
parent
0afe412d63
commit
b74cea3a46
18 changed files with 514 additions and 433 deletions
|
@ -51,7 +51,7 @@ impl GPUQueueMethods for GPUQueue {
|
|||
/// https://gpuweb.github.io/gpuweb/#dom-gpuqueue-submit
|
||||
fn Submit(&self, command_buffers: Vec<DomRoot<GPUCommandBuffer>>) {
|
||||
let valid = command_buffers.iter().all(|cb| {
|
||||
cb.buffers().iter().all(|b| match *b.state() {
|
||||
cb.buffers().iter().all(|b| match b.state() {
|
||||
GPUBufferState::Unmapped => true,
|
||||
_ => false,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue