summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtins/ir/faceforward
diff options
context:
space:
mode:
authorPaul Berry <[email protected]>2011-10-06 10:31:34 -0700
committerPaul Berry <[email protected]>2011-10-31 11:24:03 -0700
commitb6f32bbe12e1082e78951b6ef073bf244ba0b8b7 (patch)
treefed07bc4fc6b1d5d0a78d1dcb3403e6bf920c9d6 /src/glsl/builtins/ir/faceforward
parentb726639e1be0614fb6bbb75a6f07c63eacc6d787 (diff)
glsl: Add '.ir' extension to builtin IR files
This patch adds the extension '.ir' to all the files in src/glsl/builtins/ir/, and changes generate_builtins.py so that it no longer globs on '*' to find the files to build. This prevents spurious files (such as EMACS' infamous *~ backup files) from breaking the build.
Diffstat (limited to 'src/glsl/builtins/ir/faceforward')
-rw-r--r--src/glsl/builtins/ir/faceforward37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/glsl/builtins/ir/faceforward b/src/glsl/builtins/ir/faceforward
deleted file mode 100644
index 35b79571c6b..00000000000
--- a/src/glsl/builtins/ir/faceforward
+++ /dev/null
@@ -1,37 +0,0 @@
-((function faceforward
- (signature float
- (parameters
- (declare (in) float N)
- (declare (in) float I)
- (declare (in) float Nref))
- ((if (expression bool < (expression float * (var_ref Nref) (var_ref I)) (constant float (0)))
- ((return (var_ref N)))
- ((return (expression float neg (var_ref N)))))))
-
- (signature vec2
- (parameters
- (declare (in) vec2 N)
- (declare (in) vec2 I)
- (declare (in) vec2 Nref))
- ((if (expression bool < (expression float dot (var_ref Nref) (var_ref I)) (constant float (0)))
- ((return (var_ref N)))
- ((return (expression vec2 neg (var_ref N)))))))
-
- (signature vec3
- (parameters
- (declare (in) vec3 N)
- (declare (in) vec3 I)
- (declare (in) vec3 Nref))
- ((if (expression bool < (expression float dot (var_ref Nref) (var_ref I)) (constant float (0)))
- ((return (var_ref N)))
- ((return (expression vec3 neg (var_ref N)))))))
-
- (signature vec4
- (parameters
- (declare (in) vec4 N)
- (declare (in) vec4 I)
- (declare (in) vec4 Nref))
- ((if (expression bool < (expression float dot (var_ref Nref) (var_ref I)) (constant float (0)))
- ((return (var_ref N)))
- ((return (expression vec4 neg (var_ref N)))))))
-))