ReactOS 0.4.17-dev-934-g091855f
d3dx11tex.h
Go to the documentation of this file.
1/*
2 * Copyright 2016 Andrey Gusev
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17 */
18
19#include "d3dx11.h"
20
21#ifndef __D3DX11TEX_H__
22#define __D3DX11TEX_H__
23
25{
26 D3DX11_FILTER_NONE = 0x00000001,
27 D3DX11_FILTER_POINT = 0x00000002,
30 D3DX11_FILTER_BOX = 0x00000005,
31
36
39
42 D3DX11_FILTER_SRGB = 0x00600000,
44
46{
54 D3DX11_IFF_FORCE_DWORD = 0x7fffffff
56
57typedef struct D3DX11_IMAGE_INFO
58{
66 D3D11_RESOURCE_DIMENSION ResourceDimension;
69
71{
77 D3D11_USAGE Usage;
85
86#ifdef __cplusplus
88 {
94 Usage = (D3D11_USAGE)D3DX11_DEFAULT;
101 pSrcInfo = NULL;
102 }
103#endif
105
107{
118
119#ifdef __cplusplus
121 {
122 pSrcBox = NULL;
123 pDstBox = NULL;
124 SrcFirstMip = 0;
125 DstFirstMip = 0;
127 SrcFirstElement = 0;
128 DstFirstElement = 0;
132 }
133#endif
135
136#ifdef __cplusplus
137extern "C" {
138#endif
139
141 SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump,
142 ID3D11ShaderResourceView **view, HRESULT *hresult);
144 D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture,
145 HRESULT *hresult);
147 D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture,
148 HRESULT *hresult);
149HRESULT WINAPI D3DX11CreateTextureFromMemory(ID3D11Device *device, const void *src_data, SIZE_T src_data_size,
150 D3DX11_IMAGE_LOAD_INFO *loadinfo, ID3DX11ThreadPump *pump, ID3D11Resource **texture, HRESULT *hresult);
151HRESULT WINAPI D3DX11FilterTexture(ID3D11DeviceContext *context, ID3D11Resource *texture, UINT src_level, UINT filter);
153 HRESULT *hresult);
155 HRESULT *hresult);
156HRESULT WINAPI D3DX11GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX11ThreadPump *pump,
157 D3DX11_IMAGE_INFO *img_info, HRESULT *hresult);
158HRESULT WINAPI D3DX11LoadTextureFromTexture(ID3D11DeviceContext *context, ID3D11Resource *src_texture,
159 D3DX11_TEXTURE_LOAD_INFO *info, ID3D11Resource *dst_texture);
160HRESULT WINAPI D3DX11SaveTextureToFileA(ID3D11DeviceContext *context, ID3D11Resource *texture,
162HRESULT WINAPI D3DX11SaveTextureToFileW(ID3D11DeviceContext *context, ID3D11Resource *texture,
164HRESULT WINAPI D3DX11SaveTextureToMemory(ID3D11DeviceContext *context, ID3D11Resource *texture,
166
167#ifdef __cplusplus
168}
169#endif
170
171#endif
#define DXGI_FORMAT_FROM_FILE
Definition: d3dx10.h:27
#define D3DX11_DEFAULT
Definition: d3dx11.h:25
D3DX11_IMAGE_FILE_FORMAT
Definition: d3dx11tex.h:46
@ D3DX11_IFF_TIFF
Definition: d3dx11tex.h:51
@ D3DX11_IFF_FORCE_DWORD
Definition: d3dx11tex.h:54
@ D3DX11_IFF_PNG
Definition: d3dx11tex.h:49
@ D3DX11_IFF_BMP
Definition: d3dx11tex.h:47
@ D3DX11_IFF_DDS
Definition: d3dx11tex.h:50
@ D3DX11_IFF_GIF
Definition: d3dx11tex.h:52
@ D3DX11_IFF_JPG
Definition: d3dx11tex.h:48
@ D3DX11_IFF_WMP
Definition: d3dx11tex.h:53
HRESULT WINAPI D3DX11CreateTextureFromFileA(ID3D11Device *device, const char *filename, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture, HRESULT *hresult)
Definition: texture.c:36
D3DX11_FILTER_FLAG
Definition: d3dx11tex.h:25
@ D3DX11_FILTER_SRGB_IN
Definition: d3dx11tex.h:40
@ D3DX11_FILTER_MIRROR_V
Definition: d3dx11tex.h:33
@ D3DX11_FILTER_LINEAR
Definition: d3dx11tex.h:28
@ D3DX11_FILTER_NONE
Definition: d3dx11tex.h:26
@ D3DX11_FILTER_MIRROR_U
Definition: d3dx11tex.h:32
@ D3DX11_FILTER_MIRROR
Definition: d3dx11tex.h:35
@ D3DX11_FILTER_TRIANGLE
Definition: d3dx11tex.h:29
@ D3DX11_FILTER_SRGB_OUT
Definition: d3dx11tex.h:41
@ D3DX11_FILTER_BOX
Definition: d3dx11tex.h:30
@ D3DX11_FILTER_MIRROR_W
Definition: d3dx11tex.h:34
@ D3DX11_FILTER_DITHER_DIFFUSION
Definition: d3dx11tex.h:38
@ D3DX11_FILTER_SRGB
Definition: d3dx11tex.h:42
@ D3DX11_FILTER_DITHER
Definition: d3dx11tex.h:37
@ D3DX11_FILTER_POINT
Definition: d3dx11tex.h:27
HRESULT WINAPI D3DX11SaveTextureToMemory(ID3D11DeviceContext *context, ID3D11Resource *texture, D3DX11_IMAGE_FILE_FORMAT format, ID3D10Blob **buffer, UINT flags)
Definition: texture.c:84
HRESULT WINAPI D3DX11GetImageInfoFromFileA(const char *filename, ID3DX11ThreadPump *pump, D3DX11_IMAGE_INFO *img_info, HRESULT *hresult)
Definition: main.c:48
HRESULT WINAPI D3DX11CreateTextureFromFileW(ID3D11Device *device, const WCHAR *filename, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture, HRESULT *hresult)
Definition: texture.c:46
struct _D3DX11_TEXTURE_LOAD_INFO D3DX11_TEXTURE_LOAD_INFO
HRESULT WINAPI D3DX11GetImageInfoFromFileW(const WCHAR *filename, ID3DX11ThreadPump *pump, D3DX11_IMAGE_INFO *img_info, HRESULT *hresult)
Definition: main.c:59
HRESULT WINAPI D3DX11FilterTexture(ID3D11DeviceContext *context, ID3D11Resource *texture, UINT src_level, UINT filter)
Definition: main.c:41
HRESULT WINAPI D3DX11SaveTextureToFileW(ID3D11DeviceContext *context, ID3D11Resource *texture, D3DX11_IMAGE_FILE_FORMAT format, const WCHAR *filename)
Definition: texture.c:66
HRESULT WINAPI D3DX11CreateTextureFromMemory(ID3D11Device *device, const void *src_data, SIZE_T src_data_size, D3DX11_IMAGE_LOAD_INFO *loadinfo, ID3DX11ThreadPump *pump, ID3D11Resource **texture, HRESULT *hresult)
Definition: texture.c:56
HRESULT WINAPI D3DX11LoadTextureFromTexture(ID3D11DeviceContext *context, ID3D11Resource *src_texture, D3DX11_TEXTURE_LOAD_INFO *info, ID3D11Resource *dst_texture)
Definition: texture.c:93
HRESULT WINAPI D3DX11CreateShaderResourceViewFromMemory(ID3D11Device *device, const void *data, SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11ShaderResourceView **view, HRESULT *hresult)
Definition: texture.c:26
HRESULT WINAPI D3DX11SaveTextureToFileA(ID3D11DeviceContext *context, ID3D11Resource *texture, D3DX11_IMAGE_FILE_FORMAT format, const char *filename)
Definition: texture.c:75
HRESULT WINAPI D3DX11GetImageInfoFromMemory(const void *src_data, SIZE_T src_data_size, ID3DX11ThreadPump *pump, D3DX11_IMAGE_INFO *img_info, HRESULT *hresult)
Definition: main.c:70
_Check_return_ _In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ PDXGKARG_SYSTEM_DISPLAY_ENABLE_FLAGS _Out_ UINT _Out_ UINT * Height
Definition: dispmprt.h:1445
_Check_return_ _In_ D3DDDI_VIDEO_PRESENT_TARGET_ID _In_ PDXGKARG_SYSTEM_DISPLAY_ENABLE_FLAGS _Out_ UINT * Width
Definition: dispmprt.h:1444
#define NULL
Definition: types.h:112
DXGI_FORMAT
Definition: dxgiformat.idl:22
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition: gl.h:1950
GLenum GLuint texture
Definition: glext.h:6295
GLuint buffer
Definition: glext.h:5915
GLbitfield flags
Definition: glext.h:7161
unsigned int UINT
Definition: sysinfo.c:13
const char * filename
Definition: ioapi.h:137
short WCHAR
Definition: pedump.c:58
D3DX11_IMAGE_FILE_FORMAT ImageFileFormat
Definition: d3dx11tex.h:67
DXGI_FORMAT Format
Definition: d3dx11tex.h:65
D3D11_RESOURCE_DIMENSION ResourceDimension
Definition: d3dx11tex.h:66
D3DX11_IMAGE_INFO * pSrcInfo
Definition: d3dx11tex.h:84
DXGI_FORMAT Format
Definition: d3dx11tex.h:81
D3D11_USAGE Usage
Definition: d3dx11tex.h:77
Definition: http.c:7252
Definition: devices.h:37
Definition: filter.c:165
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define WINAPI
Definition: msvc.h:6