From 0ed770633b1a84b7b94df8f739a6ee21fb15ac68 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Mon, 29 Feb 2016 19:47:06 +0100 Subject: [PATCH] gl: Add texture3d sampling function --- rpcs3/Emu/RSX/GL/GLCommonDecompiler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/rpcs3/Emu/RSX/GL/GLCommonDecompiler.cpp b/rpcs3/Emu/RSX/GL/GLCommonDecompiler.cpp index e28942aff1..467e1f5504 100644 --- a/rpcs3/Emu/RSX/GL/GLCommonDecompiler.cpp +++ b/rpcs3/Emu/RSX/GL/GLCommonDecompiler.cpp @@ -58,6 +58,12 @@ std::string getFunctionImpl(FUNCTION f) return "textureProj($t, $0.xyzw, $1.x)"; // Note: $1.x is bias case FUNCTION::FUNCTION_TEXTURE_SAMPLECUBE_LOD: return "textureLod($t, $0.xyz, $1)"; + case FUNCTION::FUNCTION_TEXTURE_SAMPLE3D: + return "texture($t, $0.xyz)"; + case FUNCTION::FUNCTION_TEXTURE_SAMPLE3D_PROJ: + return "textureProj($t, $0.xyzw, $1.x)"; // Note: $1.x is bias + case FUNCTION::FUNCTION_TEXTURE_SAMPLE3D_LOD: + return "textureLod($t, $0.xyz, $1)"; case FUNCTION::FUNCTION_DFDX: return "dFdx($0)"; case FUNCTION::FUNCTION_DFDY: