Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
Hubris::Graphics::FormatTraits< Fmt > Struct Template Reference

#include <Format.h>

Static Public Attributes

static constexpr bool IsColor = !isDepthFormat(Fmt)
 
static constexpr size_t Size = formatSize(Fmt)
 
static constexpr ComponentType Type = componentType(Fmt)
 
static constexpr uint32_t Channels = formatChannels(Fmt)
 
static constexpr bool IsSrgb = isSrgbFormat(Fmt)
 

Detailed Description

template<Format Fmt>
struct Hubris::Graphics::FormatTraits< Fmt >

Definition at line 185 of file Format.h.

Member Data Documentation

◆ Channels

template<Format Fmt>
uint32_t Hubris::Graphics::FormatTraits< Fmt >::Channels = formatChannels(Fmt)
staticconstexpr

Definition at line 189 of file Format.h.

◆ IsColor

template<Format Fmt>
bool Hubris::Graphics::FormatTraits< Fmt >::IsColor = !isDepthFormat(Fmt)
staticconstexpr

Definition at line 186 of file Format.h.

◆ IsSrgb

template<Format Fmt>
bool Hubris::Graphics::FormatTraits< Fmt >::IsSrgb = isSrgbFormat(Fmt)
staticconstexpr

Definition at line 190 of file Format.h.

◆ Size

template<Format Fmt>
size_t Hubris::Graphics::FormatTraits< Fmt >::Size = formatSize(Fmt)
staticconstexpr

Definition at line 187 of file Format.h.

◆ Type

template<Format Fmt>
ComponentType Hubris::Graphics::FormatTraits< Fmt >::Type = componentType(Fmt)
staticconstexpr

Definition at line 188 of file Format.h.


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