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

#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.

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

Definition at line 124 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 126 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 128 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 131 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 138 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 145 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 155 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 161 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 153 of file Textures.h.

◆ Height

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

Definition at line 152 of file Textures.h.

◆ Width

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

Definition at line 151 of file Textures.h.


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