diff options
| author | 2020-02-18 21:34:01 +0700 | |
|---|---|---|
| committer | 2020-02-19 08:39:01 +0700 | |
| commit | f6f0762e81c45faa6293cbb1f0be0b0d9a4b7a7b (patch) | |
| tree | 1ca8d76aa9cb1aa76e2035916b4a143427fe38be /src | |
| parent | Merge pull request #3412 from Morph1984/aspect-ratio (diff) | |
| download | yuzu-f6f0762e81c45faa6293cbb1f0be0b0d9a4b7a7b.tar.gz yuzu-f6f0762e81c45faa6293cbb1f0be0b0d9a4b7a7b.tar.xz yuzu-f6f0762e81c45faa6293cbb1f0be0b0d9a4b7a7b.zip | |
vk_shader: Implement function ImageLoad (Used by Kirby Start Allies)
Please enter the commit message for your changes. Lines starting
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp index 24a658dce..070c98eef 100644 --- a/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp +++ b/src/video_core/renderer_vulkan/vk_shader_decompiler.cpp | |||
| @@ -1748,8 +1748,12 @@ private: | |||
| 1748 | } | 1748 | } |
| 1749 | 1749 | ||
| 1750 | Expression ImageLoad(Operation operation) { | 1750 | Expression ImageLoad(Operation operation) { |
| 1751 | UNIMPLEMENTED(); | 1751 | const auto& meta{std::get<MetaImage>(operation.GetMeta())}; |
| 1752 | return {}; | 1752 | |
| 1753 | const Id coords = GetCoordinates(operation, Type::Int); | ||
| 1754 | const Id texel = OpImageRead(t_uint4, GetImage(operation), coords); | ||
| 1755 | |||
| 1756 | return {OpCompositeExtract(t_uint, texel, meta.element), Type::Uint}; | ||
| 1753 | } | 1757 | } |
| 1754 | 1758 | ||
| 1755 | Expression ImageStore(Operation operation) { | 1759 | Expression ImageStore(Operation operation) { |