re-add set_target

This commit is contained in:
Emerson Coskey 2025-07-15 14:31:08 -07:00
parent 630da1340c
commit 879b36280b
No known key found for this signature in database

View File

@ -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 {