![]() |
MCRO
C++23 utilities for Unreal Engine.
|
#include "CoreMinimal.h"#include "Mcro/Concepts.h"#include "Mcro/AssertMacros.h"#include "Engine/TextureRenderTarget2D.h"Go to the source code of this file.
Data Structures | |
| 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. More... | |
Namespaces | |
| namespace | Mcro |
| namespace | Mcro::Rendering |
| namespace | Mcro::Rendering::Textures |
| This namespace contain utilities regarding high-level cross-platform and cross-rhi texture objects. | |
Concepts | |
| concept | Mcro::Rendering::Textures::CTextureSize |
| Describing a struct which can give texture size and layout information. | |
Typedefs | |
| using | Mcro::Rendering::Textures::FUnrealTextureSize = TTextureSize<uint32, EPixelFormat> |
Functions | |
| 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. | |
| template<CEnum FormatType> | |
| constexpr auto | Mcro::Rendering::Textures::GetUnknownFormat () |
| Specialize this function template to define the unknown format for an RHI texture format. | |
| template<> | |
| constexpr auto | Mcro::Rendering::Textures::GetUnknownFormat< EPixelFormat > () |
| template<> | |
| constexpr auto | Mcro::Rendering::Textures::GetUnknownFormat< ETextureRenderTargetFormat > () |
| template<CEnum ToFormatType, CEnum FromFormatType> requires (!CSameAs<ToFormatType, FromFormatType>) | |
| ToFormatType | Mcro::Rendering::Textures::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 | Mcro::Rendering::Textures::ConvertFormat (FromFormatType from) |
| Special case when ToFormatType and FromFormatType are the same there's no need for conversion. | |
| template<> | |
| FORCEINLINE_DEBUGGABLE ETextureRenderTargetFormat | Mcro::Rendering::Textures::ConvertFormat< ETextureRenderTargetFormat, EPixelFormat > (EPixelFormat from) |
| template<> | |
| FORCEINLINE_DEBUGGABLE EPixelFormat | Mcro::Rendering::Textures::ConvertFormat< EPixelFormat, ETextureRenderTargetFormat > (ETextureRenderTargetFormat from) |
| template<CTextureSize Left, CTextureSize Right> | |
| bool | Mcro::Rendering::Textures::operator== (Left const &l, Right const &r) |
| template<CTextureSize Left, CTextureSize Right> | |
| bool | Mcro::Rendering::Textures::operator!= (Left const &l, Right const &r) |
| MCRO_API FUnrealTextureSize | Mcro::Rendering::Textures::GetTextureSize (UTexture *texture) |
Definition in file Textures.h.