diff options
author | Kenneth Graunke <[email protected]> | 2010-06-09 13:03:18 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-06-09 13:04:16 -0700 |
commit | 47d44c877e26c78ebdb34529d98d643a04261053 (patch) | |
tree | a45157c2f604184cdb05ba77e9f2e25f08cf3917 /builtins | |
parent | 2438f64e6332fb0a5f80926f73bf3291bb3bc3ea (diff) |
Add remaining signatures for 'min' builtin.
Diffstat (limited to 'builtins')
-rw-r--r-- | builtins/110/min | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/builtins/110/min b/builtins/110/min index f9820ef8286..31e79489405 100644 --- a/builtins/110/min +++ b/builtins/110/min @@ -22,4 +22,43 @@ (declare (in) vec4 arg0) (declare (in) vec4 arg1)) ((return (expression vec4 min (var_ref arg0) (var_ref arg1))))) + + (signature vec2 + (parameters + (declare (in) vec2 arg0) + (declare (in) float arg1)) + ((declare () vec2 result) + (assign (constant bool (1)) (swiz x (var_ref result)) + (expression float min (swiz x (var_ref arg0)) (var_ref arg1))) + (assign (constant bool (1)) (swiz y (var_ref result)) + (expression float min (swiz y (var_ref arg0)) (var_ref arg1))) + (return (var_ref result)))) + + (signature vec3 + (parameters + (declare (in) vec3 arg0) + (declare (in) float arg1)) + ((declare () vec3 result) + (assign (constant bool (1)) (swiz x (var_ref result)) + (expression float min (swiz x (var_ref arg0)) (var_ref arg1))) + (assign (constant bool (1)) (swiz y (var_ref result)) + (expression float min (swiz y (var_ref arg0)) (var_ref arg1))) + (assign (constant bool (1)) (swiz z (var_ref result)) + (expression float min (swiz z (var_ref arg0)) (var_ref arg1))) + (return (var_ref result)))) + + (signature vec4 + (parameters + (declare (in) vec4 arg0) + (declare (in) float arg1)) + ((declare () vec4 result) + (assign (constant bool (1)) (swiz x (var_ref result)) + (expression float min (swiz x (var_ref arg0)) (var_ref arg1))) + (assign (constant bool (1)) (swiz y (var_ref result)) + (expression float min (swiz y (var_ref arg0)) (var_ref arg1))) + (assign (constant bool (1)) (swiz z (var_ref result)) + (expression float min (swiz z (var_ref arg0)) (var_ref arg1))) + (assign (constant bool (1)) (swiz w (var_ref result)) + (expression float min (swiz w (var_ref arg0)) (var_ref arg1))) + (return (var_ref result)))) )) |