|
CeresEngine 0.2.0
A game development framework
|
A structure that describes how channels of the input texture should be mapped in the material. More...
#include <CeresEngine/Material/MaterialModel.hpp>
Public Types | |
| using | RawType = TVector4< ValueType > |
| The raw type used to perform the swizzle. | |
Public Member Functions | |
| constexpr | MaterialPropertySwizzle ()=default |
| Creates a new empty material property swizzle. | |
| constexpr | MaterialPropertySwizzle (RawType swizzle) |
| Creates a new material property swizzle from a swizzle vector. | |
| constexpr | MaterialPropertySwizzle (ValueType r, ValueType g, ValueType b, ValueType a) |
| Creates a new material property swizzle from a swizzle vector components. | |
| operator RawType () const noexcept | |
| Converts the swizzle object into it's underlying representation. | |
Public Attributes | |
| RawType | raw = {ValueType(1), ValueType(0), ValueType(0), ValueType(0)} |
| The vector that represents the swizzle operation. | |
A structure that describes how channels of the input texture should be mapped in the material.
| ValueType | The type of value that should be read from the texture. |
| using CeresEngine::MaterialPropertySwizzle< ValueType >::RawType = TVector4<ValueType> |
The raw type used to perform the swizzle.
|
constexprdefault |
Creates a new empty material property swizzle.
|
inlineconstexpr |
Creates a new material property swizzle from a swizzle vector.
|
inlineconstexpr |
Creates a new material property swizzle from a swizzle vector components.
|
inlineexplicitnoexcept |
Converts the swizzle object into it's underlying representation.
| RawType CeresEngine::MaterialPropertySwizzle< ValueType >::raw = {ValueType(1), ValueType(0), ValueType(0), ValueType(0)} |
The vector that represents the swizzle operation.