RetroArch
d3dx11tex.h
Go to the documentation of this file.
1 //
3 // Copyright (C) Microsoft Corporation. All Rights Reserved.
4 //
5 // File: d3dx11tex.h
6 // Content: D3DX11 texturing APIs
7 //
9 
10 #include "d3dx11.h"
11 
12 #ifndef __D3DX11TEX_H__
13 #define __D3DX11TEX_H__
14 
15 
16 //----------------------------------------------------------------------------
17 // D3DX11_FILTER flags:
18 // ------------------
19 //
20 // A valid filter must contain one of these values:
21 //
22 // D3DX11_FILTER_NONE
23 // No scaling or filtering will take place. Pixels outside the bounds
24 // of the source image are assumed to be transparent black.
25 // D3DX11_FILTER_POINT
26 // Each destination pixel is computed by sampling the nearest pixel
27 // from the source image.
28 // D3DX11_FILTER_LINEAR
29 // Each destination pixel is computed by linearly interpolating between
30 // the nearest pixels in the source image. This filter works best
31 // when the scale on each axis is less than 2.
32 // D3DX11_FILTER_TRIANGLE
33 // Every pixel in the source image contributes equally to the
34 // destination image. This is the slowest of all the filters.
35 // D3DX11_FILTER_BOX
36 // Each pixel is computed by averaging a 2x2(x2) box pixels from
37 // the source image. Only works when the dimensions of the
38 // destination are half those of the source. (as with mip maps)
39 //
40 // And can be OR'd with any of these optional flags:
41 //
42 // D3DX11_FILTER_MIRROR_U
43 // Indicates that pixels off the edge of the texture on the U-axis
44 // should be mirrored, not wraped.
45 // D3DX11_FILTER_MIRROR_V
46 // Indicates that pixels off the edge of the texture on the V-axis
47 // should be mirrored, not wraped.
48 // D3DX11_FILTER_MIRROR_W
49 // Indicates that pixels off the edge of the texture on the W-axis
50 // should be mirrored, not wraped.
51 // D3DX11_FILTER_MIRROR
52 // Same as specifying D3DX11_FILTER_MIRROR_U | D3DX11_FILTER_MIRROR_V |
53 // D3DX11_FILTER_MIRROR_V
54 // D3DX11_FILTER_DITHER
55 // Dithers the resulting image using a 4x4 order dither pattern.
56 // D3DX11_FILTER_SRGB_IN
57 // Denotes that the input data is in sRGB (gamma 2.2) colorspace.
58 // D3DX11_FILTER_SRGB_OUT
59 // Denotes that the output data is in sRGB (gamma 2.2) colorspace.
60 // D3DX11_FILTER_SRGB
61 // Same as specifying D3DX11_FILTER_SRGB_IN | D3DX11_FILTER_SRGB_OUT
62 //
63 //----------------------------------------------------------------------------
64 
65 typedef enum D3DX11_FILTER_FLAG
66 {
67  D3DX11_FILTER_NONE = (1 << 0),
68  D3DX11_FILTER_POINT = (2 << 0),
71  D3DX11_FILTER_BOX = (5 << 0),
72 
76  D3DX11_FILTER_MIRROR = (7 << 16),
77 
78  D3DX11_FILTER_DITHER = (1 << 19),
80 
81  D3DX11_FILTER_SRGB_IN = (1 << 21),
83  D3DX11_FILTER_SRGB = (3 << 21),
85 
86 //----------------------------------------------------------------------------
87 // D3DX11_NORMALMAP flags:
88 // ---------------------
89 // These flags are used to control how D3DX11ComputeNormalMap generates normal
90 // maps. Any number of these flags may be OR'd together in any combination.
91 //
92 // D3DX11_NORMALMAP_MIRROR_U
93 // Indicates that pixels off the edge of the texture on the U-axis
94 // should be mirrored, not wraped.
95 // D3DX11_NORMALMAP_MIRROR_V
96 // Indicates that pixels off the edge of the texture on the V-axis
97 // should be mirrored, not wraped.
98 // D3DX11_NORMALMAP_MIRROR
99 // Same as specifying D3DX11_NORMALMAP_MIRROR_U | D3DX11_NORMALMAP_MIRROR_V
100 // D3DX11_NORMALMAP_INVERTSIGN
101 // Inverts the direction of each normal
102 // D3DX11_NORMALMAP_COMPUTE_OCCLUSION
103 // Compute the per pixel Occlusion term and encodes it into the alpha.
104 // An Alpha of 1 means that the pixel is not obscured in anyway, and
105 // an alpha of 0 would mean that the pixel is completly obscured.
106 //
107 //----------------------------------------------------------------------------
108 
110 {
117 
118 //----------------------------------------------------------------------------
119 // D3DX11_CHANNEL flags:
120 // -------------------
121 // These flags are used by functions which operate on or more channels
122 // in a texture.
123 //
124 // D3DX11_CHANNEL_RED
125 // Indicates the red channel should be used
126 // D3DX11_CHANNEL_BLUE
127 // Indicates the blue channel should be used
128 // D3DX11_CHANNEL_GREEN
129 // Indicates the green channel should be used
130 // D3DX11_CHANNEL_ALPHA
131 // Indicates the alpha channel should be used
132 // D3DX11_CHANNEL_LUMINANCE
133 // Indicates the luminaces of the red green and blue channels should be
134 // used.
135 //
136 //----------------------------------------------------------------------------
137 
139 {
140  D3DX11_CHANNEL_RED = (1 << 0),
146 
147 
148 
149 //----------------------------------------------------------------------------
150 // D3DX11_IMAGE_FILE_FORMAT:
151 // ---------------------
152 // This enum is used to describe supported image file formats.
153 //
154 //----------------------------------------------------------------------------
155 
157 {
166 
168 
169 
170 //----------------------------------------------------------------------------
171 // D3DX11_SAVE_TEXTURE_FLAG:
172 // ---------------------
173 // This enum is used to support texture saving options.
174 //
175 //----------------------------------------------------------------------------
176 
178 {
181 
182 
183 //----------------------------------------------------------------------------
184 // D3DX11_IMAGE_INFO:
185 // ---------------
186 // This structure is used to return a rough description of what the
187 // the original contents of an image file looked like.
188 //
189 // Width
190 // Width of original image in pixels
191 // Height
192 // Height of original image in pixels
193 // Depth
194 // Depth of original image in pixels
195 // ArraySize
196 // Array size in textures
197 // MipLevels
198 // Number of mip levels in original image
199 // MiscFlags
200 // Miscellaneous flags
201 // Format
202 // D3D format which most closely describes the data in original image
203 // ResourceDimension
204 // D3D11_RESOURCE_DIMENSION representing the dimension of texture stored in the file.
205 // D3D11_RESOURCE_DIMENSION_TEXTURE1D, 2D, 3D
206 // ImageFileFormat
207 // D3DX11_IMAGE_FILE_FORMAT representing the format of the image file.
208 //----------------------------------------------------------------------------
209 
210 typedef struct D3DX11_IMAGE_INFO
211 {
222 
223 
224 
225 
226 
227 #ifdef __cplusplus
228 extern "C" {
229 #endif //__cplusplus
230 
231 
232 
234 // Image File APIs ///////////////////////////////////////////////////////////
236 
237 //----------------------------------------------------------------------------
238 // D3DX11_IMAGE_LOAD_INFO:
239 // ---------------
240 // This structure can be optionally passed in to texture loader APIs to
241 // control how textures get loaded. Pass in D3DX11_DEFAULT for any of these
242 // to have D3DX automatically pick defaults based on the source file.
243 //
244 // Width
245 // Rescale texture to Width texels wide
246 // Height
247 // Rescale texture to Height texels high
248 // Depth
249 // Rescale texture to Depth texels deep
250 // FirstMipLevel
251 // First mip level to load
252 // MipLevels
253 // Number of mip levels to load after the first level
254 // Usage
255 // D3D11_USAGE flag for the new texture
256 // BindFlags
257 // D3D11 Bind flags for the new texture
258 // CpuAccessFlags
259 // D3D11 CPU Access flags for the new texture
260 // MiscFlags
261 // Reserved. Must be 0
262 // Format
263 // Resample texture to the specified format
264 // Filter
265 // Filter the texture using the specified filter (only when resampling)
266 // MipFilter
267 // Filter the texture mip levels using the specified filter (only if
268 // generating mips)
269 // pSrcInfo
270 // (optional) pointer to a D3DX11_IMAGE_INFO structure that will get
271 // populated with source image information
272 //----------------------------------------------------------------------------
273 
274 
276 {
290 
291 #ifdef __cplusplus
293  {
306  pSrcInfo = NULL;
307  }
308 #endif
309 
311 
312 //-------------------------------------------------------------------------------
313 // GetImageInfoFromFile/Resource/Memory:
314 // ------------------------------
315 // Fills in a D3DX11_IMAGE_INFO struct with information about an image file.
316 //
317 // Parameters:
318 // pSrcFile
319 // File name of the source image.
320 // pSrcModule
321 // Module where resource is located, or NULL for module associated
322 // with image the os used to create the current process.
323 // pSrcResource
324 // Resource name.
325 // pSrcData
326 // Pointer to file in memory.
327 // SrcDataSize
328 // Size in bytes of file in memory.
329 // pPump
330 // Optional pointer to a thread pump object to use.
331 // pSrcInfo
332 // Pointer to a D3DX11_IMAGE_INFO structure to be filled in with the
333 // description of the data in the source image file.
334 // pHResult
335 // Pointer to a memory location to receive the return value upon completion.
336 // Maybe NULL if not needed.
337 // If pPump != NULL, pHResult must be a valid memory location until the
338 // the asynchronous execution completes.
339 //-------------------------------------------------------------------------------
340 
341 HRESULT WINAPI
343  LPCSTR pSrcFile,
344  ID3DX11ThreadPump* pPump,
345  D3DX11_IMAGE_INFO* pSrcInfo,
346  HRESULT* pHResult);
347 
348 HRESULT WINAPI
350  LPCWSTR pSrcFile,
351  ID3DX11ThreadPump* pPump,
352  D3DX11_IMAGE_INFO* pSrcInfo,
353  HRESULT* pHResult);
354 
355 #ifdef UNICODE
356 #define D3DX11GetImageInfoFromFile D3DX11GetImageInfoFromFileW
357 #else
358 #define D3DX11GetImageInfoFromFile D3DX11GetImageInfoFromFileA
359 #endif
360 
361 
362 HRESULT WINAPI
364  HMODULE hSrcModule,
365  LPCSTR pSrcResource,
366  ID3DX11ThreadPump* pPump,
367  D3DX11_IMAGE_INFO* pSrcInfo,
368  HRESULT* pHResult);
369 
370 HRESULT WINAPI
372  HMODULE hSrcModule,
373  LPCWSTR pSrcResource,
374  ID3DX11ThreadPump* pPump,
375  D3DX11_IMAGE_INFO* pSrcInfo,
376  HRESULT* pHResult);
377 
378 #ifdef UNICODE
379 #define D3DX11GetImageInfoFromResource D3DX11GetImageInfoFromResourceW
380 #else
381 #define D3DX11GetImageInfoFromResource D3DX11GetImageInfoFromResourceA
382 #endif
383 
384 
385 HRESULT WINAPI
387  LPCVOID pSrcData,
388  SIZE_T SrcDataSize,
389  ID3DX11ThreadPump* pPump,
390  D3DX11_IMAGE_INFO* pSrcInfo,
391  HRESULT* pHResult);
392 
393 
395 // Create/Save Texture APIs //////////////////////////////////////////////////
397 
398 //----------------------------------------------------------------------------
399 // D3DX11CreateTextureFromFile/Resource/Memory:
400 // D3DX11CreateShaderResourceViewFromFile/Resource/Memory:
401 // -----------------------------------
402 // Create a texture object from a file or resource.
403 //
404 // Parameters:
405 //
406 // pDevice
407 // The D3D device with which the texture is going to be used.
408 // pSrcFile
409 // File name.
410 // hSrcModule
411 // Module handle. if NULL, current module will be used.
412 // pSrcResource
413 // Resource name in module
414 // pvSrcData
415 // Pointer to file in memory.
416 // SrcDataSize
417 // Size in bytes of file in memory.
418 // pLoadInfo
419 // Optional pointer to a D3DX11_IMAGE_LOAD_INFO structure that
420 // contains additional loader parameters.
421 // pPump
422 // Optional pointer to a thread pump object to use.
423 // ppTexture
424 // [out] Created texture object.
425 // ppShaderResourceView
426 // [out] Shader resource view object created.
427 // pHResult
428 // Pointer to a memory location to receive the return value upon completion.
429 // Maybe NULL if not needed.
430 // If pPump != NULL, pHResult must be a valid memory location until the
431 // the asynchronous execution completes.
432 //
433 //----------------------------------------------------------------------------
434 
435 
436 // FromFile
437 
438 HRESULT WINAPI
440  ID3D11Device* pDevice,
441  LPCSTR pSrcFile,
442  D3DX11_IMAGE_LOAD_INFO *pLoadInfo,
443  ID3DX11ThreadPump* pPump,
444  ID3D11ShaderResourceView** ppShaderResourceView,
445  HRESULT* pHResult);
446 
447 HRESULT WINAPI
449  ID3D11Device* pDevice,
450  LPCWSTR pSrcFile,
451  D3DX11_IMAGE_LOAD_INFO *pLoadInfo,
452  ID3DX11ThreadPump* pPump,
453  ID3D11ShaderResourceView** ppShaderResourceView,
454  HRESULT* pHResult);
455 
456 #ifdef UNICODE
457 #define D3DX11CreateShaderResourceViewFromFile D3DX11CreateShaderResourceViewFromFileW
458 #else
459 #define D3DX11CreateShaderResourceViewFromFile D3DX11CreateShaderResourceViewFromFileA
460 #endif
461 
462 HRESULT WINAPI
464  ID3D11Device* pDevice,
465  LPCSTR pSrcFile,
466  D3DX11_IMAGE_LOAD_INFO *pLoadInfo,
467  ID3DX11ThreadPump* pPump,
468  ID3D11Resource** ppTexture,
469  HRESULT* pHResult);
470 
471 HRESULT WINAPI
473  ID3D11Device* pDevice,
474  LPCWSTR pSrcFile,
475  D3DX11_IMAGE_LOAD_INFO *pLoadInfo,
476  ID3DX11ThreadPump* pPump,
477  ID3D11Resource** ppTexture,
478  HRESULT* pHResult);
479 
480 #ifdef UNICODE
481 #define D3DX11CreateTextureFromFile D3DX11CreateTextureFromFileW
482 #else
483 #define D3DX11CreateTextureFromFile D3DX11CreateTextureFromFileA
484 #endif
485 
486 
487 // FromResource (resources in dll/exes)
488 
489 HRESULT WINAPI
491  ID3D11Device* pDevice,
492  HMODULE hSrcModule,
493  LPCSTR pSrcResource,
494  D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
495  ID3DX11ThreadPump* pPump,
496  ID3D11ShaderResourceView** ppShaderResourceView,
497  HRESULT* pHResult);
498 
499 HRESULT WINAPI
501  ID3D11Device* pDevice,
502  HMODULE hSrcModule,
503  LPCWSTR pSrcResource,
504  D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
505  ID3DX11ThreadPump* pPump,
506  ID3D11ShaderResourceView** ppShaderResourceView,
507  HRESULT* pHResult);
508 
509 #ifdef UNICODE
510 #define D3DX11CreateShaderResourceViewFromResource D3DX11CreateShaderResourceViewFromResourceW
511 #else
512 #define D3DX11CreateShaderResourceViewFromResource D3DX11CreateShaderResourceViewFromResourceA
513 #endif
514 
515 HRESULT WINAPI
517  ID3D11Device* pDevice,
518  HMODULE hSrcModule,
519  LPCSTR pSrcResource,
520  D3DX11_IMAGE_LOAD_INFO *pLoadInfo,
521  ID3DX11ThreadPump* pPump,
522  ID3D11Resource** ppTexture,
523  HRESULT* pHResult);
524 
525 HRESULT WINAPI
527  ID3D11Device* pDevice,
528  HMODULE hSrcModule,
529  LPCWSTR pSrcResource,
530  D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
531  ID3DX11ThreadPump* pPump,
532  ID3D11Resource** ppTexture,
533  HRESULT* pHResult);
534 
535 #ifdef UNICODE
536 #define D3DX11CreateTextureFromResource D3DX11CreateTextureFromResourceW
537 #else
538 #define D3DX11CreateTextureFromResource D3DX11CreateTextureFromResourceA
539 #endif
540 
541 
542 // FromFileInMemory
543 
544 HRESULT WINAPI
546  ID3D11Device* pDevice,
547  LPCVOID pSrcData,
548  SIZE_T SrcDataSize,
549  D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
550  ID3DX11ThreadPump* pPump,
551  ID3D11ShaderResourceView** ppShaderResourceView,
552  HRESULT* pHResult);
553 
554 HRESULT WINAPI
556  ID3D11Device* pDevice,
557  LPCVOID pSrcData,
558  SIZE_T SrcDataSize,
559  D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
560  ID3DX11ThreadPump* pPump,
561  ID3D11Resource** ppTexture,
562  HRESULT* pHResult);
563 
564 
566 // Misc Texture APIs /////////////////////////////////////////////////////////
568 
569 //----------------------------------------------------------------------------
570 // D3DX11_TEXTURE_LOAD_INFO:
571 // ------------------------
572 //
573 //----------------------------------------------------------------------------
574 
576 {
587 
588 #ifdef __cplusplus
590  {
591  pSrcBox = NULL;
592  pDstBox = NULL;
593  SrcFirstMip = 0;
594  DstFirstMip = 0;
596  SrcFirstElement = 0;
597  DstFirstElement = 0;
601  }
602 #endif
603 
605 
606 
607 //----------------------------------------------------------------------------
608 // D3DX11LoadTextureFromTexture:
609 // ----------------------------
610 // Load a texture from a texture.
611 //
612 // Parameters:
613 //
614 //----------------------------------------------------------------------------
615 
616 
617 HRESULT WINAPI
619  ID3D11DeviceContext *pContext,
620  ID3D11Resource *pSrcTexture,
621  D3DX11_TEXTURE_LOAD_INFO *pLoadInfo,
622  ID3D11Resource *pDstTexture);
623 
624 
625 //----------------------------------------------------------------------------
626 // D3DX11FilterTexture:
627 // ------------------
628 // Filters mipmaps levels of a texture.
629 //
630 // Parameters:
631 // pBaseTexture
632 // The texture object to be filtered
633 // SrcLevel
634 // The level whose image is used to generate the subsequent levels.
635 // MipFilter
636 // D3DX11_FILTER flags controlling how each miplevel is filtered.
637 // Or D3DX11_DEFAULT for D3DX11_FILTER_BOX,
638 //
639 //----------------------------------------------------------------------------
640 
641 HRESULT WINAPI
643  ID3D11DeviceContext *pContext,
644  ID3D11Resource *pTexture,
645  UINT SrcLevel,
646  UINT MipFilter);
647 
648 
649 //----------------------------------------------------------------------------
650 // D3DX11SaveTextureToFile:
651 // ----------------------
652 // Save a texture to a file.
653 //
654 // Parameters:
655 // pDestFile
656 // File name of the destination file
657 // DestFormat
658 // D3DX11_IMAGE_FILE_FORMAT specifying file format to use when saving.
659 // pSrcTexture
660 // Source texture, containing the image to be saved
661 //
662 //----------------------------------------------------------------------------
663 
664 HRESULT WINAPI
666  ID3D11DeviceContext *pContext,
667  ID3D11Resource *pSrcTexture,
668  D3DX11_IMAGE_FILE_FORMAT DestFormat,
669  LPCSTR pDestFile);
670 
671 HRESULT WINAPI
673  ID3D11DeviceContext *pContext,
674  ID3D11Resource *pSrcTexture,
675  D3DX11_IMAGE_FILE_FORMAT DestFormat,
676  LPCWSTR pDestFile);
677 
678 #ifdef UNICODE
679 #define D3DX11SaveTextureToFile D3DX11SaveTextureToFileW
680 #else
681 #define D3DX11SaveTextureToFile D3DX11SaveTextureToFileA
682 #endif
683 
684 
685 //----------------------------------------------------------------------------
686 // D3DX11SaveTextureToMemory:
687 // ----------------------
688 // Save a texture to a blob.
689 //
690 // Parameters:
691 // pSrcTexture
692 // Source texture, containing the image to be saved
693 // DestFormat
694 // D3DX11_IMAGE_FILE_FORMAT specifying file format to use when saving.
695 // ppDestBuf
696 // address of a d3dxbuffer pointer to return the image data
697 // Flags
698 // optional flags
699 //----------------------------------------------------------------------------
700 
701 HRESULT WINAPI
703  ID3D11DeviceContext *pContext,
704  ID3D11Resource* pSrcTexture,
705  D3DX11_IMAGE_FILE_FORMAT DestFormat,
706  ID3D10Blob** ppDestBuf,
707  UINT Flags);
708 
709 
710 //----------------------------------------------------------------------------
711 // D3DX11ComputeNormalMap:
712 // ---------------------
713 // Converts a height map into a normal map. The (x,y,z) components of each
714 // normal are mapped to the (r,g,b) channels of the output texture.
715 //
716 // Parameters
717 // pSrcTexture
718 // Pointer to the source heightmap texture
719 // Flags
720 // D3DX11_NORMALMAP flags
721 // Channel
722 // D3DX11_CHANNEL specifying source of height information
723 // Amplitude
724 // The constant value which the height information is multiplied by.
725 // pDestTexture
726 // Pointer to the destination texture
727 //---------------------------------------------------------------------------
728 
729 HRESULT WINAPI
731  ID3D11DeviceContext *pContext,
732  ID3D11Texture2D *pSrcTexture,
733  UINT Flags,
734  UINT Channel,
735  FLOAT Amplitude,
736  ID3D11Texture2D *pDestTexture);
737 
738 
739 //----------------------------------------------------------------------------
740 // D3DX11SHProjectCubeMap:
741 // ----------------------
742 // Projects a function represented in a cube map into spherical harmonics.
743 //
744 // Parameters:
745 // Order
746 // Order of the SH evaluation, generates Order^2 coefs, degree is Order-1
747 // pCubeMap
748 // CubeMap that is going to be projected into spherical harmonics
749 // pROut
750 // Output SH vector for Red.
751 // pGOut
752 // Output SH vector for Green
753 // pBOut
754 // Output SH vector for Blue
755 //
756 //---------------------------------------------------------------------------
757 
758 HRESULT WINAPI
760  ID3D11DeviceContext *pContext,
761  __in_range(2,6) UINT Order,
762  ID3D11Texture2D *pCubeMap,
763  __out_ecount(Order*Order) FLOAT *pROut,
764  __out_ecount_opt(Order*Order) FLOAT *pGOut,
765  __out_ecount_opt(Order*Order) FLOAT *pBOut);
766 
767 #ifdef __cplusplus
768 }
769 #endif //__cplusplus
770 
771 #endif //__D3DX11TEX_H__
772 
HRESULT WINAPI D3DX11CreateTextureFromMemory(ID3D11Device *pDevice, LPCVOID pSrcData, SIZE_T SrcDataSize, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
Definition: d3dx11tex.h:74
HRESULT WINAPI D3DX11CreateShaderResourceViewFromMemory(ID3D11Device *pDevice, LPCVOID pSrcData, SIZE_T SrcDataSize, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
interface ID3D11ShaderResourceView ID3D11ShaderResourceView
Definition: d3d11.h:119
Definition: d3dx11tex.h:158
UINT SrcFirstMip
Definition: d3dx11tex.h:579
Definition: d3dx11tex.h:82
HRESULT WINAPI D3DX11GetImageInfoFromMemory(LPCVOID pSrcData, SIZE_T SrcDataSize, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
HRESULT WINAPI D3DX11CreateShaderResourceViewFromResourceA(ID3D11Device *pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
UINT MiscFlags
Definition: d3dx11tex.h:217
Definition: d3dx11tex.h:68
Definition: glslang_tab.cpp:129
#define DXGI_FORMAT_FROM_FILE
Definition: d3dx10.h:24
Definition: d3dx11tex.h:143
D3DX11_NORMALMAP_FLAG
Definition: d3dx11tex.h:109
D3D11_BOX * pSrcBox
Definition: d3dx11tex.h:577
__out_ecount(4) FLOAT *WINAPI D3DXSHMultiply2(__out_ecount(4) FLOAT *pOut
Definition: d3dx11tex.h:160
interface ID3D11Resource ID3D11Resource
Definition: d3d11.h:77
struct _D3DX11_TEXTURE_LOAD_INFO D3DX11_TEXTURE_LOAD_INFO
UINT DstFirstMip
Definition: d3dx11tex.h:580
UINT ArraySize
Definition: d3dx11tex.h:215
interface ID3D11Device ID3D11Device
Definition: d3d11.h:329
struct D3DX11_IMAGE_LOAD_INFO D3DX11_IMAGE_LOAD_INFO
HRESULT WINAPI D3DX11SaveTextureToFileA(ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_IMAGE_FILE_FORMAT DestFormat, LPCSTR pDestFile)
Definition: d3dx11tex.h:67
typedef HRESULT(WINAPI *PFN_D3D12_SERIALIZE_ROOT_SIGNATURE)(_In_ const D3D12_ROOT_SIGNATURE_DESC *pRootSignature
D3DX11_IMAGE_FILE_FORMAT
Definition: d3dx11tex.h:156
Definition: d3dx11tex.h:140
UINT MipFilter
Definition: d3dx11tex.h:288
UINT DstFirstElement
Definition: d3dx11tex.h:583
UINT Width
Definition: d3dx11tex.h:277
D3D11_USAGE Usage
Definition: d3dx11tex.h:282
interface ID3D10Blob ID3D10Blob
Definition: d3dcommon.h:44
Definition: d3dx11tex.h:161
Definition: d3dx11tex.h:79
UINT Depth
Definition: d3dx11tex.h:279
HRESULT WINAPI D3DX11ComputeNormalMap(ID3D11DeviceContext *pContext, ID3D11Texture2D *pSrcTexture, UINT Flags, UINT Channel, FLOAT Amplitude, ID3D11Texture2D *pDestTexture)
D3D11_RESOURCE_DIMENSION ResourceDimension
Definition: d3dx11tex.h:219
Definition: d3dx11tex.h:575
interface ID3D11Texture2D ID3D11Texture2D
Definition: d3d11.h:98
Definition: d3dx11tex.h:73
Definition: d3dx11tex.h:78
Definition: d3dx11tex.h:81
#define NULL
Pointer to 0.
Definition: gctypes.h:65
DXGI_FORMAT
Definition: dxgiformat.h:10
Definition: d3dx11tex.h:69
UINT NumElements
Definition: d3dx11tex.h:584
D3DX11_CHANNEL_FLAG
Definition: d3dx11tex.h:138
UINT MipLevels
Definition: d3dx11tex.h:281
UINT NumMips
Definition: d3dx11tex.h:581
Definition: d3dx11tex.h:163
HRESULT WINAPI D3DX11SHProjectCubeMap(ID3D11DeviceContext *pContext, __in_range(2, 6) UINT Order, ID3D11Texture2D *pCubeMap, __out_ecount(Order *Order) FLOAT *pROut, __out_ecount_opt(Order *Order) FLOAT *pGOut, __out_ecount_opt(Order *Order) FLOAT *pBOut)
DXGI_FORMAT Format
Definition: d3dx11tex.h:218
D3D11_RESOURCE_DIMENSION
Definition: d3d11.h:1154
Definition: d3d11.h:1320
Definition: d3dx11tex.h:165
D3DX11_SAVE_TEXTURE_FLAG
Definition: d3dx11tex.h:177
Definition: d3dx11tex.h:111
Definition: d3dx11tex.h:275
HRESULT WINAPI D3DX11CreateTextureFromFileA(ID3D11Device *pDevice, LPCSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
HRESULT WINAPI D3DX11GetImageInfoFromResourceA(HMODULE hSrcModule, LPCSTR pSrcResource, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
HRESULT WINAPI D3DX11CreateShaderResourceViewFromFileW(ID3D11Device *pDevice, LPCWSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
D3D11_USAGE
Definition: d3d11.h:1204
HRESULT WINAPI D3DX11CreateShaderResourceViewFromResourceW(ID3D11Device *pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
UINT FirstMipLevel
Definition: d3dx11tex.h:280
UINT Height
Definition: d3dx11tex.h:278
Definition: d3dx11tex.h:179
Definition: d3dx11tex.h:144
Definition: d3dx11tex.h:71
UINT MiscFlags
Definition: d3dx11tex.h:285
UINT BindFlags
Definition: d3dx11tex.h:283
Definition: d3dx11tex.h:142
Definition: d3dx11tex.h:76
UINT Width
Definition: d3dx11tex.h:212
UINT Filter
Definition: d3dx11tex.h:287
D3DX11_IMAGE_FILE_FORMAT ImageFileFormat
Definition: d3dx11tex.h:220
HRESULT WINAPI D3DX11GetImageInfoFromFileW(LPCWSTR pSrcFile, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
HRESULT WINAPI D3DX11FilterTexture(ID3D11DeviceContext *pContext, ID3D11Resource *pTexture, UINT SrcLevel, UINT MipFilter)
Definition: d3dx11tex.h:112
D3DX11_IMAGE_INFO * pSrcInfo
Definition: d3dx11tex.h:289
Definition: d3dx11tex.h:210
Definition: d3dx11tex.h:159
Definition: d3dx11tex.h:141
struct D3DX11_IMAGE_INFO D3DX11_IMAGE_INFO
DXGI_FORMAT Format
Definition: d3dx11tex.h:286
Definition: Filter.h:16
UINT Filter
Definition: d3dx11tex.h:585
UINT Height
Definition: d3dx11tex.h:213
interface ID3D11DeviceContext ID3D11DeviceContext
Definition: d3d11.h:252
HRESULT WINAPI D3DX11SaveTextureToMemory(ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_IMAGE_FILE_FORMAT DestFormat, ID3D10Blob **ppDestBuf, UINT Flags)
UINT MipFilter
Definition: d3dx11tex.h:586
Definition: d3dx11tex.h:114
Definition: glslang_tab.cpp:136
Definition: d3dx11tex.h:162
HRESULT WINAPI D3DX11GetImageInfoFromResourceW(HMODULE hSrcModule, LPCWSTR pSrcResource, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
HRESULT WINAPI D3DX11CreateTextureFromFileW(ID3D11Device *pDevice, LPCWSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
Definition: d3dx11tex.h:164
#define D3DX11_DEFAULT
Definition: d3dx11.h:26
Definition: d3dx11tex.h:70
Definition: d3dx11tex.h:115
Definition: d3dx11tex.h:75
UINT Depth
Definition: d3dx11tex.h:214
HRESULT WINAPI D3DX11SaveTextureToFileW(ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_IMAGE_FILE_FORMAT DestFormat, LPCWSTR pDestFile)
UINT CpuAccessFlags
Definition: d3dx11tex.h:284
HRESULT WINAPI D3DX11GetImageInfoFromFileA(LPCSTR pSrcFile, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
HRESULT WINAPI D3DX11CreateTextureFromResourceW(ID3D11Device *pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
Definition: d3dx11tex.h:83
D3D11_BOX * pDstBox
Definition: d3dx11tex.h:578
HRESULT WINAPI D3DX11CreateShaderResourceViewFromFileA(ID3D11Device *pDevice, LPCSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
UINT SrcFirstElement
Definition: d3dx11tex.h:582
D3DX11_FILTER_FLAG
Definition: d3dx11tex.h:65
HRESULT WINAPI D3DX11CreateTextureFromResourceA(ID3D11Device *pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
Definition: d3dx11tex.h:113
UINT MipLevels
Definition: d3dx11tex.h:216
HRESULT WINAPI D3DX11LoadTextureFromTexture(ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_TEXTURE_LOAD_INFO *pLoadInfo, ID3D11Resource *pDstTexture)