diff options
Diffstat (limited to 'src/mesa/shader/slang/library/slang_core.gc')
-rw-r--r-- | src/mesa/shader/slang/library/slang_core.gc | 21 |
1 files changed, 21 insertions, 0 deletions
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; |