gpu: add RequestAdapterOptions

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:03:47 -07:00 committed by Stephen Gutekanst
parent a91186c2c9
commit b90658aba8
3 changed files with 13 additions and 12 deletions

View file

@ -43,6 +43,7 @@ pub const ChainedStruct = @import("types.zig").ChainedStruct;
pub const LoadOp = @import("types.zig").LoadOp;
pub const StoreOp = @import("types.zig").StoreOp;
pub const RenderPassTimestampLocation = @import("types.zig").RenderPassTimestampLocation;
pub const PowerPreference = @import("types.zig").PowerPreference;
pub const ComputePassTimestampWrite = struct {
query_set: QuerySet,
@ -64,17 +65,19 @@ pub const RenderPassDepthStencilAttachment = extern struct {
stencil_read_only: bool,
};
pub const RenderPassDescriptorMaxDrawCount = extern struct {
chain: ChainedStruct,
max_draw_count: u64,
};
pub const RenderPassTimestampWrite = extern struct {
query_set: QuerySet,
query_index: u32,
location: RenderPassTimestampLocation,
};
pub const RequestAdapterOptions = extern struct {
next_in_chain: *const ChainedStruct,
compatible_surface: Surface = Surface.none, // nullable
power_preference: PowerPreference,
force_fallback_adapter: bool,
};
test {
refAllDecls(@import("adapter.zig"));
refAllDecls(@import("bind_group.zig"));