Hubris Engine Dev
A Project to learn and get into Game Engine developement.
 
Loading...
Searching...
No Matches
Format.h File Reference
#include <cstdint>
#include <cstddef>
+ Include dependency graph for Format.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Hubris::Graphics::FormatInfo
 
struct  Hubris::Graphics::FormatTraits< Fmt >
 

Namespaces

namespace  Hubris
 The Hubris Engine main namespace.
 
namespace  Hubris::Graphics
 Contains all graphics related classes and structs.
 

Macros

#define DEFINE_FORMAT(format, name, componentType, size, channels, isdepth, isSRGB)
 

Enumerations

enum class  Hubris::Graphics::ComponentType {
  Hubris::Graphics::Unknown , Hubris::Graphics::UNorm , Hubris::Graphics::SNorm , Hubris::Graphics::UInt = 1 << 2 ,
  Hubris::Graphics::SInt = 1 << 3 , Hubris::Graphics::Float = 1 << 4 , Hubris::Graphics::Depth = 1 << 5 , Hubris::Graphics::Stencil = 1 << 6
}
 
enum class  Hubris::Graphics::Format {
  Hubris::Graphics::Undefined , Hubris::Graphics::R8Unorm , Hubris::Graphics::R8Snorm , Hubris::Graphics::R8Uint ,
  Hubris::Graphics::R8Sint , Hubris::Graphics::R8G8Unorm , Hubris::Graphics::R8G8Snorm , Hubris::Graphics::R8G8Uint ,
  Hubris::Graphics::R8G8Sint , Hubris::Graphics::R8G8B8A8Unorm , Hubris::Graphics::R8G8B8A8Snorm , Hubris::Graphics::R8G8B8A8Uint ,
  Hubris::Graphics::R8G8B8A8Sint , Hubris::Graphics::R8G8B8A8Srgb , Hubris::Graphics::B8G8R8A8Unorm , Hubris::Graphics::B8G8R8A8Srgb ,
  Hubris::Graphics::A2R10G10B10Unorm , Hubris::Graphics::R16Float , Hubris::Graphics::R16Uint , Hubris::Graphics::R16Sint ,
  Hubris::Graphics::R16G16Float , Hubris::Graphics::R16G16Uint , Hubris::Graphics::R16G16Sint , Hubris::Graphics::R16G16B16A16Float ,
  Hubris::Graphics::R16G16B16A16Uint , Hubris::Graphics::R16G16B16A16Sint , Hubris::Graphics::R32Uint , Hubris::Graphics::R32Sint ,
  Hubris::Graphics::R32Float , Hubris::Graphics::R32G32Uint , Hubris::Graphics::R32G32Sint , Hubris::Graphics::R32G32Float ,
  Hubris::Graphics::R32G32B32A32Uint , Hubris::Graphics::R32G32B32A32Sint , Hubris::Graphics::R32G32B32A32Float , Hubris::Graphics::D16Unorm ,
  Hubris::Graphics::D24UnormS8Uint , Hubris::Graphics::D32Sfloat , Hubris::Graphics::D32SfloatS8Uint , Hubris::Graphics::Count
}
 

Functions

constexpr const FormatInfoHubris::Graphics::getFormatInfo (Format fmt)
 
constexpr const char * Hubris::Graphics::formatName (Format fmt)
 
constexpr ComponentType Hubris::Graphics::componentType (Format fmt)
 
constexpr size_t Hubris::Graphics::formatSize (Format fmt)
 
constexpr uint32_t Hubris::Graphics::formatChannels (Format fmt)
 
constexpr bool Hubris::Graphics::isDepthFormat (Format fmt)
 
constexpr bool Hubris::Graphics::isSrgbFormat (Format fmt)
 

Variables

constexpr FormatInfo Hubris::Graphics::formatTable []
 

Macro Definition Documentation

◆ DEFINE_FORMAT

#define DEFINE_FORMAT ( format,
name,
componentType,
size,
channels,
isdepth,
isSRGB )
Value:
{format, name, componentType, size, channels, isdepth, isSRGB }

Definition at line 6 of file Format.h.