MCRO
C++23 utilities for Unreal Engine.
Loading...
Searching...
No Matches
Textures.h
Go to the documentation of this file.
1/** @noop License Comment
2 * @file
3 * @copyright
4 * This Source Code is subject to the terms of the Mozilla Public License, v2.0.
5 * If a copy of the MPL was not distributed with this file You can obtain one at
6 * https://mozilla.org/MPL/2.0/
7 *
8 * @author David Mórász
9 * @date 2025
10 */
11
12#pragma once
13
14#include "CoreMinimal.h"
16
18#include <dxgiformat.h>
20
22{
23 template <> FORCEINLINE constexpr auto GetUnknownFormat<DXGI_FORMAT>() { return DXGI_FORMAT_UNKNOWN; }
24
25 template <> MCROWINDOWS_API DXGI_FORMAT ConvertFormat<DXGI_FORMAT, EPixelFormat>(EPixelFormat from);
26 template <> MCROWINDOWS_API EPixelFormat ConvertFormat<EPixelFormat, DXGI_FORMAT>(DXGI_FORMAT from);
27
28 template <> MCROWINDOWS_API DXGI_FORMAT ConvertFormat<DXGI_FORMAT, ETextureRenderTargetFormat>(ETextureRenderTargetFormat from);
29 template <> MCROWINDOWS_API ETextureRenderTargetFormat ConvertFormat<ETextureRenderTargetFormat, DXGI_FORMAT>(DXGI_FORMAT from);
30}
31
MCROWINDOWS_API ETextureRenderTargetFormat ConvertFormat< ETextureRenderTargetFormat, DXGI_FORMAT >(DXGI_FORMAT from)
MCROWINDOWS_API DXGI_FORMAT ConvertFormat< DXGI_FORMAT, EPixelFormat >(EPixelFormat from)
MCROWINDOWS_API DXGI_FORMAT ConvertFormat< DXGI_FORMAT, ETextureRenderTargetFormat >(ETextureRenderTargetFormat from)
FORCEINLINE constexpr auto GetUnknownFormat< DXGI_FORMAT >()
Definition Textures.h:23
MCROWINDOWS_API EPixelFormat ConvertFormat< EPixelFormat, DXGI_FORMAT >(DXGI_FORMAT from)