MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType > Struct Template Reference

A simple texture size description which can be used for checking the need to recreate a texture resource. More...

#include <Textures.h>

Public Types

using FormatType = InFormatType
 

Public Member Functions

 TTextureSize ()
 
template<CScalar SizeTypeArg, CEnum FormatTypeArg>
 TTextureSize (SizeTypeArg width, SizeTypeArg height, FormatTypeArg format)
 
template<CTextureSize OtherTextureSize>
 TTextureSize (OtherTextureSize const &other)
 
template<CTextureSize OtherTextureSize>
 TTextureSize (OtherTextureSize &&other)
 
 operator bool () const
 
template<CTextureSize OtherTextureSize>
 operator OtherTextureSize () const
 

Data Fields

SizeType Width = 0
 
SizeType Height = 0
 
InFormatType Format = GetUnknownFormat<InFormatType>()
 

Detailed Description

template<CScalar SizeType, CEnum InFormatType>
struct Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >

A simple texture size description which can be used for checking the need to recreate a texture resource.

Template Parameters
SizeTypethe integral type for texture size
InFormatTypethe type of the format enum
Todo
This may get generalized to other type of resources in the future.

Definition at line 123 of file Textures.h.

Member Typedef Documentation

◆ FormatType

template<CScalar SizeType, CEnum InFormatType>
using Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::FormatType = InFormatType

Definition at line 125 of file Textures.h.

Constructor & Destructor Documentation

◆ TTextureSize() [1/4]

template<CScalar SizeType, CEnum InFormatType>
Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::TTextureSize ( )
inline

Definition at line 127 of file Textures.h.

◆ TTextureSize() [2/4]

template<CScalar SizeType, CEnum InFormatType>
template<CScalar SizeTypeArg, CEnum FormatTypeArg>
Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::TTextureSize ( SizeTypeArg width,
SizeTypeArg height,
FormatTypeArg format )
inline

Definition at line 130 of file Textures.h.

◆ TTextureSize() [3/4]

template<CScalar SizeType, CEnum InFormatType>
template<CTextureSize OtherTextureSize>
Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::TTextureSize ( OtherTextureSize const & other)
inline

Definition at line 137 of file Textures.h.

◆ TTextureSize() [4/4]

template<CScalar SizeType, CEnum InFormatType>
template<CTextureSize OtherTextureSize>
Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::TTextureSize ( OtherTextureSize && other)
inline

Definition at line 144 of file Textures.h.

Member Function Documentation

◆ operator bool()

template<CScalar SizeType, CEnum InFormatType>
Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::operator bool ( ) const
inline

Definition at line 154 of file Textures.h.

◆ operator OtherTextureSize()

template<CScalar SizeType, CEnum InFormatType>
template<CTextureSize OtherTextureSize>
Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::operator OtherTextureSize ( ) const
inline

Definition at line 160 of file Textures.h.

Field Documentation

◆ Format

template<CScalar SizeType, CEnum InFormatType>
InFormatType Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::Format = GetUnknownFormat<InFormatType>()

Definition at line 152 of file Textures.h.

◆ Height

template<CScalar SizeType, CEnum InFormatType>
SizeType Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::Height = 0

Definition at line 151 of file Textures.h.

◆ Width

template<CScalar SizeType, CEnum InFormatType>
SizeType Mcro::Rendering::Textures::TTextureSize< SizeType, InFormatType >::Width = 0

Definition at line 150 of file Textures.h.


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