![]() |
VPP
0.8
A high-level modern C++ API for Vulkan
|
Shader (GPU-side) data type for 32-bit unsigned integer values. More...
#include <vppLangScalarTypes.hpp>
Public Member Functions | |
UInt () | |
Construct a zero r-value. | |
UInt (unsigned int value) | |
Construct a r-value from specified C++ value. More... | |
UInt | operator+ (const UInt &rhs) const |
Standard addition operator. | |
UInt | operator- (const UInt &rhs) const |
Standard subtraction operator. | |
UInt | operator* (const UInt &rhs) const |
Standard multiplication operator. | |
UInt | operator/ (const UInt &rhs) const |
Standard division operator. | |
UInt | operator% (const UInt &rhs) const |
Standard remainder operator. | |
UInt | operator<< (const UInt &rhs) const |
Standard left shift operator. | |
UInt | operator>> (const UInt &rhs) const |
Standard right shift operator. | |
UInt | operator| (const UInt &rhs) const |
Standard bitwise or operator. | |
UInt | operator^ (const UInt &rhs) const |
Standard bitwise xor operator. | |
UInt | operator & (const UInt &rhs) const |
Standard bitwise and operator. | |
UInt | operator- () const |
Standard sign reversal operator. | |
UInt | operator~ () const |
Standard bitwise negation operator. | |
Bool | operator== (const UInt &rhs) const |
Standard comparison operator (true if equal). | |
Bool | operator!= (const UInt &rhs) const |
Standard comparison operator (true if not equal). | |
Bool | operator> (const UInt &rhs) const |
Standard comparison operator (true if greater). | |
Bool | operator>= (const UInt &rhs) const |
Standard comparison operator (true if greater or equal). | |
Bool | operator< (const UInt &rhs) const |
Standard comparison operator (true if less). | |
Bool | operator<= (const UInt &rhs) const |
Standard comparison operator (true if less or equal). | |
Shader (GPU-side) data type for 32-bit unsigned integer values.
Use this type inside shader code as a counterpart of CPU-side unsigned int type.
This is a r-value type. You must initialize it with value, either CPU-side one (an explicit constant), or an expression computed on GPU side. The value can not be changed.
For mutable variable type, see VUInt. Beware that mutable variables can degrade performance on GPU, therefore UInt is preferable, unless you really want a mutable variable (e.g. a loop counter).
vpp::UInt::UInt | ( | unsigned int | value | ) |
Construct a r-value from specified C++ value.
The source value can be either a constant, or a parameter passed to shader specific for that shader. The constructor is called once when compiling the pipeline.