gpu: add RequestAdapterOptions
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
a91186c2c9
commit
b90658aba8
3 changed files with 13 additions and 12 deletions
|
|
@ -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"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue