|
CeresEngine 0.2.0
A game development framework
|
Specify rate at which vertex attributes are pulled from buffers. More...
#include <CeresEngine/RenderAPI/GPUVertexFormat.hpp>
Public Types | |
| enum | : UnderlyingType { Vertex , Instance } |
The underlying raw value of VertexElementSemantic. More... | |
| using | RawType = decltype(raw) |
Public Types inherited from CeresEngine::StructEnum< GPUVertexInputRate > | |
| using | UnderlyingType = UInt32 |
| using | Self = GPUVertexInputRate |
Public Member Functions | |
| constexpr | GPUVertexInputRate ()=default |
| constexpr | GPUVertexInputRate (RawType raw) |
| constexpr | GPUVertexInputRate (UnderlyingType raw) |
| StringView | toString () const noexcept |
Gets a string representation of GPUVertexInputRate. | |
Public Member Functions inherited from CeresEngine::StructEnum< GPUVertexInputRate > | |
| operator UnderlyingType () const noexcept | |
| Converts the enum into it's underlying type. | |
| void | toString (std::ostream &stream) const noexcept |
Writes a string representation of the ShaderType to the given stream. | |
Static Public Member Functions | |
| static Optional< GPUVertexInputRate > | fromString (StringView string) noexcept |
Creates a new GPUVertexInputRate from a string representation. | |
Static Public Member Functions inherited from CeresEngine::StructEnum< GPUVertexInputRate > | |
| static Self | fromRawUnderlying (UnderlyingType underlying) noexcept |
Creates a new Self from it's underlying numeric representation. | |
Public Attributes | |
| enum CeresEngine::GPUVertexInputRate:: { ... } | raw |
The underlying raw value of VertexElementSemantic. | |
Specify rate at which vertex attributes are pulled from buffers.
The underlying raw value of VertexElementSemantic.
| Enumerator | |
|---|---|
| Vertex | Specifies that vertex attribute addressing is a function of the vertex index. |
| Instance | Specifies that vertex attribute addressing is a function of the instance index. |
|
constexprdefault |
|
inlineexplicitconstexpr |
|
staticnoexcept |
Creates a new GPUVertexInputRate from a string representation.
If the string value is invalid, an empty optional is returned.
|
noexcept |
Gets a string representation of GPUVertexInputRate.
| enum { ... } CeresEngine::GPUVertexInputRate::raw |
The underlying raw value of VertexElementSemantic.