26#if defined(_XBOX_ONE) && defined(_TITLE)
36#pragma comment(lib, "uuid.lib")
39#ifndef DIRECTX_TOOLKIT_API
40#ifdef DIRECTX_TOOLKIT_EXPORT
42#define DIRECTX_TOOLKIT_API __attribute__((dllexport))
44#define DIRECTX_TOOLKIT_API __declspec(dllexport)
46#elif defined(DIRECTX_TOOLKIT_IMPORT)
48#define DIRECTX_TOOLKIT_API __attribute__((dllimport))
50#define DIRECTX_TOOLKIT_API __declspec(dllimport)
53#define DIRECTX_TOOLKIT_API
76 _In_reads_bytes_(wicDataSize)
const uint8_t* wicData,
77 _In_
size_t wicDataSize,
78 _Outptr_opt_ ID3D11Resource** texture,
79 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
80 _In_
size_t maxsize = 0) noexcept;
84 _In_z_ const
wchar_t* szFileName,
85 _Outptr_opt_ ID3D11Resource** texture,
86 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
87 _In_
size_t maxsize = 0) noexcept;
92#if defined(_XBOX_ONE) && defined(_TITLE)
93 _In_ ID3D11DeviceX* d3dDevice,
94 _In_opt_ ID3D11DeviceContextX* d3dContext,
96 _In_ ID3D11Device* d3dDevice,
97 _In_opt_ ID3D11DeviceContext* d3dContext,
99 _In_reads_bytes_(wicDataSize)
const uint8_t* wicData,
100 _In_
size_t wicDataSize,
101 _Outptr_opt_ ID3D11Resource** texture,
102 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
103 _In_
size_t maxsize = 0)
noexcept;
107#
if defined(_XBOX_ONE) && defined(_TITLE)
108 _In_ ID3D11DeviceX* d3dDevice,
109 _In_opt_ ID3D11DeviceContextX* d3dContext,
111 _In_ ID3D11Device* d3dDevice,
112 _In_opt_ ID3D11DeviceContext* d3dContext,
114 _In_z_
const wchar_t* szFileName,
115 _Outptr_opt_ ID3D11Resource** texture,
116 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
117 _In_
size_t maxsize = 0) noexcept;
122 _In_reads_bytes_(wicDataSize) const uint8_t* wicData,
123 _In_
size_t wicDataSize,
125 _In_ D3D11_USAGE usage,
126 _In_
unsigned int bindFlags,
127 _In_
unsigned int cpuAccessFlags,
128 _In_
unsigned int miscFlags,
130 _Outptr_opt_ ID3D11Resource** texture,
131 _Outptr_opt_ ID3D11ShaderResourceView** textureView) noexcept;
135 _In_z_ const
wchar_t* szFileName,
137 _In_ D3D11_USAGE usage,
138 _In_
unsigned int bindFlags,
139 _In_
unsigned int cpuAccessFlags,
140 _In_
unsigned int miscFlags,
142 _Outptr_opt_ ID3D11Resource** texture,
143 _Outptr_opt_ ID3D11ShaderResourceView** textureView) noexcept;
148#if defined(_XBOX_ONE) && defined(_TITLE)
149 _In_ ID3D11DeviceX* d3dDevice,
150 _In_opt_ ID3D11DeviceContextX* d3dContext,
152 _In_ ID3D11Device* d3dDevice,
153 _In_opt_ ID3D11DeviceContext* d3dContext,
155 _In_reads_bytes_(wicDataSize)
const uint8_t* wicData,
156 _In_
size_t wicDataSize,
158 _In_ D3D11_USAGE usage,
159 _In_
unsigned int bindFlags,
160 _In_
unsigned int cpuAccessFlags,
161 _In_
unsigned int miscFlags,
163 _Outptr_opt_ ID3D11Resource** texture,
164 _Outptr_opt_ ID3D11ShaderResourceView** textureView)
noexcept;
168#
if defined(_XBOX_ONE) && defined(_TITLE)
169 _In_ ID3D11DeviceX* d3dDevice,
170 _In_opt_ ID3D11DeviceContextX* d3dContext,
172 _In_ ID3D11Device* d3dDevice,
173 _In_opt_ ID3D11DeviceContext* d3dContext,
175 _In_z_
const wchar_t* szFileName,
177 _In_ D3D11_USAGE usage,
178 _In_
unsigned int bindFlags,
179 _In_
unsigned int cpuAccessFlags,
180 _In_
unsigned int miscFlags,
182 _Outptr_opt_ ID3D11Resource** texture,
183 _Outptr_opt_ ID3D11ShaderResourceView** textureView)
noexcept;
188 _In_reads_bytes_(wicDataSize)
const std::byte* wicData,
189 _In_
size_t wicDataSize,
190 _Outptr_opt_ ID3D11Resource** texture,
191 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
192 _In_
size_t maxsize = 0) noexcept
194 return CreateWICTextureFromMemory(d3dDevice,
reinterpret_cast<const uint8_t*
>(wicData), wicDataSize, texture, textureView, maxsize);
199#
if defined(_XBOX_ONE) && defined(_TITLE)
200 _In_ ID3D11DeviceX* d3dDevice,
201 _In_opt_ ID3D11DeviceContextX* d3dContext,
203 _In_ ID3D11Device* d3dDevice,
204 _In_opt_ ID3D11DeviceContext* d3dContext,
206 _In_reads_bytes_(wicDataSize)
const std::byte* wicData,
207 _In_
size_t wicDataSize,
208 _Outptr_opt_ ID3D11Resource** texture,
209 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
210 _In_
size_t maxsize = 0) noexcept
214 reinterpret_cast<const uint8_t*
>(wicData),
223 _In_reads_bytes_(wicDataSize)
const std::byte* wicData,
224 _In_
size_t wicDataSize,
226 _In_ D3D11_USAGE usage,
227 _In_
unsigned int bindFlags,
228 _In_
unsigned int cpuAccessFlags,
229 _In_
unsigned int miscFlags,
231 _Outptr_opt_ ID3D11Resource** texture,
232 _Outptr_opt_ ID3D11ShaderResourceView** textureView)
noexcept
235 reinterpret_cast<const uint8_t*
>(wicData),
249#
if defined(_XBOX_ONE) && defined(_TITLE)
250 _In_ ID3D11DeviceX* d3dDevice,
251 _In_opt_ ID3D11DeviceContextX* d3dContext,
253 _In_ ID3D11Device* d3dDevice,
254 _In_opt_ ID3D11DeviceContext* d3dContext,
256 _In_reads_bytes_(wicDataSize)
const std::byte* wicData,
257 _In_
size_t wicDataSize,
259 _In_ D3D11_USAGE usage,
260 _In_
unsigned int bindFlags,
261 _In_
unsigned int cpuAccessFlags,
262 _In_
unsigned int miscFlags,
264 _Outptr_opt_ ID3D11Resource** texture,
265 _Outptr_opt_ ID3D11ShaderResourceView** textureView)
noexcept
269 reinterpret_cast<const uint8_t*
>(wicData),
283#pragma clang diagnostic push
284#pragma clang diagnostic ignored "-Wdeprecated-dynamic-exception-spec"
287 inline namespace DX11
293#pragma clang diagnostic pop
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
#define DIRECTX_TOOLKIT_API
@ WIC_LOADER_FORCE_RGBA32
@ WIC_LOADER_SRGB_DEFAULT
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateWICTextureFromMemory(_In_ ID3D11Device *d3dDevice, _In_reads_bytes_(wicDataSize) const uint8_t *wicData, _In_ size_t wicDataSize, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _In_ size_t maxsize=0) noexcept
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateWICTextureFromFile(_In_ ID3D11Device *d3dDevice, _In_z_ const wchar_t *szFileName, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _In_ size_t maxsize=0) noexcept
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateWICTextureFromMemoryEx(_In_ ID3D11Device *d3dDevice, _In_reads_bytes_(wicDataSize) const uint8_t *wicData, _In_ size_t wicDataSize, _In_ size_t maxsize, _In_ D3D11_USAGE usage, _In_ unsigned int bindFlags, _In_ unsigned int cpuAccessFlags, _In_ unsigned int miscFlags, _In_ WIC_LOADER_FLAGS loadFlags, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView) noexcept
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateWICTextureFromFileEx(_In_ ID3D11Device *d3dDevice, _In_z_ const wchar_t *szFileName, _In_ size_t maxsize, _In_ D3D11_USAGE usage, _In_ unsigned int bindFlags, _In_ unsigned int cpuAccessFlags, _In_ unsigned int miscFlags, _In_ WIC_LOADER_FLAGS loadFlags, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView) noexcept