gpu: update defaults/optionality for RenderPassColorAttachment

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-27 09:53:35 -07:00 committed by Stephen Gutekanst
parent 8f2f6d5789
commit 7ab2dbf3d5

View file

@ -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,
}; };