diff options
author | Leo Kettmeir <crowlkats@toaxl.com> | 2024-05-05 07:22:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-05 07:22:18 -0700 |
commit | cd12d416271e9e9fd0f00303525021f75688ff9f (patch) | |
tree | af1fd7a88590e37b09e61ae5a1aaeec4c325b907 /ext/webgpu/surface.rs | |
parent | b2628e4a069ed9fc13f34f6e4fd75f29c657e5a9 (diff) |
chore: update wgpu (#23684)
Diffstat (limited to 'ext/webgpu/surface.rs')
-rw-r--r-- | ext/webgpu/surface.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/webgpu/surface.rs b/ext/webgpu/surface.rs index 1371c1fa4..1f6d2c87d 100644 --- a/ext/webgpu/surface.rs +++ b/ext/webgpu/surface.rs @@ -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 => { |