re-add set_target
This commit is contained in:
parent
630da1340c
commit
879b36280b
@ -153,6 +153,12 @@ pub struct FragmentState {
|
||||
pub targets: Vec<Option<ColorTargetState>>,
|
||||
}
|
||||
|
||||
impl FragmentState {
|
||||
pub fn set_target(&mut self, index: usize, target: ColorTargetState) {
|
||||
filling_set_at(&mut self.targets, index, None, Some(target));
|
||||
}
|
||||
}
|
||||
|
||||
/// Describes a compute pipeline.
|
||||
#[derive(Clone, Debug, PartialEq, Eq, Default)]
|
||||
pub struct ComputePipelineDescriptor {
|
||||
|
Loading…
Reference in New Issue
Block a user