![]() |
MCRO
C++23 utilities for Unreal Engine.
|
This namespace contain utilities regarding high-level cross-platform and cross-rhi texture objects. More...
Data Structures | |
| struct | TTextureSize |
| A simple texture size description which can be used for checking the need to recreate a texture resource. More... | |
Concepts | |
| concept | CTextureSize |
| Describing a struct which can give texture size and layout information. | |
Typedefs | |
| using | FUnrealTextureSize = TTextureSize<uint32, EPixelFormat> |
Functions | |
| MCRO_API FRHITexture * | GetRhiTexture2D (UTexture *target) |
| Get the lower level RHI texture from a high level UTexture2D object if it's possible, nullptr otherwise. | |
| template<CEnum FormatType> | |
| constexpr auto | GetUnknownFormat () |
| Specialize this function template to define the unknown format for an RHI texture format. | |
| template<> | |
| constexpr auto | GetUnknownFormat< EPixelFormat > () |
| template<> | |
| constexpr auto | GetUnknownFormat< ETextureRenderTargetFormat > () |
| template<CEnum ToFormatType, CEnum FromFormatType> requires (!CSameAs<ToFormatType, FromFormatType>) | |
| ToFormatType | ConvertFormat (FromFormatType from) |
| Specialize this function template to define format conversion of equivalent formats between RHIs. | |
| template<CEnum ToFormatType, CEnum FromFormatType> requires CSameAs<ToFormatType, FromFormatType> | |
| ToFormatType | ConvertFormat (FromFormatType from) |
| Special case when ToFormatType and FromFormatType are the same there's no need for conversion. | |
| template<> | |
| FORCEINLINE_DEBUGGABLE ETextureRenderTargetFormat | ConvertFormat< ETextureRenderTargetFormat, EPixelFormat > (EPixelFormat from) |
| template<> | |
| FORCEINLINE_DEBUGGABLE EPixelFormat | ConvertFormat< EPixelFormat, ETextureRenderTargetFormat > (ETextureRenderTargetFormat from) |
| template<CTextureSize Left, CTextureSize Right> | |
| bool | operator== (Left const &l, Right const &r) |
| template<CTextureSize Left, CTextureSize Right> | |
| bool | operator!= (Left const &l, Right const &r) |
| MCRO_API FUnrealTextureSize | GetTextureSize (UTexture *texture) |
| template<> | |
| FORCEINLINE constexpr auto | GetUnknownFormat< DXGI_FORMAT > () |
| template<> | |
| MCROWINDOWS_API DXGI_FORMAT | ConvertFormat< DXGI_FORMAT, EPixelFormat > (EPixelFormat from) |
| template<> | |
| MCROWINDOWS_API EPixelFormat | ConvertFormat< EPixelFormat, DXGI_FORMAT > (DXGI_FORMAT from) |
| template<> | |
| MCROWINDOWS_API DXGI_FORMAT | ConvertFormat< DXGI_FORMAT, ETextureRenderTargetFormat > (ETextureRenderTargetFormat from) |
| template<> | |
| MCROWINDOWS_API ETextureRenderTargetFormat | ConvertFormat< ETextureRenderTargetFormat, DXGI_FORMAT > (DXGI_FORMAT from) |
This namespace contain utilities regarding high-level cross-platform and cross-rhi texture objects.
| using Mcro::Rendering::Textures::FUnrealTextureSize = TTextureSize<uint32, EPixelFormat> |
Definition at line 181 of file Textures.h.
| ToFormatType Mcro::Rendering::Textures::ConvertFormat | ( | FromFormatType | from | ) |
Specialize this function template to define format conversion of equivalent formats between RHIs.
Definition at line 46 of file Textures.h.
| ToFormatType Mcro::Rendering::Textures::ConvertFormat | ( | FromFormatType | from | ) |
Special case when ToFormatType and FromFormatType are the same there's no need for conversion.
Definition at line 54 of file Textures.h.
| MCROWINDOWS_API DXGI_FORMAT Mcro::Rendering::Textures::ConvertFormat< DXGI_FORMAT, EPixelFormat > | ( | EPixelFormat | from | ) |
| MCROWINDOWS_API DXGI_FORMAT Mcro::Rendering::Textures::ConvertFormat< DXGI_FORMAT, ETextureRenderTargetFormat > | ( | ETextureRenderTargetFormat | from | ) |
| MCROWINDOWS_API EPixelFormat Mcro::Rendering::Textures::ConvertFormat< EPixelFormat, DXGI_FORMAT > | ( | DXGI_FORMAT | from | ) |
| FORCEINLINE_DEBUGGABLE EPixelFormat Mcro::Rendering::Textures::ConvertFormat< EPixelFormat, ETextureRenderTargetFormat > | ( | ETextureRenderTargetFormat | from | ) |
Definition at line 87 of file Textures.h.
| MCROWINDOWS_API ETextureRenderTargetFormat Mcro::Rendering::Textures::ConvertFormat< ETextureRenderTargetFormat, DXGI_FORMAT > | ( | DXGI_FORMAT | from | ) |
| FORCEINLINE_DEBUGGABLE ETextureRenderTargetFormat Mcro::Rendering::Textures::ConvertFormat< ETextureRenderTargetFormat, EPixelFormat > | ( | EPixelFormat | from | ) |
Definition at line 60 of file Textures.h.
| MCRO_API FRHITexture * Mcro::Rendering::Textures::GetRhiTexture2D | ( | UTexture * | target | ) |
Get the lower level RHI texture from a high level UTexture2D object if it's possible, nullptr otherwise.
| MCRO_API FUnrealTextureSize Mcro::Rendering::Textures::GetTextureSize | ( | UTexture * | texture | ) |
|
constexpr |
Specialize this function template to define the unknown format for an RHI texture format.
Definition at line 38 of file Textures.h.
|
constexpr |
Definition at line 23 of file Textures.h.
|
constexpr |
Definition at line 40 of file Textures.h.
|
constexpr |
Definition at line 41 of file Textures.h.
| bool Mcro::Rendering::Textures::operator!= | ( | Left const & | l, |
| Right const & | r ) |
Definition at line 179 of file Textures.h.
| bool Mcro::Rendering::Textures::operator== | ( | Left const & | l, |
| Right const & | r ) |
Definition at line 170 of file Textures.h.