Rise
The Vieneo Province
Loading...
Searching...
No Matches
DirectX::LoaderHelpers Namespace Reference

Classes

class  auto_delete_file
class  auto_delete_file_wic

Functions

size_t BitsPerPixel (_In_ DXGI_FORMAT fmt) noexcept
DXGI_FORMAT MakeSRGB (_In_ DXGI_FORMAT format) noexcept
DXGI_FORMAT MakeLinear (_In_ DXGI_FORMAT format) noexcept
bool IsCompressed (_In_ DXGI_FORMAT fmt) noexcept
DXGI_FORMAT EnsureNotTypeless (DXGI_FORMAT fmt) noexcept
HRESULT LoadTextureDataFromMemory (_In_reads_(ddsDataSize) const uint8_t *ddsData, size_t ddsDataSize, const DDS_HEADER **header, const uint8_t **bitData, size_t *bitSize) noexcept
HRESULT 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 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 GetDXGIFormat (const DDS_PIXELFORMAT &ddpf) noexcept
DirectX::DDS_ALPHA_MODE GetAlphaMode (_In_ const DDS_HEADER *header) noexcept
uint32_t CountMips (uint32_t width, uint32_t height) noexcept
void FitPowerOf2 (UINT origx, UINT origy, _Inout_ UINT &targetx, _Inout_ UINT &targety, size_t maxsize)

Function Documentation

◆ BitsPerPixel()

size_t DirectX::LoaderHelpers::BitsPerPixel ( _In_ DXGI_FORMAT fmt)
inlinenoexcept

Definition at line 33 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CountMips()

uint32_t DirectX::LoaderHelpers::CountMips ( uint32_t width,
uint32_t height )
inlinenoexcept

Definition at line 1007 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ EnsureNotTypeless()

DXGI_FORMAT DirectX::LoaderHelpers::EnsureNotTypeless ( DXGI_FORMAT fmt)
inlinenoexcept

Definition at line 270 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ FitPowerOf2()

void DirectX::LoaderHelpers::FitPowerOf2 ( UINT origx,
UINT origy,
_Inout_ UINT & targetx,
_Inout_ UINT & targety,
size_t maxsize )
inline

Definition at line 1022 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetAlphaMode()

DirectX::DDS_ALPHA_MODE DirectX::LoaderHelpers::GetAlphaMode ( _In_ const DDS_HEADER * header)
inlinenoexcept

Definition at line 917 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetDXGIFormat()

DXGI_FORMAT DirectX::LoaderHelpers::GetDXGIFormat ( const DDS_PIXELFORMAT & ddpf)
inlinenoexcept

Definition at line 641 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetSurfaceInfo()

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 )
inlinenoexcept

Definition at line 463 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ IsCompressed()

bool DirectX::LoaderHelpers::IsCompressed ( _In_ DXGI_FORMAT fmt)
inlinenoexcept

Definition at line 239 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadTextureDataFromFile()

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 )
inlinenoexcept

Definition at line 360 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ LoadTextureDataFromMemory()

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 )
inlinenoexcept

Definition at line 299 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeLinear()

DXGI_FORMAT DirectX::LoaderHelpers::MakeLinear ( _In_ DXGI_FORMAT format)
inlinenoexcept

Definition at line 216 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ MakeSRGB()

DXGI_FORMAT DirectX::LoaderHelpers::MakeSRGB ( _In_ DXGI_FORMAT format)
inlinenoexcept

Definition at line 193 of file LoaderHelpers.h.

Here is the call graph for this function:
Here is the caller graph for this function: