diff options
author | Dylan Baker <dylanx.c.baker@intel.com> | 2014-11-11 15:36:50 -0800 |
---|---|---|
committer | Dylan Baker <dylanx.c.baker@intel.com> | 2014-11-24 11:53:23 -0800 |
commit | 271b77adf95397e0a109d00d98377472ca154a25 (patch) | |
tree | e29a2027258d695fea26fc2e1b59072dce4270d8 /generated_tests/templates | |
parent | 900cb682960a668ab33ea182fe46d0acc7f4fced (diff) |
gen_texture_query_lod_tests.py: Split template into templates folder
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
acked-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'generated_tests/templates')
-rw-r--r-- | generated_tests/templates/gen_texture_query_lod_tests/template.glsl_parser_test.mako | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/generated_tests/templates/gen_texture_query_lod_tests/template.glsl_parser_test.mako b/generated_tests/templates/gen_texture_query_lod_tests/template.glsl_parser_test.mako new file mode 100644 index 000000000..65155cb48 --- /dev/null +++ b/generated_tests/templates/gen_texture_query_lod_tests/template.glsl_parser_test.mako @@ -0,0 +1,33 @@ +/* [config] +% if execution_stage == 'fs': + * expect_result: pass +% else: + * expect_result: fail +% endif + * glsl_version: ${version} +% if extensions: + * require_extensions: ${" ".join(extensions)} +% endif + * [end config] + */ + +#version ${version.translate(None, '.')} +% for extension in extensions: +#extension ${extension} : enable +% endfor + +uniform ${sampler_type} s; +% if execution_stage == 'fs': +varying ${coord_type} coord; +% else: +uniform ${coord_type} coord; +% endif + +void main() +{ + % if execution_stage == 'fs': + gl_FragColor.xy = textureQuery${lod}(s, coord); + % else: + gl_Position.xy = textureQuery${lod}(s, coord); + % endif +} |