Skip to content

Commit

Permalink
Fix desiredMaximumFrameLatency type in wgpu.h (#403)
Browse files Browse the repository at this point in the history
Fixes #401
  • Loading branch information
rajveermalviya authored Aug 25, 2024
1 parent af9db7a commit 91f1dc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ffi/wgpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ typedef struct WGPUQuerySetDescriptorExtras {

typedef struct WGPUSurfaceConfigurationExtras {
WGPUChainedStruct chain;
WGPUBool desiredMaximumFrameLatency;
uint32_t desiredMaximumFrameLatency;
} WGPUSurfaceConfigurationExtras WGPU_STRUCTURE_ATTRIBUTE;

typedef void (*WGPULogCallback)(WGPULogLevel level, char const * message, void * userdata);
Expand Down
2 changes: 1 addition & 1 deletion src/conv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ pub fn map_surface_configuration(
.collect(),
desired_maximum_frame_latency: match extras {
Some(extras) => extras.desiredMaximumFrameLatency,
// Default is 2, https://github.com/gfx-rs/wgpu/blob/484457d95993b00b91905fae0e539a093423cc28/wgpu/src/lib.rs#L4796
// Default is 2, https://github.com/gfx-rs/wgpu/blob/7b4cbc26192d6d56a31f8e67769e656a6627b222/wgpu/src/api/surface.rs#L87
None => 2,
},
}
Expand Down

0 comments on commit 91f1dc0

Please sign in to comment.