mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
mesa: additional vec4 constructor
This commit is contained in:
parent
6e46c121f9
commit
7f4f2ac39d
1 changed files with 8 additions and 0 deletions
|
|
@ -249,6 +249,14 @@ vec4 __constructor(const vec3 v3, const float f)
|
|||
__retVal.w = f;
|
||||
}
|
||||
|
||||
vec4 __constructor(const vec2 v2, const float f1, const float f2)
|
||||
{
|
||||
// XXX this constructor shouldn't be needed anymore
|
||||
__retVal.xy = v2;
|
||||
__retVal.z = f1;
|
||||
__retVal.w = f2;
|
||||
}
|
||||
|
||||
|
||||
//// ivec2 constructors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue