gpu: add BlendState
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
1069889ea6
commit
d70f5695b6
3 changed files with 13 additions and 12 deletions
|
|
@ -33,12 +33,6 @@ pub const Limits = extern struct {
|
|||
max_compute_workgroups_per_dimension: u32,
|
||||
};
|
||||
|
||||
pub const BlendComponent = extern struct {
|
||||
operation: BlendOperation,
|
||||
src_factor: BlendFactor,
|
||||
dst_factor: BlendFactor,
|
||||
};
|
||||
|
||||
pub const Color = extern struct {
|
||||
r: f64,
|
||||
g: f64,
|
||||
|
|
@ -70,3 +64,14 @@ pub const VertexAttribute = extern struct {
|
|||
offset: u64,
|
||||
shader_location: u32,
|
||||
};
|
||||
|
||||
pub const BlendComponent = extern struct {
|
||||
operation: BlendOperation,
|
||||
src_factor: BlendFactor,
|
||||
dst_factor: BlendFactor,
|
||||
};
|
||||
|
||||
pub const BlendState = extern struct {
|
||||
color: BlendComponent,
|
||||
alpha: BlendComponent,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue