gpu: update defaults/optionality for RenderPassDepthStencilAttachment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
835f93fb53
commit
8f2f6d5789
1 changed files with 10 additions and 10 deletions
|
|
@ -75,16 +75,16 @@ pub const ComputePassTimestampWrite = extern struct {
|
||||||
|
|
||||||
pub const RenderPassDepthStencilAttachment = extern struct {
|
pub const RenderPassDepthStencilAttachment = extern struct {
|
||||||
view: texture_view.TextureView,
|
view: texture_view.TextureView,
|
||||||
depth_load_op: types.LoadOp,
|
depth_load_op: types.LoadOp = .undef,
|
||||||
depth_store_op: types.StoreOp,
|
depth_store_op: types.StoreOp = .undef,
|
||||||
clear_depth: f32,
|
clear_depth: f32 = std.math.nan(f32), // deprecated
|
||||||
depth_clear_value: f32,
|
depth_clear_value: f32 = 0,
|
||||||
depth_read_only: bool,
|
depth_read_only: bool = false,
|
||||||
stencil_load_op: types.LoadOp,
|
stencil_load_op: types.LoadOp = .undef,
|
||||||
stencil_store_op: types.StoreOp,
|
stencil_store_op: types.StoreOp = .undef,
|
||||||
clear_stencil: u32,
|
clear_stencil: u32 = 0, // deprecated
|
||||||
stencil_clear_value: u32,
|
stencil_clear_value: u32 = 0,
|
||||||
stencil_read_only: bool,
|
stencil_read_only: bool = false,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub const RenderPassTimestampWrite = extern struct {
|
pub const RenderPassTimestampWrite = extern struct {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue