Shader: skip identity image remapping on materialization hits

This commit is contained in:
nmzik
2026-09-27 10:47:18 +04:00
parent bec67b7863
commit 496432bbb4
@@ -401,6 +401,9 @@ struct ImageRemap {
template <typename T>
void Apply(std::vector<T>& images) const {
EXIT_IF(images.size() != source_count);
if (count == source_count) {
return;
}
for (uint32_t index = 0; index < source_count; index++) {
if (indices[index] != UINT32_MAX && indices[index] != index) {
images[indices[index]] = std::move(images[index]);