mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 19:50:13 +02:00
Minor code review
This commit is contained in:
parent
787bfa9053
commit
9fb5335cac
@ -647,8 +647,6 @@ int __cdecl wmain(_In_ int argc, _In_z_count_(argc) wchar_t* argv[])
|
|||||||
wchar_t ext[_MAX_EXT];
|
wchar_t ext[_MAX_EXT];
|
||||||
_wsplitpath_s(szOutputFile, nullptr, 0, nullptr, 0, nullptr, 0, ext, _MAX_EXT);
|
_wsplitpath_s(szOutputFile, nullptr, 0, nullptr, 0, nullptr, 0, ext, _MAX_EXT);
|
||||||
|
|
||||||
wprintf(L"Ext = %ls\n", ext);
|
|
||||||
|
|
||||||
CrossFileType = LookupByName(ext, g_pExtFileTypes);
|
CrossFileType = LookupByName(ext, g_pExtFileTypes);
|
||||||
|
|
||||||
switch (dwCommand)
|
switch (dwCommand)
|
||||||
|
@ -110,7 +110,7 @@ struct SValue
|
|||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
const SValue g_pOptions [] =
|
const SValue g_pOptions[] =
|
||||||
{
|
{
|
||||||
{ L"r", OPT_RECURSIVE },
|
{ L"r", OPT_RECURSIVE },
|
||||||
{ L"w", OPT_WIDTH },
|
{ L"w", OPT_WIDTH },
|
||||||
@ -162,7 +162,7 @@ const SValue g_pOptions [] =
|
|||||||
|
|
||||||
#define DEFFMT(fmt) { L#fmt, DXGI_FORMAT_ ## fmt }
|
#define DEFFMT(fmt) { L#fmt, DXGI_FORMAT_ ## fmt }
|
||||||
|
|
||||||
const SValue g_pFormats [] =
|
const SValue g_pFormats[] =
|
||||||
{
|
{
|
||||||
// List does not include _TYPELESS or depth/stencil formats
|
// List does not include _TYPELESS or depth/stencil formats
|
||||||
DEFFMT(R32G32B32A32_FLOAT),
|
DEFFMT(R32G32B32A32_FLOAT),
|
||||||
@ -249,7 +249,7 @@ const SValue g_pFormats [] =
|
|||||||
{ nullptr, DXGI_FORMAT_UNKNOWN }
|
{ nullptr, DXGI_FORMAT_UNKNOWN }
|
||||||
};
|
};
|
||||||
|
|
||||||
const SValue g_pReadOnlyFormats [] =
|
const SValue g_pReadOnlyFormats[] =
|
||||||
{
|
{
|
||||||
DEFFMT(R32G32B32A32_TYPELESS),
|
DEFFMT(R32G32B32A32_TYPELESS),
|
||||||
DEFFMT(R32G32B32_TYPELESS),
|
DEFFMT(R32G32B32_TYPELESS),
|
||||||
@ -290,10 +290,15 @@ const SValue g_pReadOnlyFormats [] =
|
|||||||
DEFFMT(420_OPAQUE),
|
DEFFMT(420_OPAQUE),
|
||||||
DEFFMT(NV11),
|
DEFFMT(NV11),
|
||||||
|
|
||||||
|
// DXGI 1.3 formats
|
||||||
|
{ L"P208", DXGI_FORMAT(130) },
|
||||||
|
{ L"V208", DXGI_FORMAT(131) },
|
||||||
|
{ L"V408", DXGI_FORMAT(132) },
|
||||||
|
|
||||||
{ nullptr, DXGI_FORMAT_UNKNOWN }
|
{ nullptr, DXGI_FORMAT_UNKNOWN }
|
||||||
};
|
};
|
||||||
|
|
||||||
const SValue g_pFilters [] =
|
const SValue g_pFilters[] =
|
||||||
{
|
{
|
||||||
{ L"POINT", TEX_FILTER_POINT },
|
{ L"POINT", TEX_FILTER_POINT },
|
||||||
{ L"LINEAR", TEX_FILTER_LINEAR },
|
{ L"LINEAR", TEX_FILTER_LINEAR },
|
||||||
@ -322,7 +327,7 @@ const SValue g_pFilters [] =
|
|||||||
#define CODEC_JXR 0xFFFF0004
|
#define CODEC_JXR 0xFFFF0004
|
||||||
#define CODEC_HDR 0xFFFF0005
|
#define CODEC_HDR 0xFFFF0005
|
||||||
|
|
||||||
const SValue g_pSaveFileTypes [] = // valid formats to write to
|
const SValue g_pSaveFileTypes[] = // valid formats to write to
|
||||||
{
|
{
|
||||||
{ L"BMP", WIC_CODEC_BMP },
|
{ L"BMP", WIC_CODEC_BMP },
|
||||||
{ L"JPG", WIC_CODEC_JPEG },
|
{ L"JPG", WIC_CODEC_JPEG },
|
||||||
@ -339,7 +344,7 @@ const SValue g_pSaveFileTypes [] = // valid formats to write to
|
|||||||
{ nullptr, CODEC_DDS }
|
{ nullptr, CODEC_DDS }
|
||||||
};
|
};
|
||||||
|
|
||||||
const SValue g_pFeatureLevels [] = // valid feature levels for -fl for maximimum size
|
const SValue g_pFeatureLevels[] = // valid feature levels for -fl for maximimum size
|
||||||
{
|
{
|
||||||
{ L"9.1", 2048 },
|
{ L"9.1", 2048 },
|
||||||
{ L"9.2", 2048 },
|
{ L"9.2", 2048 },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user