gpu: add BlendComponent

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-03-11 14:40:11 -07:00 committed by Stephen Gutekanst
parent a463a0c7cd
commit 5bce559ce4
3 changed files with 16 additions and 9 deletions

View file

@ -1,3 +1,6 @@
const BlendOperation = @import("enums.zig").BlendOperation;
const BlendFactor = @import("enums.zig").BlendFactor;
// TODO: docs
pub const Limits = struct {
max_texture_dimension_1d: u32,
@ -26,4 +29,10 @@ pub const Limits = struct {
max_compute_workgroup_size_y: u32,
max_compute_workgroup_size_z: u32,
max_compute_workgroups_per_dimension: u32,
};
};
pub const BlendComponent = struct {
operation: BlendOperation,
src_factor: BlendFactor,
dst_factor: BlendFactor,
};