diff options
| author | 2021-05-27 20:31:03 -0400 | |
|---|---|---|
| committer | 2021-07-22 21:51:36 -0400 | |
| commit | a752ec88d06c6bcfb13605447a164c6b6915ed6e (patch) | |
| tree | 5e0bb8f30120199ed4955d402ff0b554db257e2c /src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | |
| parent | glsl: Fix non-immediate buffer access (diff) | |
| download | yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar.gz yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.tar.xz yuzu-a752ec88d06c6bcfb13605447a164c6b6915ed6e.zip | |
glsl: Implement derivatives and YDirection
plus some other misc additions/changed
Diffstat (limited to 'src/shader_recompiler/backend/glsl/emit_glsl_image.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp index cc5afc048..1a348b117 100644 --- a/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp +++ b/src/shader_recompiler/backend/glsl/emit_glsl_image.cpp | |||
| @@ -37,6 +37,9 @@ void EmitImageSampleImplicitLod([[maybe_unused]] EmitContext& ctx, [[maybe_unuse | |||
| 37 | if (!offset.IsEmpty()) { | 37 | if (!offset.IsEmpty()) { |
| 38 | throw NotImplementedException("Offset"); | 38 | throw NotImplementedException("Offset"); |
| 39 | } | 39 | } |
| 40 | if (info.type != TextureType::Color2D) { | ||
| 41 | throw NotImplementedException("Texture type: {}", info.type.Value()); | ||
| 42 | } | ||
| 40 | const auto texture{Texture(ctx, info, index)}; | 43 | const auto texture{Texture(ctx, info, index)}; |
| 41 | ctx.AddF32x4("{}=texture({},{});", inst, texture, coords); | 44 | ctx.AddF32x4("{}=texture({},{});", inst, texture, coords); |
| 42 | } | 45 | } |