fix downsampling specializer

This commit is contained in:
Emerson Coskey 2025-07-08 19:22:53 -07:00
parent ee33ae11d8
commit 6dc699a83e
No known key found for this signature in database

View File

@ -124,10 +124,7 @@ impl Specializer<RenderPipeline> for BloomDownsamplingSpecializer {
"bloom_downsampling_pipeline".into()
});
// TODO: should this error?
let Some(fragment) = &mut descriptor.fragment else {
return Ok(key);
};
let fragment = descriptor.get_fragment_mut()?;
fragment.entry_point = Some(if key.first_downsample {
"downsample_first".into()