summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/tools
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2010-10-18 15:35:10 -0700
committerKenneth Graunke <[email protected]>2011-05-09 11:23:54 -0700
commit5a3a242a8fc4b9f0cac0e40786dd0c4831517473 (patch)
treebbe0a5db4be397ee0b26aaf85a1beaa3ea6cc551 /src/glsl/builtins/tools
parent1d4eb8d5d82fca2bc6689cff90a8b971feac8054 (diff)
glsl: Add compiler support for ARB_shader_texture_lod.
Signed-off-by: Kenneth Graunke <[email protected]> Tested-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/glsl/builtins/tools')
-rwxr-xr-xsrc/glsl/builtins/tools/texture_builtins.py64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/glsl/builtins/tools/texture_builtins.py b/src/glsl/builtins/tools/texture_builtins.py
index 2fbe79010f9..a4054caac98 100755
--- a/src/glsl/builtins/tools/texture_builtins.py
+++ b/src/glsl/builtins/tools/texture_builtins.py
@@ -369,6 +369,70 @@ def generate_texture_functions(fs):
generate_sigs("", "tex", "2DArrayShadow")
end_function(fs, "shadow2DArray")
+ # ARB_shader_texture_lod extension
+ start_function("texture1DGradARB")
+ generate_fiu_sigs("txd", "1D")
+ end_function(fs, "texture1DGradARB")
+
+ start_function("texture2DGradARB")
+ generate_fiu_sigs("txd", "2D")
+ end_function(fs, "texture2DGradARB")
+
+ start_function("texture3DGradARB")
+ generate_fiu_sigs("txd", "3D")
+ end_function(fs, "texture3DGradARB")
+
+ start_function("textureCubeGradARB")
+ generate_fiu_sigs("txd", "Cube")
+ end_function(fs, "textureCubeGradARB")
+
+ start_function("texture1DProjGradARB")
+ generate_fiu_sigs("txd", "1D", True)
+ generate_fiu_sigs("txd", "1D", True, 2)
+ end_function(fs, "texture1DProjGradARB")
+
+ start_function("texture2DProjGradARB")
+ generate_fiu_sigs("txd", "2D", True)
+ generate_fiu_sigs("txd", "2D", True, 1)
+ end_function(fs, "texture2DProjGradARB")
+
+ start_function("texture3DProjGradARB")
+ generate_fiu_sigs("txd", "3D", True)
+ end_function(fs, "texture3DProjGradARB")
+
+ start_function("shadow1DGradARB")
+ generate_sigs("", "txd", "1DShadow", False, 1)
+ end_function(fs, "shadow1DGradARB")
+
+ start_function("shadow1DProjGradARB")
+ generate_sigs("", "txd", "1DShadow", True, 1)
+ end_function(fs, "shadow1DProjGradARB")
+
+ start_function("shadow2DGradARB")
+ generate_sigs("", "txd", "2DShadow", False)
+ end_function(fs, "shadow2DGradARB")
+
+ start_function("shadow2DProjGradARB")
+ generate_sigs("", "txd", "2DShadow", True)
+ end_function(fs, "shadow2DProjGradARB")
+
+ start_function("texture2DRectGradARB")
+ generate_sigs("", "txd", "2DRect")
+ end_function(fs, "texture2DRectGradARB")
+
+ start_function("texture2DRectProjGradARB")
+ generate_sigs("", "txd", "2DRect", True)
+ generate_sigs("", "txd", "2DRect", True, 1)
+ end_function(fs, "texture2DRectProjGradARB")
+
+ start_function("shadow2DRectGradARB")
+ generate_sigs("", "txd", "2DRectShadow", False)
+ end_function(fs, "shadow2DRectGradARB")
+
+ start_function("shadow2DRectProjGradARB")
+ generate_sigs("", "txd", "2DRectShadow", True)
+ end_function(fs, "shadow2DRectProjGradARB")
+
# Deprecated (110/120 style) functions with silly names:
start_function("texture1D")
generate_sigs("", "tex", "1D")