diff options
author | Kenneth Graunke <[email protected]> | 2010-10-19 11:56:47 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2010-10-21 00:14:37 -0700 |
commit | 574c53f551cb35173aee4acfa5c374613b953264 (patch) | |
tree | df7e697717ba29c3eb98fd442371a7d1f9f4bbc1 /src/glsl/builtins/profiles | |
parent | 94a36faed7ae0c795665b6cfb4dd4324ffaa5fa8 (diff) |
glsl: Add support for GLSL 1.30's modf built-in.
Diffstat (limited to 'src/glsl/builtins/profiles')
-rw-r--r-- | src/glsl/builtins/profiles/130.frag | 5 | ||||
-rw-r--r-- | src/glsl/builtins/profiles/130.vert | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/glsl/builtins/profiles/130.frag b/src/glsl/builtins/profiles/130.frag index 96440703bd3..0d860eb9ed4 100644 --- a/src/glsl/builtins/profiles/130.frag +++ b/src/glsl/builtins/profiles/130.frag @@ -177,6 +177,11 @@ vec2 mod(vec2 x, vec2 y); vec3 mod(vec3 x, vec3 y); vec4 mod(vec4 x, vec4 y); +float modf(float x, out float i); +vec2 modf(vec2 x, out vec2 i); +vec3 modf(vec3 x, out vec3 i); +vec4 modf(vec4 x, out vec4 i); + float min(float x, float y); vec2 min(vec2 x, vec2 y); vec3 min(vec3 x, vec3 y); diff --git a/src/glsl/builtins/profiles/130.vert b/src/glsl/builtins/profiles/130.vert index eb765186fc8..2fd44dce8c7 100644 --- a/src/glsl/builtins/profiles/130.vert +++ b/src/glsl/builtins/profiles/130.vert @@ -177,6 +177,11 @@ vec2 mod(vec2 x, vec2 y); vec3 mod(vec3 x, vec3 y); vec4 mod(vec4 x, vec4 y); +float modf(float x, out float i); +vec2 modf(vec2 x, out vec2 i); +vec3 modf(vec3 x, out vec3 i); +vec4 modf(vec4 x, out vec4 i); + float min(float x, float y); vec2 min(vec2 x, vec2 y); vec3 min(vec3 x, vec3 y); |