This commit is contained in:
Chuck Walbourn 2019-12-12 16:46:20 -08:00
Родитель 898b515c39
Коммит a6215bd33a
1 изменённых файлов: 5 добавлений и 6 удалений

Просмотреть файл

@ -70,8 +70,7 @@ namespace
std::unique_ptr<uint8_t[]>& ddsData,
DDS_HEADER** header,
uint8_t** bitData,
size_t* bitSize
)
size_t* bitSize) noexcept
{
if (!header || !bitData || !bitSize)
{
@ -176,7 +175,7 @@ namespace
}
//--------------------------------------------------------------------------------------
DXGI_FORMAT MakeSRGB(_In_ DXGI_FORMAT format)
DXGI_FORMAT MakeSRGB(_In_ DXGI_FORMAT format) noexcept
{
switch (format)
{
@ -218,7 +217,7 @@ namespace
_In_ bool isCubeMap,
_In_ void* grfxMemory,
_Outptr_opt_ ID3D11Resource** texture,
_Outptr_opt_ ID3D11ShaderResourceView** textureView)
_Outptr_opt_ ID3D11ShaderResourceView** textureView) noexcept
{
if (!d3dDevice || !grfxMemory)
return E_POINTER;
@ -421,7 +420,7 @@ namespace
_In_ bool forceSRGB,
_Outptr_opt_ ID3D11Resource** texture,
_Outptr_opt_ ID3D11ShaderResourceView** textureView,
_Outptr_ void** grfxMemory)
_Outptr_ void** grfxMemory) noexcept
{
HRESULT hr = S_OK;
@ -583,7 +582,7 @@ namespace
}
//--------------------------------------------------------------------------------------
DDS_ALPHA_MODE GetAlphaMode(_In_ const DDS_HEADER* header)
DDS_ALPHA_MODE GetAlphaMode(_In_ const DDS_HEADER* header) noexcept
{
if (header->ddspf.flags & DDS_FOURCC)
{