Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Types | Static Public Attributes | List of all members
foray::util::ImageFormatTraits< FORMAT > Class Template Reference

Describes the traits of a VkFormat value. More...

#include <foray_imageformattraits.hpp>

Public Types

using COMPONENT_TRAITS = ComponentTraits_None
 Traits of the component.
 

Static Public Attributes

static constexpr uint32_t COMPONENT_COUNT = 0
 Count of components per texel (determines which channels it can represent)
 
static constexpr uint32_t COMPONENT_STRIDE = 4
 The stride in component base type (may differ from component count for packed types)
 
static constexpr uint32_t BYTESTRIDE = COMPONENT_TRAITS::SIZE * COMPONENT_COUNT
 Stride (bytes) per texel.
 

Detailed Description

template<VkFormat FORMAT>
class foray::util::ImageFormatTraits< FORMAT >

Describes the traits of a VkFormat value.

Member Typedef Documentation

◆ COMPONENT_TRAITS

template<VkFormat FORMAT>
using foray::util::ImageFormatTraits< FORMAT >::COMPONENT_TRAITS = ComponentTraits_None

Traits of the component.

Member Data Documentation

◆ BYTESTRIDE

template<VkFormat FORMAT>
constexpr uint32_t foray::util::ImageFormatTraits< FORMAT >::BYTESTRIDE = COMPONENT_TRAITS::SIZE * COMPONENT_COUNT
inlinestaticconstexpr

Stride (bytes) per texel.

◆ COMPONENT_COUNT

template<VkFormat FORMAT>
constexpr uint32_t foray::util::ImageFormatTraits< FORMAT >::COMPONENT_COUNT = 0
inlinestaticconstexpr

Count of components per texel (determines which channels it can represent)

◆ COMPONENT_STRIDE

template<VkFormat FORMAT>
constexpr uint32_t foray::util::ImageFormatTraits< FORMAT >::COMPONENT_STRIDE = 4
inlinestaticconstexpr

The stride in component base type (may differ from component count for packed types)


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