Added optional forceSRGB parameter to SaveWICTextureToFile (#148)

This commit is contained in:
Chuck Walbourn
2019-09-27 13:06:43 -07:00
committed by GitHub
parent f4954ce11b
commit 156af67b8c
4 changed files with 20 additions and 16 deletions

View File

@@ -20,7 +20,6 @@
#include <d3d12.h>
#include <OCIdl.h>
#include <stdint.h>
#include <functional>
@@ -41,5 +40,6 @@ namespace DirectX
D3D12_RESOURCE_STATES beforeState = D3D12_RESOURCE_STATE_RENDER_TARGET,
D3D12_RESOURCE_STATES afterState = D3D12_RESOURCE_STATE_RENDER_TARGET,
_In_opt_ const GUID* targetFormat = nullptr,
_In_opt_ std::function<void __cdecl(IPropertyBag2*)> setCustomProps = nullptr);
_In_opt_ std::function<void __cdecl(IPropertyBag2*)> setCustomProps = nullptr,
bool forceSRGB = false);
}