19#if defined(_XBOX_ONE) && defined(_TITLE)
28#ifndef DIRECTX_TOOLKIT_API
29#ifdef DIRECTX_TOOLKIT_EXPORT
31#define DIRECTX_TOOLKIT_API __attribute__((dllexport))
33#define DIRECTX_TOOLKIT_API __declspec(dllexport)
35#elif defined(DIRECTX_TOOLKIT_IMPORT)
37#define DIRECTX_TOOLKIT_API __attribute__((dllimport))
39#define DIRECTX_TOOLKIT_API __declspec(dllimport)
42#define DIRECTX_TOOLKIT_API
48#ifndef DDS_ALPHA_MODE_DEFINED
49#define DDS_ALPHA_MODE_DEFINED
74 _In_reads_bytes_(ddsDataSize)
const uint8_t* ddsData,
75 _In_
size_t ddsDataSize,
76 _Outptr_opt_ ID3D11Resource** texture,
77 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
78 _In_
size_t maxsize = 0,
83 _In_z_ const
wchar_t* szFileName,
84 _Outptr_opt_ ID3D11Resource** texture,
85 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
86 _In_
size_t maxsize = 0,
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_(ddsDataSize)
const uint8_t* ddsData,
100 _In_
size_t ddsDataSize,
101 _Outptr_opt_ ID3D11Resource** texture,
102 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
103 _In_
size_t maxsize = 0,
108#
if defined(_XBOX_ONE) && defined(_TITLE)
109 _In_ ID3D11DeviceX* d3dDevice,
110 _In_opt_ ID3D11DeviceContextX* d3dContext,
112 _In_ ID3D11Device* d3dDevice,
113 _In_opt_ ID3D11DeviceContext* d3dContext,
115 _In_z_
const wchar_t* szFileName,
116 _Outptr_opt_ ID3D11Resource** texture,
117 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
118 _In_
size_t maxsize = 0,
124 _In_reads_bytes_(ddsDataSize) const uint8_t* ddsData,
125 _In_
size_t ddsDataSize,
127 _In_ D3D11_USAGE usage,
128 _In_
unsigned int bindFlags,
129 _In_
unsigned int cpuAccessFlags,
130 _In_
unsigned int miscFlags,
132 _Outptr_opt_ ID3D11Resource** texture,
133 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
138 _In_z_ const
wchar_t* szFileName,
140 _In_ D3D11_USAGE usage,
141 _In_
unsigned int bindFlags,
142 _In_
unsigned int cpuAccessFlags,
143 _In_
unsigned int miscFlags,
145 _Outptr_opt_ ID3D11Resource** texture,
146 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
152#if defined(_XBOX_ONE) && defined(_TITLE)
153 _In_ ID3D11DeviceX* d3dDevice,
154 _In_opt_ ID3D11DeviceContextX* d3dContext,
156 _In_ ID3D11Device* d3dDevice,
157 _In_opt_ ID3D11DeviceContext* d3dContext,
159 _In_reads_bytes_(ddsDataSize)
const uint8_t* ddsData,
160 _In_
size_t ddsDataSize,
162 _In_ D3D11_USAGE usage,
163 _In_
unsigned int bindFlags,
164 _In_
unsigned int cpuAccessFlags,
165 _In_
unsigned int miscFlags,
167 _Outptr_opt_ ID3D11Resource** texture,
168 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
173#
if defined(_XBOX_ONE) && defined(_TITLE)
174 _In_ ID3D11DeviceX* d3dDevice,
175 _In_opt_ ID3D11DeviceContextX* d3dContext,
177 _In_ ID3D11Device* d3dDevice,
178 _In_opt_ ID3D11DeviceContext* d3dContext,
180 _In_z_
const wchar_t* szFileName,
182 _In_ D3D11_USAGE usage,
183 _In_
unsigned int bindFlags,
184 _In_
unsigned int cpuAccessFlags,
185 _In_
unsigned int miscFlags,
187 _Outptr_opt_ ID3D11Resource** texture,
188 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
194 _In_reads_bytes_(ddsDataSize)
const std::byte* ddsData,
195 _In_
size_t ddsDataSize,
196 _Outptr_opt_ ID3D11Resource** texture,
197 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
198 _In_
size_t maxsize = 0,
202 reinterpret_cast<const uint8_t*
>(ddsData),
212#
if defined(_XBOX_ONE) && defined(_TITLE)
213 _In_ ID3D11DeviceX* d3dDevice,
214 _In_opt_ ID3D11DeviceContextX* d3dContext,
216 _In_ ID3D11Device* d3dDevice,
217 _In_opt_ ID3D11DeviceContext* d3dContext,
219 _In_reads_bytes_(ddsDataSize)
const std::byte* ddsData,
220 _In_
size_t ddsDataSize,
221 _Outptr_opt_ ID3D11Resource** texture,
222 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
223 _In_
size_t maxsize = 0,
228 reinterpret_cast<const uint8_t*
>(ddsData),
238 _In_reads_bytes_(ddsDataSize)
const std::byte* ddsData,
239 _In_
size_t ddsDataSize,
241 _In_ D3D11_USAGE usage,
242 _In_
unsigned int bindFlags,
243 _In_
unsigned int cpuAccessFlags,
244 _In_
unsigned int miscFlags,
246 _Outptr_opt_ ID3D11Resource** texture,
247 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
251 reinterpret_cast<const uint8_t*
>(ddsData),
266#
if defined(_XBOX_ONE) && defined(_TITLE)
267 _In_ ID3D11DeviceX* d3dDevice,
268 _In_opt_ ID3D11DeviceContextX* d3dContext,
270 _In_ ID3D11Device* d3dDevice,
271 _In_opt_ ID3D11DeviceContext* d3dContext,
273 _In_reads_bytes_(ddsDataSize)
const std::byte* ddsData,
274 _In_
size_t ddsDataSize,
276 _In_ D3D11_USAGE usage,
277 _In_
unsigned int bindFlags,
278 _In_
unsigned int cpuAccessFlags,
279 _In_
unsigned int miscFlags,
281 _Outptr_opt_ ID3D11Resource** texture,
282 _Outptr_opt_ ID3D11ShaderResourceView** textureView,
287 reinterpret_cast<const uint8_t*
>(ddsData),
302#pragma clang diagnostic push
303#pragma clang diagnostic ignored "-Wdeprecated-dynamic-exception-spec"
306 inline namespace DX11
312#pragma clang diagnostic pop
HRESULT(WINAPI *CUniBuffer::_ScriptApplyDigitSubstitution)(const SCRIPT_DIGITSUBSTITUTE *
#define DIRECTX_TOOLKIT_API
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateDDSTextureFromFile(_In_ ID3D11Device *d3dDevice, _In_z_ const wchar_t *szFileName, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _In_ size_t maxsize=0, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr) noexcept
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateDDSTextureFromMemory(_In_ ID3D11Device *d3dDevice, _In_reads_bytes_(ddsDataSize) const uint8_t *ddsData, _In_ size_t ddsDataSize, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _In_ size_t maxsize=0, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr) noexcept
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateDDSTextureFromFileEx(_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_ DDS_LOADER_FLAGS loadFlags, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr) noexcept
DIRECTX_TOOLKIT_API HRESULT __cdecl CreateDDSTextureFromMemoryEx(_In_ ID3D11Device *d3dDevice, _In_reads_bytes_(ddsDataSize) const uint8_t *ddsData, _In_ size_t ddsDataSize, _In_ size_t maxsize, _In_ D3D11_USAGE usage, _In_ unsigned int bindFlags, _In_ unsigned int cpuAccessFlags, _In_ unsigned int miscFlags, _In_ DDS_LOADER_FLAGS loadFlags, _Outptr_opt_ ID3D11Resource **texture, _Outptr_opt_ ID3D11ShaderResourceView **textureView, _Out_opt_ DDS_ALPHA_MODE *alphaMode=nullptr) noexcept
@ DDS_ALPHA_MODE_PREMULTIPLIED
@ DDS_ALPHA_MODE_STRAIGHT