gpu: convert Surface from enum(usize) to *opaque

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-24 14:59:15 -07:00 committed by Stephen Gutekanst
parent 8719bab867
commit b95f0cc41a
2 changed files with 48 additions and 53 deletions

View file

@ -72,7 +72,7 @@ pub const RenderPassTimestampWrite = extern struct {
pub const RequestAdapterOptions = extern struct {
next_in_chain: *const types.ChainedStruct,
compatible_surface: surface.Surface = surface.Surface.none, // nullable
compatible_surface: ?surface.Surface,
power_preference: types.PowerPreference,
force_fallback_adapter: bool,
};