From a706b0b8bd87bb85541ac0c474da4c6559312cde Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 8 Mar 2007 16:08:55 -0700 Subject: added missing bvec2/3/4 constructors --- src/mesa/shader/slang/library/slang_core.gc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'src/mesa/shader/slang/library/slang_core.gc') diff --git a/src/mesa/shader/slang/library/slang_core.gc b/src/mesa/shader/slang/library/slang_core.gc index 63a980c6d0..a0abef0eda 100644 --- a/src/mesa/shader/slang/library/slang_core.gc +++ b/src/mesa/shader/slang/library/slang_core.gc @@ -322,6 +322,12 @@ ivec4 __constructor(const bool b) //// bvec2 constructors +bvec2 __constructor(const bool b1, const bool b2) +{ + __retVal.x = b1; + __retVal.y = b2; +} + bvec2 __constructor(const bool b) { __retVal.xy = b.xx; @@ -342,6 +348,13 @@ bvec2 __constructor(const int i) //// bvec3 constructors +bvec3 __constructor(const bool b1, const bool b2, const bool b3) +{ + __retVal.x = b1; + __retVal.y = b2; + __retVal.z = b3; +} + bvec3 __constructor(const bool b) { __retVal.xyz = b.xxx; @@ -362,6 +375,14 @@ bvec3 __constructor(const int i) //// bvec4 constructors +bvec4 __constructor(const bool b1, const bool b2, const bool b3, const bool b4) +{ + __retVal.x = b1; + __retVal.y = b2; + __retVal.z = b3; + __retVal.w = b4; +} + bvec4 __constructor(const bool b) { __retVal.xyzw = b.xxxx; -- cgit v1.2.3