Skip to content

Commit

Permalink
Remove alternate
Browse files Browse the repository at this point in the history
  • Loading branch information
freqmod committed Aug 30, 2023
1 parent 0b5722c commit 4928a20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/back/wgsl/writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enum Attribute {
Invariant,
Interpolate(Option<crate::Interpolation>, Option<crate::Sampling>),
Location(u32),
AlternateBlendSource,
SecondBlendSource,
Stage(ShaderStage),
WorkGroupSize([u32; 3]),
}
Expand Down Expand Up @@ -320,7 +320,7 @@ impl<W: Write> Writer<W> {
for attribute in attributes {
match *attribute {
Attribute::Location(id) => write!(self.out, "@location({id}) ")?,
Attribute::AlternateBlendSource => write!(self.out, "@blend_src_1 ")?,
Attribute::SecondBlendSource => write!(self.out, "@blend_src_1 ")?,
Attribute::BuiltIn(builtin_attrib) => {
let builtin = builtin_str(builtin_attrib)?;
write!(self.out, "@builtin({builtin}) ")?;
Expand Down Expand Up @@ -1931,7 +1931,7 @@ fn map_binding_to_attribute(binding: &crate::Binding) -> Vec<Attribute> {
second_blend_source: true,
} => vec![
Attribute::Location(location),
Attribute::AlternateBlendSource,
Attribute::SecondBlendSource,
Attribute::Interpolate(interpolation, sampling),
],
}
Expand Down

0 comments on commit 4928a20

Please sign in to comment.