gpu: add RenderPassDepthStencilAttachment

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 19:59:14 -07:00 committed by Stephen Gutekanst
parent 8320b4e1bc
commit 1f9bb8078f
2 changed files with 16 additions and 14 deletions

View file

@ -40,6 +40,8 @@ pub const dawn = @import("dawn.zig");
pub const AlphaMode = @import("types.zig").AlphaMode;
pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimestampLocation;
pub const ChainedStruct = @import("types.zig").ChainedStruct;
pub const LoadOp = @import("types.zig").LoadOp;
pub const StoreOp = @import("types.zig").StoreOp;
pub const ComputePassTimestampWrite = struct {
query_set: QuerySet,
@ -47,6 +49,20 @@ pub const ComputePassTimestampWrite = struct {
location: ComputePassTimestampLocation,
};
pub const RenderPassDepthStencilAttachment = extern struct {
view: TextureView,
depth_load_op: LoadOp,
depth_store_op: StoreOp,
clear_depth: f32,
depth_clear_value: f32,
depth_read_only: bool,
stencil_load_op: LoadOp,
stencil_store_op: StoreOp,
clear_stencil: u32,
stencil_clear_value: u32,
stencil_read_only: bool,
};
test {
refAllDecls(@import("adapter.zig"));
refAllDecls(@import("bind_group.zig"));