mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-06-01 09:09:48 +09:00
Fix for render_with_compute in browsers (#9529)
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
//! therefore not recommended to use this code, at least until
|
||||
//! <https://bugzilla.mozilla.org/show_bug.cgi?id=1870699> (and possibly further work) is resolved.
|
||||
|
||||
use std::time::Instant;
|
||||
use web_time::Instant;
|
||||
|
||||
#[derive(bytemuck::Pod, bytemuck::Zeroable, Clone, Copy, Debug)]
|
||||
#[repr(C)]
|
||||
@@ -70,7 +70,7 @@ impl crate::framework::Example for Example {
|
||||
compilation_options: Default::default(),
|
||||
cache: None,
|
||||
});
|
||||
let blitter = wgpu::util::TextureBlitter::new(device, config.format);
|
||||
let blitter = wgpu::util::TextureBlitter::new(device, config.view_formats[0]);
|
||||
let global_params = device.create_buffer(&wgpu::BufferDescriptor {
|
||||
label: None,
|
||||
size: size_of::<GlobalParams>() as u64,
|
||||
|
||||
Reference in New Issue
Block a user