gpu: add RenderPassColorAttachment

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-07-16 20:48:56 -07:00 committed by Stephen Gutekanst
parent 8683fa8aa9
commit ad6d037d8f
2 changed files with 9 additions and 9 deletions

View file

@ -558,6 +558,15 @@ pub const ProgrammableStageDescriptor = extern struct {
constants: [*]const ConstantEntry,
};
pub const RenderPassColorAttachment = extern struct {
view: TextureView = TextureView.none, // nullable
resolve_target: TextureView = TextureView.none, // nullable
load_op: LoadOp,
store_op: StoreOp,
clear_color: Color,
clear_value: Color,
};
test "BackendType name" {
try testing.expectEqualStrings("Vulkan", BackendType.vulkan.name());
}