gpu: add RequestAdapterOptions defaults

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-26 23:17:21 -07:00 committed by Stephen Gutekanst
parent a8022775a9
commit b5601d69e6

View file

@ -96,8 +96,8 @@ pub const RenderPassTimestampWrite = extern struct {
pub const RequestAdapterOptions = extern struct {
next_in_chain: *const types.ChainedStruct,
compatible_surface: ?surface.Surface,
power_preference: types.PowerPreference,
force_fallback_adapter: bool,
power_preference: types.PowerPreference = .undef,
force_fallback_adapter: bool = false,
};
pub const ComputePassDescriptor = extern struct {