RetroArch
Classes | Macros | Typedefs | Enumerations | Functions
d3dx11tex.h File Reference
#include "d3dx11.h"
Include dependency graph for d3dx11tex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  D3DX11_IMAGE_INFO
 
struct  D3DX11_IMAGE_LOAD_INFO
 
struct  _D3DX11_TEXTURE_LOAD_INFO
 

Macros

#define D3DX11GetImageInfoFromFile   D3DX11GetImageInfoFromFileA
 
#define D3DX11GetImageInfoFromResource   D3DX11GetImageInfoFromResourceA
 
#define D3DX11CreateShaderResourceViewFromFile   D3DX11CreateShaderResourceViewFromFileA
 
#define D3DX11CreateTextureFromFile   D3DX11CreateTextureFromFileA
 
#define D3DX11CreateShaderResourceViewFromResource   D3DX11CreateShaderResourceViewFromResourceA
 
#define D3DX11CreateTextureFromResource   D3DX11CreateTextureFromResourceA
 
#define D3DX11SaveTextureToFile   D3DX11SaveTextureToFileA
 

Typedefs

typedef enum D3DX11_FILTER_FLAG D3DX11_FILTER_FLAG
 
typedef enum D3DX11_NORMALMAP_FLAG D3DX11_NORMALMAP_FLAG
 
typedef enum D3DX11_CHANNEL_FLAG D3DX11_CHANNEL_FLAG
 
typedef enum D3DX11_IMAGE_FILE_FORMAT D3DX11_IMAGE_FILE_FORMAT
 
typedef enum D3DX11_SAVE_TEXTURE_FLAG D3DX11_SAVE_TEXTURE_FLAG
 
typedef struct D3DX11_IMAGE_INFO D3DX11_IMAGE_INFO
 
typedef struct D3DX11_IMAGE_LOAD_INFO D3DX11_IMAGE_LOAD_INFO
 
typedef struct _D3DX11_TEXTURE_LOAD_INFO D3DX11_TEXTURE_LOAD_INFO
 

Enumerations

enum  D3DX11_FILTER_FLAG {
  D3DX11_FILTER_NONE = (1 << 0), D3DX11_FILTER_POINT = (2 << 0), D3DX11_FILTER_LINEAR = (3 << 0), D3DX11_FILTER_TRIANGLE = (4 << 0),
  D3DX11_FILTER_BOX = (5 << 0), D3DX11_FILTER_MIRROR_U = (1 << 16), D3DX11_FILTER_MIRROR_V = (2 << 16), D3DX11_FILTER_MIRROR_W = (4 << 16),
  D3DX11_FILTER_MIRROR = (7 << 16), D3DX11_FILTER_DITHER = (1 << 19), D3DX11_FILTER_DITHER_DIFFUSION = (2 << 19), D3DX11_FILTER_SRGB_IN = (1 << 21),
  D3DX11_FILTER_SRGB_OUT = (2 << 21), D3DX11_FILTER_SRGB = (3 << 21)
}
 
enum  D3DX11_NORMALMAP_FLAG {
  D3DX11_NORMALMAP_MIRROR_U = (1 << 16), D3DX11_NORMALMAP_MIRROR_V = (2 << 16), D3DX11_NORMALMAP_MIRROR = (3 << 16), D3DX11_NORMALMAP_INVERTSIGN = (8 << 16),
  D3DX11_NORMALMAP_COMPUTE_OCCLUSION = (16 << 16)
}
 
enum  D3DX11_CHANNEL_FLAG {
  D3DX11_CHANNEL_RED = (1 << 0), D3DX11_CHANNEL_BLUE = (1 << 1), D3DX11_CHANNEL_GREEN = (1 << 2), D3DX11_CHANNEL_ALPHA = (1 << 3),
  D3DX11_CHANNEL_LUMINANCE = (1 << 4)
}
 
enum  D3DX11_IMAGE_FILE_FORMAT {
  D3DX11_IFF_BMP = 0, D3DX11_IFF_JPG = 1, D3DX11_IFF_PNG = 3, D3DX11_IFF_DDS = 4,
  D3DX11_IFF_TIFF = 10, D3DX11_IFF_GIF = 11, D3DX11_IFF_WMP = 12, D3DX11_IFF_FORCE_DWORD = 0x7fffffff
}
 
enum  D3DX11_SAVE_TEXTURE_FLAG { D3DX11_STF_USEINPUTBLOB = 0x0001 }
 

Functions

