diff options
| author | 2020-03-13 23:07:05 +0700 | |
|---|---|---|
| committer | 2020-03-30 17:44:45 +0700 | |
| commit | 552f0ff26713a2fd1fd9207e79574d35fd8d36dd (patch) | |
| tree | 7b562deba24f98df2af277c2678954c211cfe2f3 /src | |
| parent | shader: node - update correct comment (diff) | |
| download | yuzu-552f0ff26713a2fd1fd9207e79574d35fd8d36dd.tar.gz yuzu-552f0ff26713a2fd1fd9207e79574d35fd8d36dd.tar.xz yuzu-552f0ff26713a2fd1fd9207e79574d35fd8d36dd.zip | |
gl_decompiler: add atomic op
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_opengl/gl_shader_decompiler.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp index 8aa4a7ac9..9121a48bb 100644 --- a/src/video_core/renderer_opengl/gl_shader_decompiler.cpp +++ b/src/video_core/renderer_opengl/gl_shader_decompiler.cpp | |||
| @@ -2307,6 +2307,8 @@ private: | |||
| 2307 | ~Func() = delete; | 2307 | ~Func() = delete; |
| 2308 | 2308 | ||
| 2309 | static constexpr std::string_view Add = "Add"; | 2309 | static constexpr std::string_view Add = "Add"; |
| 2310 | static constexpr std::string_view Min = "Min"; | ||
| 2311 | static constexpr std::string_view Max = "Max"; | ||
| 2310 | static constexpr std::string_view And = "And"; | 2312 | static constexpr std::string_view And = "And"; |
| 2311 | static constexpr std::string_view Or = "Or"; | 2313 | static constexpr std::string_view Or = "Or"; |
| 2312 | static constexpr std::string_view Xor = "Xor"; | 2314 | static constexpr std::string_view Xor = "Xor"; |
| @@ -2457,7 +2459,21 @@ private: | |||
| 2457 | &GLSLDecompiler::AtomicImage<Func::Xor>, | 2459 | &GLSLDecompiler::AtomicImage<Func::Xor>, |
| 2458 | &GLSLDecompiler::AtomicImage<Func::Exchange>, | 2460 | &GLSLDecompiler::AtomicImage<Func::Exchange>, |
| 2459 | 2461 | ||
| 2462 | &GLSLDecompiler::Atomic<Func::Exchange, Type::Uint>, | ||
| 2460 | &GLSLDecompiler::Atomic<Func::Add, Type::Uint>, | 2463 | &GLSLDecompiler::Atomic<Func::Add, Type::Uint>, |
| 2464 | &GLSLDecompiler::Atomic<Func::Min, Type::Uint>, | ||
| 2465 | &GLSLDecompiler::Atomic<Func::Max, Type::Uint>, | ||
| 2466 | &GLSLDecompiler::Atomic<Func::And, Type::Uint>, | ||
| 2467 | &GLSLDecompiler::Atomic<Func::Or, Type::Uint>, | ||
| 2468 | &GLSLDecompiler::Atomic<Func::Xor, Type::Uint>, | ||
| 2469 | |||
| 2470 | &GLSLDecompiler::Atomic<Func::Exchange, Type::Int>, | ||
| 2471 | &GLSLDecompiler::Atomic<Func::Add, Type::Int>, | ||
| 2472 | &GLSLDecompiler::Atomic<Func::Min, Type::Int>, | ||
| 2473 | &GLSLDecompiler::Atomic<Func::Max, Type::Int>, | ||
| 2474 | &GLSLDecompiler::Atomic<Func::And, Type::Int>, | ||
| 2475 | &GLSLDecompiler::Atomic<Func::Or, Type::Int>, | ||
| 2476 | &GLSLDecompiler::Atomic<Func::Xor, Type::Int>, | ||
| 2461 | 2477 | ||
| 2462 | &GLSLDecompiler::Branch, | 2478 | &GLSLDecompiler::Branch, |
| 2463 | &GLSLDecompiler::BranchIndirect, | 2479 | &GLSLDecompiler::BranchIndirect, |