diff options
author | Kenneth Graunke <[email protected]> | 2010-06-08 13:44:00 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-06-09 11:14:58 -0700 |
commit | 538da120920d4fce107da26bf94d30d063183deb (patch) | |
tree | ff477195c862237df135b599da351e281bdc5445 /builtins | |
parent | b3bcea7db6278fa1b8c66ad5253babe210462d69 (diff) |
texture_builtins.py: Add support for 130 Proj variants.
Diffstat (limited to 'builtins')
-rwxr-xr-x | builtins/tools/texture_builtins.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/builtins/tools/texture_builtins.py b/builtins/tools/texture_builtins.py index 49c620e89e2..404d7e8d415 100755 --- a/builtins/tools/texture_builtins.py +++ b/builtins/tools/texture_builtins.py @@ -112,6 +112,24 @@ with open(path.join(builtins_dir, "130_fs", "texture"), 'w') as sys.stdout: generate_fiu_sigs("txb", "2DArray") print "))" +with open(path.join(builtins_dir, "130", "textureProj"), 'w') as sys.stdout: + print "((function textureProj" + generate_fiu_sigs("tex", "1D", True) + generate_fiu_sigs("tex", "1D", True, 2) + generate_fiu_sigs("tex", "2D", True) + generate_fiu_sigs("tex", "2D", True, 1) + generate_fiu_sigs("tex", "3D", True) + print "))" + +with open(path.join(builtins_dir, "130_fs", "textureProj"), 'w') as sys.stdout: + print "((function textureProj" + generate_fiu_sigs("txb", "1D", True) + generate_fiu_sigs("txb", "1D", True, 2) + generate_fiu_sigs("txb", "2D", True) + generate_fiu_sigs("txb", "2D", True, 1) + generate_fiu_sigs("txb", "3D", True) + print "))" + with open(path.join(builtins_dir, "130", "textureLod"), 'w') as sys.stdout: print "((function textureLod" generate_fiu_sigs("txl", "1D") @@ -131,6 +149,15 @@ with open(path.join(builtins_dir, "130", "texelFetch"), 'w') as sys.stdout: generate_fiu_sigs("txf", "2DArray") print "))" +with open(path.join(builtins_dir, "130", "textureProjLod"), 'w') as sys.stdout: + print "((function textureLod" + generate_fiu_sigs("txl", "1D", True) + generate_fiu_sigs("txl", "1D", True, 2) + generate_fiu_sigs("txl", "2D", True) + generate_fiu_sigs("txl", "2D", True, 1) + generate_fiu_sigs("txl", "3D", True) + print "))" + with open(path.join(builtins_dir, "130", "textureGrad"), 'w') as sys.stdout: print "((function textureGrad" generate_fiu_sigs("txd", "1D") @@ -141,6 +168,15 @@ with open(path.join(builtins_dir, "130", "textureGrad"), 'w') as sys.stdout: generate_fiu_sigs("txd", "2DArray") print ")\n)" +with open(path.join(builtins_dir, "130", "textureProjGrad"), 'w') as sys.stdout: + print "((function textureLod" + generate_fiu_sigs("txd", "1D", True) + generate_fiu_sigs("txd", "1D", True, 2) + generate_fiu_sigs("txd", "2D", True) + generate_fiu_sigs("txd", "2D", True, 1) + generate_fiu_sigs("txd", "3D", True) + print "))" + # ARB_texture_rectangle extension with open(path.join(builtins_dir, "ARB_texture_rectangle", "textures"), 'w') as sys.stdout: print "((function texture2DRect" |