mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
chore: update wgpu (#23684)
This commit is contained in:
parent
b2628e4a06
commit
cd12d41627
25 changed files with 820 additions and 505 deletions
|
@ -60,6 +60,7 @@ pub fn op_webgpu_surface_configure(
|
|||
present_mode: args.present_mode.unwrap_or_default(),
|
||||
alpha_mode: args.alpha_mode,
|
||||
view_formats: args.view_formats,
|
||||
desired_maximum_frame_latency: 2,
|
||||
};
|
||||
|
||||
let err =
|
||||
|
@ -85,7 +86,7 @@ pub fn op_webgpu_surface_get_current_texture(
|
|||
let surface = surface_resource.1;
|
||||
|
||||
let output =
|
||||
gfx_select!(device => instance.surface_get_current_texture(surface, ()))?;
|
||||
gfx_select!(device => instance.surface_get_current_texture(surface, None))?;
|
||||
|
||||
match output.status {
|
||||
SurfaceStatus::Good | SurfaceStatus::Suboptimal => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue