rename fragment_mut
This commit is contained in:
parent
6dc699a83e
commit
9b48405c3e
@ -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()
|
||||
|
@ -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)
|
||||
}
|
||||
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user