gpu: update defaults/optionality for RenderPassColorAttachment
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
8f2f6d5789
commit
7ab2dbf3d5
1 changed files with 7 additions and 1 deletions
|
|
@ -588,7 +588,13 @@ pub const RenderPassColorAttachment = extern struct {
|
||||||
resolve_target: ?TextureView,
|
resolve_target: ?TextureView,
|
||||||
load_op: LoadOp,
|
load_op: LoadOp,
|
||||||
store_op: StoreOp,
|
store_op: StoreOp,
|
||||||
clear_color: Color,
|
/// deprecated
|
||||||
|
clear_color: Color = .{
|
||||||
|
.r = std.math.nan(f64),
|
||||||
|
.g = std.math.nan(f64),
|
||||||
|
.b = std.math.nan(f64),
|
||||||
|
.a = std.math.nan(f64),
|
||||||
|
},
|
||||||
clear_value: Color,
|
clear_value: Color,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue