fennec
Loading...
Searching...
No Matches
Relational

The Relational Functions defined in the OpenGL 4.6 Shading Language Specification.

Syntax Description

bvec lessThan(vec x, vec y)
bvec lessThan(dvec x, dvec y)
bvec lessThan(ivec x, ivec y)
bvec lessThan(uvec x, uvec y)

Returns
the component-wise compare of x < y.
Parameters
xlhs of the expression
yrhs of the expression

bvec lessThanEqual(vec x, vec y)
bvec lessThanEqual(dvec x, dvec y)
bvec lessThanEqual(ivec x, ivec y)
bvec lessThanEqual(uvec x, uvec y)

Returns
the component-wise compare of x <= y.
Parameters
xlhs of the expression
yrhs of the expression

bvec greaterThan(vec x, vec y)
bvec greaterThan(dvec x, dvec y)
bvec greaterThan(ivec x, ivec y)
bvec greaterThan(uvec x, uvec y)

Returns
the component-wise compare of x > y.
Parameters
xlhs of the expression
yrhs of the expression

bvec greaterThanEqual(vec x, vec y)
bvec greaterThanEqual(dvec x, dvec y)
bvec greaterThanEqual(ivec x, ivec y)
bvec greaterThanEqual(uvec x, uvec y)

Returns
the component-wise compare of x >= y.
Parameters
xlhs of the expression
yrhs of the expression

bvec equal(vec x, vec y)
bvec equal(dvec x, dvec y)
bvec equal(ivec x, ivec y)
bvec equal(uvec x, uvec y)

Returns
the component-wise compare of x == y.
Parameters
xlhs of the expression
yrhs of the expression

bvec notEqual(vec x, vec y)
bvec notEqual(dvec x, dvec y)
bvec notEqual(ivec x, ivec y)
bvec notEqual(uvec x, uvec y)

Returns
the component-wise compare of x != y.
Parameters
xlhs of the expression
yrhs of the expression

bool any(bvec x)

Returns
\(true\) if any component of \(x\) is \(true\)
Parameters
xthe boolean vector to test

bool all(bvec x)

Returns
\(true\) if all components of \(x\) are \(true\)
Parameters
xthe boolean vector to test

bool not(bvec x)

Returns
the component-wise logical complement of \(x\).
Parameters
xthe boolean vector to inverse