소스 검색

shader: Add 2D and 3D variants to SUATOM and SURED

Used by Claybook.
ReinUsesLisp 5 년 전
부모
커밋
ec9a78885e
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp

+ 4 - 0
src/shader_recompiler/frontend/maxwell/translate/impl/surface_atomic_operations.cpp

@@ -76,6 +76,10 @@ IR::Value MakeCoords(TranslatorVisitor& v, IR::Reg reg, Type type) {
     case Type::_1D:
     case Type::BUFFER_1D:
         return v.X(reg);
+    case Type::_2D:
+        return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1));
+    case Type::_3D:
+        return v.ir.CompositeConstruct(v.X(reg), v.X(reg + 1), v.X(reg + 2));
     default:
         break;
     }