1 USING: alien.c-types alien.syntax classes.struct
2 windows.directx windows.directx.d3d10misc windows.directx.d3d11
3 windows.directx.d3dx11core windows.directx.dxgiformat windows.types ;
4 IN: windows.directx.d3dx11tex
8 CONSTANT: D3DX11_FILTER_NONE 0x00000001
9 CONSTANT: D3DX11_FILTER_POINT 0x00000002
10 CONSTANT: D3DX11_FILTER_LINEAR 0x00000003
11 CONSTANT: D3DX11_FILTER_TRIANGLE 0x00000004
12 CONSTANT: D3DX11_FILTER_BOX 0x00000005
14 CONSTANT: D3DX11_FILTER_MIRROR_U 0x00010000
15 CONSTANT: D3DX11_FILTER_MIRROR_V 0x00020000
16 CONSTANT: D3DX11_FILTER_MIRROR_W 0x00040000
17 CONSTANT: D3DX11_FILTER_MIRROR 0x00070000
19 CONSTANT: D3DX11_FILTER_DITHER 0x00080000
20 CONSTANT: D3DX11_FILTER_DITHER_DIFFUSION 0x00100000
22 CONSTANT: D3DX11_FILTER_SRGB_IN 0x00200000
23 CONSTANT: D3DX11_FILTER_SRGB_OUT 0x00400000
24 CONSTANT: D3DX11_FILTER_SRGB 0x00600000
25 TYPEDEF: int D3DX11_FILTER_FLAG
27 CONSTANT: D3DX11_NORMALMAP_MIRROR_U 0x00010000
28 CONSTANT: D3DX11_NORMALMAP_MIRROR_V 0x00020000
29 CONSTANT: D3DX11_NORMALMAP_MIRROR 0x00030000
30 CONSTANT: D3DX11_NORMALMAP_INVERTSIGN 0x00080000
31 CONSTANT: D3DX11_NORMALMAP_COMPUTE_OCCLUSION 0x00100000
32 TYPEDEF: int D3DX11_NORMALMAP_FLAG
34 CONSTANT: D3DX11_CHANNEL_RED 1
35 CONSTANT: D3DX11_CHANNEL_BLUE 2
36 CONSTANT: D3DX11_CHANNEL_GREEN 4
37 CONSTANT: D3DX11_CHANNEL_ALPHA 8
38 CONSTANT: D3DX11_CHANNEL_LUMINANCE 16
39 TYPEDEF: int D3DX11_CHANNEL_FLAG
41 CONSTANT: D3DX11_IFF_BMP 0
42 CONSTANT: D3DX11_IFF_JPG 1
43 CONSTANT: D3DX11_IFF_PNG 3
44 CONSTANT: D3DX11_IFF_DDS 4
45 CONSTANT: D3DX11_IFF_TIFF 10
46 CONSTANT: D3DX11_IFF_GIF 11
47 CONSTANT: D3DX11_IFF_WMP 12
48 CONSTANT: D3DX11_IFF_FORCE_DWORD 0x7fffffff
49 TYPEDEF: int D3DX11_IMAGE_FILE_FORMAT
51 CONSTANT: D3DX11_STF_USEINPUTBLOB 1
52 TYPEDEF: int D3DX11_SAVE_TEXTURE_FLAG
54 STRUCT: D3DX11_IMAGE_INFO
61 { Format DXGI_FORMAT }
62 { ResourceDimension D3D11_RESOURCE_DIMENSION }
63 { ImageFileFormat D3DX11_IMAGE_FILE_FORMAT } ;
65 STRUCT: D3DX11_IMAGE_LOAD_INFO
69 { FirstMipLevel UINT }
73 { CpuAccessFlags UINT }
75 { Format DXGI_FORMAT }
78 { pSrcInfo D3DX11_IMAGE_INFO* } ;
81 D3DX11GetImageInfoFromFileA (
83 ID3DX11ThreadPump* pPump,
84 D3DX11_IMAGE_INFO* pSrcInfo,
88 D3DX11GetImageInfoFromFileW (
90 ID3DX11ThreadPump* pPump,
91 D3DX11_IMAGE_INFO* pSrcInfo,
94 ALIAS: D3DX11GetImageInfoFromFile D3DX11GetImageInfoFromFileW
97 D3DX11GetImageInfoFromResourceA (
100 ID3DX11ThreadPump* pPump,
101 D3DX11_IMAGE_INFO* pSrcInfo,
102 HRESULT* pHResult ) ;
105 D3DX11GetImageInfoFromResourceW (
107 LPCWSTR pSrcResource,
108 ID3DX11ThreadPump* pPump,
109 D3DX11_IMAGE_INFO* pSrcInfo,
110 HRESULT* pHResult ) ;
112 ALIAS: D3DX11GetImageInfoFromResource D3DX11GetImageInfoFromResourceW
115 D3DX11GetImageInfoFromMemory (
118 ID3DX11ThreadPump* pPump,
119 D3DX11_IMAGE_INFO* pSrcInfo,
120 HRESULT* pHResult ) ;
123 D3DX11CreateShaderResourceViewFromFileA (
124 ID3D11Device* pDevice,
126 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
127 ID3DX11ThreadPump* pPump,
128 ID3D11ShaderResourceView** ppShaderResourceView,
129 HRESULT* pHResult ) ;
132 D3DX11CreateShaderResourceViewFromFileW (
133 ID3D11Device* pDevice,
135 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
136 ID3DX11ThreadPump* pPump,
137 ID3D11ShaderResourceView** ppShaderResourceView,
138 HRESULT* pHResult ) ;
140 ALIAS: D3DX11CreateShaderResourceViewFromFile D3DX11CreateShaderResourceViewFromFileW
143 D3DX11CreateTextureFromFileA (
144 ID3D11Device* pDevice,
146 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
147 ID3DX11ThreadPump* pPump,
148 ID3D11Resource** ppTexture,
149 HRESULT* pHResult ) ;
152 D3DX11CreateTextureFromFileW (
153 ID3D11Device* pDevice,
155 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
156 ID3DX11ThreadPump* pPump,
157 ID3D11Resource** ppTexture,
158 HRESULT* pHResult ) ;
160 ALIAS: D3DX11CreateTextureFromFile D3DX11CreateTextureFromFileW
163 D3DX11CreateShaderResourceViewFromResourceA (
164 ID3D11Device* pDevice,
167 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
168 ID3DX11ThreadPump* pPump,
169 ID3D11ShaderResourceView** ppShaderResourceView,
170 HRESULT* pHResult ) ;
173 D3DX11CreateShaderResourceViewFromResourceW (
174 ID3D11Device* pDevice,
176 LPCWSTR pSrcResource,
177 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
178 ID3DX11ThreadPump* pPump,
179 ID3D11ShaderResourceView** ppShaderResourceView,
180 HRESULT* pHResult ) ;
182 ALIAS: D3DX11CreateShaderResourceViewFromResource D3DX11CreateShaderResourceViewFromResourceW
185 D3DX11CreateTextureFromResourceA (
186 ID3D11Device* pDevice,
189 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
190 ID3DX11ThreadPump* pPump,
191 ID3D11Resource** ppTexture,
192 HRESULT* pHResult ) ;
195 D3DX11CreateTextureFromResourceW (
196 ID3D11Device* pDevice,
198 LPCWSTR pSrcResource,
199 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
200 ID3DX11ThreadPump* pPump,
201 ID3D11Resource** ppTexture,
202 HRESULT* pHResult ) ;
204 ALIAS: D3DX11CreateTextureFromResource D3DX11CreateTextureFromResourceW
207 D3DX11CreateShaderResourceViewFromMemory (
208 ID3D11Device* pDevice,
211 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
212 ID3DX11ThreadPump* pPump,
213 ID3D11ShaderResourceView** ppShaderResourceView,
214 HRESULT* pHResult ) ;
217 D3DX11CreateTextureFromMemory (
218 ID3D11Device* pDevice,
221 D3DX11_IMAGE_LOAD_INFO* pLoadInfo,
222 ID3DX11ThreadPump* pPump,
223 ID3D11Resource** ppTexture,
224 HRESULT* pHResult ) ;
226 STRUCT: D3DX11_TEXTURE_LOAD_INFO
227 { pSrcBox D3D11_BOX* }
228 { pDstBox D3D11_BOX* }
232 { SrcFirstElement UINT }
233 { DstFirstElement UINT }
239 D3DX11LoadTextureFromTexture (
240 ID3D11DeviceContext* pContext,
241 ID3D11Resource* pSrcTexture,
242 D3DX11_TEXTURE_LOAD_INFO* pLoadInfo,
243 ID3D11Resource* pDstTexture ) ;
246 D3DX11FilterTexture (
247 ID3D11DeviceContext* pContext,
248 ID3D11Resource* pTexture,
253 D3DX11SaveTextureToFileA (
254 ID3D11DeviceContext* pContext,
255 ID3D11Resource* pSrcTexture,
256 D3DX11_IMAGE_FILE_FORMAT DestFormat,
260 D3DX11SaveTextureToFileW (
261 ID3D11DeviceContext* pContext,
262 ID3D11Resource* pSrcTexture,
263 D3DX11_IMAGE_FILE_FORMAT DestFormat,
264 LPCWSTR pDestFile ) ;
266 ALIAS: D3DX11SaveTextureToFile D3DX11SaveTextureToFileW
269 D3DX11SaveTextureToMemory (
270 ID3D11DeviceContext* pContext,
271 ID3D11Resource* pSrcTexture,
272 D3DX11_IMAGE_FILE_FORMAT DestFormat,
273 ID3D10Blob** ppDestBuf,
277 D3DX11ComputeNormalMap (
278 ID3D11DeviceContext* pContext,
279 ID3D11Texture2D* pSrcTexture,
283 ID3D11Texture2D* pDestTexture ) ;
286 D3DX11SHProjectCubeMap (
287 ID3D11DeviceContext* pContext,
289 ID3D11Texture2D* pCubeMap,