Rise
The Vieneo Province
Loading...
Searching...
No Matches
LoaderHelpers.h File Reference
#include "DDS.h"
#include "DDSTextureLoader.h"
#include "PlatformHelpers.h"
#include <algorithm>
#include <cfloat>
#include <cmath>
#include <memory>
#include <new>
#include <tuple>
Include dependency graph for LoaderHelpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DirectX::LoaderHelpers::auto_delete_file
class  DirectX::LoaderHelpers::auto_delete_file_wic

Namespaces

namespace  DirectX
namespace  DirectX::LoaderHelpers

Macros

#define ISBITMASK(r, g, b, a)

Functions

size_t DirectX::LoaderHelpers::BitsPerPixel (_In_ DXGI_FORMAT fmt) noexcept
DXGI_FORMAT DirectX::LoaderHelpers::MakeSRGB (_In_ DXGI_FORMAT format) noexcept
DXGI_FORMAT DirectX::LoaderHelpers::MakeLinear (_In_ DXGI_FORMAT format) noexcept
bool DirectX::LoaderHelpers::IsCompressed (_In_ DXGI_FORMAT fmt) noexcept
DXGI_FORMAT DirectX::LoaderHelpers::EnsureNotTypeless (DXGI_FORMAT fmt) noexcept
HRESULT DirectX::LoaderHelpers::LoadTextureDataFromMemory (_In_reads_(ddsDataSize) const uint8_t *ddsData, size_t ddsDataSize, const DDS_HEADER **header, const uint8_t **bitData, size_t *bitSize) noexcept
HRESULT DirectX::LoaderHelpers::LoadTextureDataFromFile (_In_z_ const wchar_t *fileName, std::unique_ptr< uint8_t[]> &ddsData, const DDS_HEADER **header, const uint8_t **bitData, size_t *bitSize) noexcept
HRESULT DirectX::LoaderHelpers::GetSurfaceInfo (_In_ size_t width, _In_ size_t height, _In_ DXGI_FORMAT fmt, _Out_opt_ size_t *outNumBytes, _Out_opt_ size_t *outRowBytes, _Out_opt_ size_t *outNumRows) noexcept
DXGI_FORMAT DirectX::LoaderHelpers::GetDXGIFormat (const DDS_PIXELFORMAT &ddpf) noexcept
DirectX::DDS_ALPHA_MODE DirectX::LoaderHelpers::GetAlphaMode (_In_ const DDS_HEADER *header) noexcept
uint32_t DirectX::LoaderHelpers::CountMips (uint32_t width, uint32_t height) noexcept
void DirectX::LoaderHelpers::FitPowerOf2 (UINT origx, UINT origy, _Inout_ UINT &targetx, _Inout_ UINT &targety, size_t maxsize)

Macro Definition Documentation

◆ ISBITMASK

#define ISBITMASK ( r,
g,
b,
a )
Value:
(ddpf.RBitMask == r && ddpf.GBitMask == g && ddpf.BBitMask == b && ddpf.ABitMask == a)

Definition at line 639 of file LoaderHelpers.h.