Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
Loading...
Searching...
No Matches
Public Types | Static Public Attributes | List of all members
foray::util::ComponentTraits< COMPONENT_T, ALPHA_FALLBACK_, IS_FLOAT_, IS_SIGNED_ > Class Template Reference

Describes the traits of a component type. More...

#include <foray_imageformattraits.hpp>

Public Types

using COMPONENT = COMPONENT_T
 Component type.
 

Static Public Attributes

static constexpr uint32_t SIZE = sizeof(COMPONENT)
 Size (bytes) of the component.
 
static constexpr COMPONENT ALPHA_FALLBACK = (COMPONENT)ALPHA_FALLBACK_
 Full opacity alpha fallback value.
 
static constexpr bool IS_FLOAT = IS_FLOAT_
 True if the internal representation is a floating point value.
 
static constexpr bool IS_SIGNED = IS_SIGNED_
 True if the internal representation supports negative values.
 

Detailed Description

template<typename COMPONENT_T, COMPONENT_T ALPHA_FALLBACK_, bool IS_FLOAT_, bool IS_SIGNED_>
class foray::util::ComponentTraits< COMPONENT_T, ALPHA_FALLBACK_, IS_FLOAT_, IS_SIGNED_ >

Describes the traits of a component type.

Parameters
COMPONENT_TMachine typoe of the component
ALPHA_FALLBACKFallback for full opacity alpha if no value is provided

Member Typedef Documentation

◆ COMPONENT

template<typename COMPONENT_T , COMPONENT_T ALPHA_FALLBACK_, bool IS_FLOAT_, bool IS_SIGNED_>
using foray::util::ComponentTraits< COMPONENT_T, ALPHA_FALLBACK_, IS_FLOAT_, IS_SIGNED_ >::COMPONENT = COMPONENT_T

Component type.

Member Data Documentation

◆ ALPHA_FALLBACK

template<typename COMPONENT_T , COMPONENT_T ALPHA_FALLBACK_, bool IS_FLOAT_, bool IS_SIGNED_>
constexpr COMPONENT foray::util::ComponentTraits< COMPONENT_T, ALPHA_FALLBACK_, IS_FLOAT_, IS_SIGNED_ >::ALPHA_FALLBACK = (COMPONENT)ALPHA_FALLBACK_
inlinestaticconstexpr

Full opacity alpha fallback value.

◆ IS_FLOAT

template<typename COMPONENT_T , COMPONENT_T ALPHA_FALLBACK_, bool IS_FLOAT_, bool IS_SIGNED_>
constexpr bool foray::util::ComponentTraits< COMPONENT_T, ALPHA_FALLBACK_, IS_FLOAT_, IS_SIGNED_ >::IS_FLOAT = IS_FLOAT_
inlinestaticconstexpr

True if the internal representation is a floating point value.

◆ IS_SIGNED

template<typename COMPONENT_T , COMPONENT_T ALPHA_FALLBACK_, bool IS_FLOAT_, bool IS_SIGNED_>
constexpr bool foray::util::ComponentTraits< COMPONENT_T, ALPHA_FALLBACK_, IS_FLOAT_, IS_SIGNED_ >::IS_SIGNED = IS_SIGNED_
inlinestaticconstexpr

True if the internal representation supports negative values.

◆ SIZE

template<typename COMPONENT_T , COMPONENT_T ALPHA_FALLBACK_, bool IS_FLOAT_, bool IS_SIGNED_>
constexpr uint32_t foray::util::ComponentTraits< COMPONENT_T, ALPHA_FALLBACK_, IS_FLOAT_, IS_SIGNED_ >::SIZE = sizeof(COMPONENT)
inlinestaticconstexpr

Size (bytes) of the component.


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