gpu: add RenderPassDepthStencilAttachment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8320b4e1bc
commit
1f9bb8078f
2 changed files with 16 additions and 14 deletions
|
|
@ -1,17 +1,3 @@
|
||||||
pub const WGPURenderPassDepthStencilAttachment = 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,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub const WGPURenderPassDescriptorMaxDrawCount = extern struct {
|
pub const WGPURenderPassDescriptorMaxDrawCount = extern struct {
|
||||||
chain: ChainedStruct,
|
chain: ChainedStruct,
|
||||||
max_draw_count: u64,
|
max_draw_count: u64,
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,8 @@ pub const dawn = @import("dawn.zig");
|
||||||
pub const AlphaMode = @import("types.zig").AlphaMode;
|
pub const AlphaMode = @import("types.zig").AlphaMode;
|
||||||
pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimestampLocation;
|
pub const ComputePassTimestampLocation = @import("types.zig").ComputePassTimestampLocation;
|
||||||
pub const ChainedStruct = @import("types.zig").ChainedStruct;
|
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 {
|
pub const ComputePassTimestampWrite = struct {
|
||||||
query_set: QuerySet,
|
query_set: QuerySet,
|
||||||
|
|
@ -47,6 +49,20 @@ pub const ComputePassTimestampWrite = struct {
|
||||||
location: ComputePassTimestampLocation,
|
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 {
|
test {
|
||||||
refAllDecls(@import("adapter.zig"));
|
refAllDecls(@import("adapter.zig"));
|
||||||
refAllDecls(@import("bind_group.zig"));
|
refAllDecls(@import("bind_group.zig"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue