d3d11: fix history bindings

This commit is contained in:
chyyran 2022-11-30 02:43:03 -05:00
parent f044d0e91b
commit bcf64fc0cb

View file

@ -202,32 +202,34 @@ impl FilterPass {
.bind_vec4(*offset, original.view.size, None); .bind_vec4(*offset, original.view.size, None);
} }
// for (index, output) in parent.history_textures.iter().enumerate() { for (index, output) in parent.history_textures.iter().enumerate() {
// // if let Some(binding) = self let Some(output) = output else {
// // .reflection continue;
// // .meta };
// // .texture_meta if let Some(binding) = self
// // .get(&TextureSemantics::OriginalHistory.semantics(index + 1)) .reflection
// // { .meta
// // FilterPass::bind_texture(binding, output); .texture_meta
// // } .get(&TextureSemantics::OriginalHistory.semantics(index + 1))
// {
// if let Some((location, offset)) = self.uniform_bindings.get( FilterPass::bind_texture(
// &TextureSemantics::OriginalHistory &parent.samplers,
// .semantics(index + 1) &mut textures,
// .into(), &mut samplers,
// ) { binding,
// let (buffer, offset) = match offset { output,
// MemberOffset::Ubo(offset) => (&mut self.uniform_buffer.storage, *offset), );
// MemberOffset::PushConstant(offset) => (&mut self.push_buffer.storage, *offset), }
// };
// FilterPass::build_vec4( if let Some(offset) = self.uniform_bindings.get(
// location.location(), &TextureSemantics::OriginalHistory
// &mut buffer[offset..][..16], .semantics(index + 1)
// output.image.size, .into(),
// ); ) {
// } self.uniform_storage
// } .bind_vec4(*offset, output.view.size, None);
}
}
// PassOutput // PassOutput
for (index, output) in parent.output_textures.iter().enumerate() { for (index, output) in parent.output_textures.iter().enumerate() {