HRESULT WINAPI D3DX11GetImageInfoFromFileA (LPCSTR pSrcFile, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11GetImageInfoFromFileW (LPCWSTR pSrcFile, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11GetImageInfoFromResourceA (HMODULE hSrcModule, LPCSTR pSrcResource, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11GetImageInfoFromResourceW (HMODULE hSrcModule, LPCWSTR pSrcResource, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11GetImageInfoFromMemory (LPCVOID pSrcData, SIZE_T SrcDataSize, ID3DX11ThreadPump *pPump, D3DX11_IMAGE_INFO *pSrcInfo, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateShaderResourceViewFromFileA (ID3D11Device *pDevice, LPCSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateShaderResourceViewFromFileW (ID3D11Device *pDevice, LPCWSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateTextureFromFileA (ID3D11Device *pDevice, LPCSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateTextureFromFileW (ID3D11Device *pDevice, LPCWSTR pSrcFile, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateShaderResourceViewFromResourceA (ID3D11Device *pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateShaderResourceViewFromResourceW (ID3D11Device *pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateTextureFromResourceA (ID3D11Device *pDevice, HMODULE hSrcModule, LPCSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateTextureFromResourceW (ID3D11Device *pDevice, HMODULE hSrcModule, LPCWSTR pSrcResource, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateShaderResourceViewFromMemory (ID3D11Device *pDevice, LPCVOID pSrcData, SIZE_T SrcDataSize, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11ShaderResourceView **ppShaderResourceView, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11CreateTextureFromMemory (ID3D11Device *pDevice, LPCVOID pSrcData, SIZE_T SrcDataSize, D3DX11_IMAGE_LOAD_INFO *pLoadInfo, ID3DX11ThreadPump *pPump, ID3D11Resource **ppTexture, HRESULT *pHResult)
 
HRESULT WINAPI D3DX11LoadTextureFromTexture (ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_TEXTURE_LOAD_INFO *pLoadInfo, ID3D11Resource *pDstTexture)
 
HRESULT WINAPI D3DX11FilterTexture (ID3D11DeviceContext *pContext, ID3D11Resource *pTexture, UINT SrcLevel, UINT MipFilter)
 
HRESULT WINAPI D3DX11SaveTextureToFileA (ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_IMAGE_FILE_FORMAT DestFormat, LPCSTR pDestFile)
 
HRESULT WINAPI D3DX11SaveTextureToFileW (ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_IMAGE_FILE_FORMAT DestFormat, LPCWSTR pDestFile)
 
HRESULT WINAPI D3DX11SaveTextureToMemory (ID3D11DeviceContext *pContext, ID3D11Resource *pSrcTexture, D3DX11_IMAGE_FILE_FORMAT DestFormat, ID3D10Blob **ppDestBuf, UINT Flags)
 
HRESULT WINAPI D3DX11ComputeNormalMap (ID3D11DeviceContext *pContext, ID3D11Texture2D *pSrcTexture, UINT Flags, UINT Channel, FLOAT Amplitude, ID3D11Texture2D *pDestTexture)
 
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)
 

Macro Definition Documentation

◆ D3DX11CreateShaderResourceViewFromFile

#define D3DX11CreateShaderResourceViewFromFile   D3DX11CreateShaderResourceViewFromFileA

◆ D3DX11CreateShaderResourceViewFromResource

#define D3DX11CreateShaderResourceViewFromResource   D3DX11CreateShaderResourceViewFromResourceA

◆ D3DX11CreateTextureFromFile

#define D3DX11CreateTextureFromFile   D3DX11CreateTextureFromFileA

◆ D3DX11CreateTextureFromResource

#define D3DX11CreateTextureFromResource   D3DX11CreateTextureFromResourceA

◆ D3DX11GetImageInfoFromFile

#define D3DX11GetImageInfoFromFile   D3DX11GetImageInfoFromFileA

◆ D3DX11GetImageInfoFromResource

#define D3DX11GetImageInfoFromResource   D3DX11GetImageInfoFromResourceA

◆ D3DX11SaveTextureToFile

#define D3DX11SaveTextureToFile   D3DX11SaveTextureToFileA

Typedef Documentation

◆ D3DX11_CHANNEL_FLAG

◆ D3DX11_FILTER_FLAG

◆ D3DX11_IMAGE_FILE_FORMAT

◆ D3DX11_IMAGE_INFO

◆ D3DX11_IMAGE_LOAD_INFO

◆ D3DX11_NORMALMAP_FLAG

◆ D3DX11_SAVE_TEXTURE_FLAG

◆ D3DX11_TEXTURE_LOAD_INFO

Enumeration Type Documentation

◆ D3DX11_CHANNEL_FLAG

Enumerator
D3DX11_CHANNEL_RED 
D3DX11_CHANNEL_BLUE 
D3DX11_CHANNEL_GREEN 
D3DX11_CHANNEL_ALPHA 
D3DX11_CHANNEL_LUMINANCE 

◆ D3DX11_FILTER_FLAG

Enumerator
D3DX11_FILTER_NONE 
D3DX11_FILTER_POINT 
D3DX11_FILTER_LINEAR 
D3DX11_FILTER_TRIANGLE 
D3DX11_FILTER_BOX 
D3DX11_FILTER_MIRROR_U 
D3DX11_FILTER_MIRROR_V 
D3DX11_FILTER_MIRROR_W 
D3DX11_FILTER_MIRROR 
D3DX11_FILTER_DITHER 
D3DX11_FILTER_DITHER_DIFFUSION 
D3DX11_FILTER_SRGB_IN 
D3DX11_FILTER_SRGB_OUT 
D3DX11_FILTER_SRGB 

◆ D3DX11_IMAGE_FILE_FORMAT

Enumerator
D3DX11_IFF_BMP 
D3DX11_IFF_JPG 
D3DX11_IFF_PNG 
D3DX11_IFF_DDS 
D3DX11_IFF_TIFF 
D3DX11_IFF_GIF 
D3DX11_IFF_WMP 
D3DX11_IFF_FORCE_DWORD 

◆ D3DX11_NORMALMAP_FLAG

Enumerator
D3DX11_NORMALMAP_MIRROR_U 
D3DX11_NORMALMAP_MIRROR_V 
D3DX11_NORMALMAP_MIRROR 
D3DX11_NORMALMAP_INVERTSIGN 
D3DX11_NORMALMAP_COMPUTE_OCCLUSION 

◆ D3DX11_SAVE_TEXTURE_FLAG

Enumerator
D3DX11_STF_USEINPUTBLOB 

Function Documentation

◆ D3DX11ComputeNormalMap()

HRESULT WINAPI D3DX11ComputeNormalMap ( ID3D11DeviceContext pContext,
ID3D11Texture2D pSrcTexture,
UINT  Flags,
UINT  Channel,
FLOAT  Amplitude,
ID3D11Texture2D pDestTexture 
)

◆ D3DX11CreateShaderResourceViewFromFileA()

HRESULT WINAPI D3DX11CreateShaderResourceViewFromFileA ( ID3D11Device pDevice,
LPCSTR  pSrcFile,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11ShaderResourceView **  ppShaderResourceView,
HRESULT pHResult 
)

◆ D3DX11CreateShaderResourceViewFromFileW()

HRESULT WINAPI D3DX11CreateShaderResourceViewFromFileW ( ID3D11Device pDevice,
LPCWSTR  pSrcFile,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11ShaderResourceView **  ppShaderResourceView,
HRESULT pHResult 
)

◆ D3DX11CreateShaderResourceViewFromMemory()

HRESULT WINAPI D3DX11CreateShaderResourceViewFromMemory ( ID3D11Device pDevice,
LPCVOID  pSrcData,
SIZE_T  SrcDataSize,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11ShaderResourceView **  ppShaderResourceView,
HRESULT pHResult 
)

◆ D3DX11CreateShaderResourceViewFromResourceA()

HRESULT WINAPI D3DX11CreateShaderResourceViewFromResourceA ( ID3D11Device pDevice,
HMODULE  hSrcModule,
LPCSTR  pSrcResource,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11ShaderResourceView **  ppShaderResourceView,
HRESULT pHResult 
)

◆ D3DX11CreateShaderResourceViewFromResourceW()

HRESULT WINAPI D3DX11CreateShaderResourceViewFromResourceW ( ID3D11Device pDevice,
HMODULE  hSrcModule,
LPCWSTR  pSrcResource,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11ShaderResourceView **  ppShaderResourceView,
HRESULT pHResult 
)

◆ D3DX11CreateTextureFromFileA()

HRESULT WINAPI D3DX11CreateTextureFromFileA ( ID3D11Device pDevice,
LPCSTR  pSrcFile,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11Resource **  ppTexture,
HRESULT pHResult 
)

◆ D3DX11CreateTextureFromFileW()

HRESULT WINAPI D3DX11CreateTextureFromFileW ( ID3D11Device pDevice,
LPCWSTR  pSrcFile,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11Resource **  ppTexture,
HRESULT pHResult 
)

◆ D3DX11CreateTextureFromMemory()

HRESULT WINAPI D3DX11CreateTextureFromMemory ( ID3D11Device pDevice,
LPCVOID  pSrcData,
SIZE_T  SrcDataSize,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11Resource **  ppTexture,
HRESULT pHResult 
)

◆ D3DX11CreateTextureFromResourceA()

HRESULT WINAPI D3DX11CreateTextureFromResourceA ( ID3D11Device pDevice,
HMODULE  hSrcModule,
LPCSTR  pSrcResource,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11Resource **  ppTexture,
HRESULT pHResult 
)

◆ D3DX11CreateTextureFromResourceW()

HRESULT WINAPI D3DX11CreateTextureFromResourceW ( ID3D11Device pDevice,
HMODULE  hSrcModule,
LPCWSTR  pSrcResource,
D3DX11_IMAGE_LOAD_INFO pLoadInfo,
ID3DX11ThreadPump *  pPump,
ID3D11Resource **  ppTexture,
HRESULT pHResult 
)

◆ D3DX11FilterTexture()

HRESULT WINAPI D3DX11FilterTexture ( ID3D11DeviceContext pContext,
ID3D11Resource pTexture,
UINT  SrcLevel,
UINT  MipFilter 
)

◆ D3DX11GetImageInfoFromFileA()

HRESULT WINAPI D3DX11GetImageInfoFromFileA ( LPCSTR  pSrcFile,
ID3DX11ThreadPump *  pPump,
D3DX11_IMAGE_INFO pSrcInfo,
HRESULT pHResult 
)

◆ D3DX11GetImageInfoFromFileW()

HRESULT WINAPI D3DX11GetImageInfoFromFileW ( LPCWSTR  pSrcFile,
ID3DX11ThreadPump *  pPump,
D3DX11_IMAGE_INFO pSrcInfo,
HRESULT pHResult 
)

◆ D3DX11GetImageInfoFromMemory()

HRESULT WINAPI D3DX11GetImageInfoFromMemory ( LPCVOID  pSrcData,
SIZE_T  SrcDataSize,
ID3DX11ThreadPump *  pPump,
D3DX11_IMAGE_INFO pSrcInfo,
HRESULT pHResult 
)

◆ D3DX11GetImageInfoFromResourceA()

HRESULT WINAPI D3DX11GetImageInfoFromResourceA ( HMODULE  hSrcModule,
LPCSTR  pSrcResource,
ID3DX11ThreadPump *  pPump,
D3DX11_IMAGE_INFO pSrcInfo,
HRESULT pHResult 
)

◆ D3DX11GetImageInfoFromResourceW()

HRESULT WINAPI D3DX11GetImageInfoFromResourceW ( HMODULE  hSrcModule,
LPCWSTR  pSrcResource,
ID3DX11ThreadPump *  pPump,
D3DX11_IMAGE_INFO pSrcInfo,
HRESULT pHResult 
)

◆ D3DX11LoadTextureFromTexture()

HRESULT WINAPI D3DX11LoadTextureFromTexture ( ID3D11DeviceContext pContext,
ID3D11Resource pSrcTexture,
D3DX11_TEXTURE_LOAD_INFO pLoadInfo,
ID3D11Resource pDstTexture 
)

◆ D3DX11SaveTextureToFileA()

HRESULT WINAPI D3DX11SaveTextureToFileA ( ID3D11DeviceContext pContext,
ID3D11Resource pSrcTexture,
D3DX11_IMAGE_FILE_FORMAT  DestFormat,
LPCSTR  pDestFile 
)

◆ D3DX11SaveTextureToFileW()

HRESULT WINAPI D3DX11SaveTextureToFileW ( ID3D11DeviceContext pContext,
ID3D11Resource pSrcTexture,
D3DX11_IMAGE_FILE_FORMAT  DestFormat,
LPCWSTR  pDestFile 
)

◆ D3DX11SaveTextureToMemory()

HRESULT WINAPI D3DX11SaveTextureToMemory ( ID3D11DeviceContext pContext,
ID3D11Resource pSrcTexture,
D3DX11_IMAGE_FILE_FORMAT  DestFormat,
ID3D10Blob **  ppDestBuf,
UINT  Flags 
)

◆ D3DX11SHProjectCubeMap()

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 
)