CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::GPUImageSwizzleRGBA Struct Referencefinal

Image component swizzle structure for red, green, blue, and alpha components. More...

#include <CeresEngine/RenderAPI/GPUImage.hpp>

Static Public Member Functions

template<typename Processor >
static constexpr void reflect (Processor &&RTTI)
 Executes the given processor for every field of the struct.
 

Public Attributes

GPUImageSwizzle r = GPUImageSwizzle::Red
 Red component swizzle. By default red.
 
GPUImageSwizzle g = GPUImageSwizzle::Green
 Green component swizzle. By default green.
 
GPUImageSwizzle b = GPUImageSwizzle::Blue
 Blue component swizzle. By default blue.
 
GPUImageSwizzle a = GPUImageSwizzle::Alpha
 Alpha component swizzle. By default alpha.
 

Friends

bool operator== (const GPUImageSwizzleRGBA &lhs, const GPUImageSwizzleRGBA &rhs)
 
bool operator!= (const GPUImageSwizzleRGBA &lhs, const GPUImageSwizzleRGBA &rhs)
 

Detailed Description

Image component swizzle structure for red, green, blue, and alpha components.

Remarks
Can be used to change the order of texel components independently of a shader.

Member Function Documentation

◆ reflect()

template<typename Processor >
static constexpr void CeresEngine::GPUImageSwizzleRGBA::reflect ( Processor &&  RTTI)
inlinestaticconstexpr

Executes the given processor for every field of the struct.

Parameters
RTTIThe processor to be ran for every field.

Friends And Related Symbol Documentation

◆ operator!=

◆ operator==

Member Data Documentation

◆ a

GPUImageSwizzle CeresEngine::GPUImageSwizzleRGBA::a = GPUImageSwizzle::Alpha

Alpha component swizzle. By default alpha.

◆ b

GPUImageSwizzle CeresEngine::GPUImageSwizzleRGBA::b = GPUImageSwizzle::Blue

Blue component swizzle. By default blue.

◆ g

GPUImageSwizzle CeresEngine::GPUImageSwizzleRGBA::g = GPUImageSwizzle::Green

Green component swizzle. By default green.

◆ r

GPUImageSwizzle CeresEngine::GPUImageSwizzleRGBA::r = GPUImageSwizzle::Red

Red component swizzle. By default red.


The documentation for this struct was generated from the following file: