rename fragment_mut

This commit is contained in:
Emerson Coskey 2025-07-08 19:31:20 -07:00
parent 6dc699a83e
commit 9b48405c3e
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ impl Specializer<RenderPipeline> for BloomDownsamplingSpecializer {
"bloom_downsampling_pipeline".into()
});
let fragment = descriptor.get_fragment_mut()?;
let fragment = descriptor.fragment_mut()?;
fragment.entry_point = Some(if key.first_downsample {
"downsample_first".into()

View File

@ -161,7 +161,7 @@ impl Specializer<RenderPipeline> for BloomUpsamplingSpecializer {
write_mask: ColorWrites::ALL,
};
descriptor.get_fragment_mut()?.set_target(0, target);
descriptor.fragment_mut()?.set_target(0, target);
Ok(key)
}

View File

@ -118,7 +118,7 @@ pub struct RenderPipelineDescriptor {
pub struct NoFragmentStateError;
impl RenderPipelineDescriptor {
pub fn get_fragment_mut(&mut self) -> Result<&mut FragmentState, NoFragmentStateError> {
pub fn fragment_mut(&mut self) -> Result<&mut FragmentState, NoFragmentStateError> {
self.fragment.as_mut().ok_or(NoFragmentStateError)
}
}