Om
1.0.0
A universal framework for multimedia simulation
|
A class that encapsulates the different flags that a shader binding can have. More...
#include <omGraphicsShaderBindingFlags.h>
Public Types | |
enum | Flag { ENABLED = (1 << 0), DYNAMIC_INPUT = (1 << 1), DEFAULT = ENABLED | DYNAMIC_INPUT, UNDEFINED = 0 } |
An enum that specifies the different shader binding flags. More... | |
Public Member Functions | |
ShaderBindingFlags () | |
Create a new shader binding flags object with no flags set. More... | |
ShaderBindingFlags (Flag flag) | |
Create a new shader binding flags object with the specified flag value initially set. More... | |
ShaderBindingFlags (UInt32 newFlags) | |
Create a new shader binding flags object with the specified initial combined flags value. More... | |
const devices::GraphicsContextCapabilities & | getCapabilities () const |
Return the required capabilities that a context must support to use this shader binding. More... | |
void | setCapabilities (const devices::GraphicsContextCapabilities &newCapabilities) |
Set the required capabilities that a context must support to use this shader binding. More... | |
operator UInt32 () const | |
Convert this shader binding flags object to an integer value. More... | |
Bool | isSet (Flag flag) const |
Return whether or not the specified flag value is set for this flags object. More... | |
void | set (Flag flag, Bool newIsSet) |
Set whether or not the specified flag value is set for this flags object. More... | |
A class that encapsulates the different flags that a shader binding can have.
These flags provide boolean information about a shader binding. Flags are indicated by setting a single bit of a 32-bit unsigned integer to 1.
Enum values for the different flags are defined as members of the class. Typically, the user would bitwise-OR the flag enum values together to produce a final set of set flags.
An enum that specifies the different shader binding flags.
|
inline |
Create a new shader binding flags object with no flags set.
|
inline |
Create a new shader binding flags object with the specified flag value initially set.
|
inline |
Create a new shader binding flags object with the specified initial combined flags value.
|
inline |
Return the required capabilities that a context must support to use this shader binding.
|
inline |
Set the required capabilities that a context must support to use this shader binding.
|
inline |
Convert this shader binding flags object to an integer value.
This operator is provided so that the ShaderBindingFlags object can be used as an integer value for bitwise logical operations.
Return whether or not the specified flag value is set for this flags object.
Set whether or not the specified flag value is set for this flags object.