mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-29 16:51:20 +00:00
Shader: skip identity image remapping on materialization hits
This commit is contained in:
1 parent
bec67b7863
commit
496432bbb4
1 file changed
+3
@@ -401,6 +401,9 @@ struct ImageRemap {
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
void Apply(std::vector<T>& images) const {
|
void Apply(std::vector<T>& images) const {
|
||||||
EXIT_IF(images.size() != source_count);
|
EXIT_IF(images.size() != source_count);
|
||||||
|
if (count == source_count) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (uint32_t index = 0; index < source_count; index++) {
|
for (uint32_t index = 0; index < source_count; index++) {
|
||||||
if (indices[index] != UINT32_MAX && indices[index] != index) {
|
if (indices[index] != UINT32_MAX && indices[index] != index) {
|
||||||
images[indices[index]] = std::move(images[index]);
|
images[indices[index]] = std::move(images[index]);
|
||||||
|
|||||||
Reference in new issue
Block a user