Gamp v0.0.7-54-gccdc599
Gamp: Graphics, Audio, Multimedia and Processing
Loading...
Searching...
No Matches
RenderMode.hpp File Reference
#include <cstdint>
#include <jau/enum_util.hpp>
Include dependency graph for RenderMode.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gamp
 Gamp: Graphics, Audio, Multimedia and Processing Framework (Native C++, WebAssembly, ...)
 
namespace  gamp::graph
 

Enumerations

enum class  gamp::graph::RenderMode : uint16_t {
  gamp::graph::RenderMode::none = 0 , gamp::graph::RenderMode::msaa = 1 << 0 , gamp::graph::RenderMode::vbaa = 1 << 1 , gamp::graph::RenderMode::aa_mask = msaa | vbaa ,
  gamp::graph::RenderMode::varweight = 1 << 8 , gamp::graph::RenderMode::normalchannel = 1 << 9 , gamp::graph::RenderMode::colorchannel = 1 << 10 , gamp::graph::RenderMode::colortexture = 1 << 11 ,
  gamp::graph::RenderMode::light0 = 1 << 12
}
 Render mode bits being part of the shader-selection-key. More...
 

Functions

constexpr bool gamp::graph::hasColorChannel (RenderMode m) noexcept
 
constexpr bool gamp::graph::hasColorTexture (RenderMode renderMode) noexcept
 Returns true if render mode has a color texture, i.e.
 
constexpr bool gamp::graph::hasLight0 (RenderMode m) noexcept
 
constexpr bool gamp::graph::hasNormalChannel (RenderMode m) noexcept
 
constexpr bool gamp::graph::hasVariableWeight (RenderMode renderMode) noexcept
 
constexpr bool gamp::graph::isGraphAA (RenderMode renderMode) noexcept
 Returns true if given renderModes has any of RenderMode::aa_mask set.
 
constexpr bool gamp::graph::isMSAA (RenderMode renderMode) noexcept
 Returns true if given renderModes has RenderMode::msaa set.
 
constexpr bool gamp::graph::isTwoPass (RenderMode renderMode) noexcept
 Returns true if given renderModes has any of RenderMode::aa_mask set.
 
constexpr bool gamp::graph::isVBAA (RenderMode renderMode) noexcept
 Returns true if given renderModes has RenderMode::vbaa set.
 
 gamp::graph::JAU_MAKE_BITFIELD_ENUM_STRING (RenderMode, msaa, vbaa, varweight, normalchannel, colorchannel, colortexture, light0)