ReactOS 0.4.17-dev-934-g091855f
texture.c
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#include "d3dcompiler.h"
21
22#include "wine/debug.h"
23
25
27 SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump,
28 ID3D11ShaderResourceView **view, HRESULT *hresult)
29{
30 FIXME("device %p, data %p, data_size %Iu, load_info %p, pump %p, view %p, hresult %p stub!\n",
31 device, data, data_size, load_info, pump, view, hresult);
32
33 return E_NOTIMPL;
34}
35
37 D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture,
38 HRESULT *hresult)
39{
40 FIXME("device %p, filename %s, load_info %p, pump %p, texture %p, hresult %p stub.\n",
41 device, debugstr_a(filename), load_info, pump, texture, hresult);
42
43 return E_NOTIMPL;
44}
45
47 D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture,
48 HRESULT *hresult)
49{
50 FIXME("device %p, filename %s, load_info %p, pump %p, texture %p, hresult %p stub.\n",
51 device, debugstr_w(filename), load_info, pump, texture, hresult);
52
53 return E_NOTIMPL;
54}
55
57 SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump,
58 ID3D11Resource **texture, HRESULT *hresult)
59{
60 FIXME("device %p, data %p, data_size %Iu, load_info %p, pump %p, texture %p, hresult %p stub.\n",
61 device, data, data_size, load_info, pump, texture, hresult);
62
63 return E_NOTIMPL;
64}
65
66HRESULT WINAPI D3DX11SaveTextureToFileW(ID3D11DeviceContext *context, ID3D11Resource *texture,
68{
69 FIXME("context %p, texture %p, format %u, filename %s stub!\n",
71
72 return E_NOTIMPL;
73}
74
75HRESULT WINAPI D3DX11SaveTextureToFileA(ID3D11DeviceContext *context, ID3D11Resource *texture,
77{
78 FIXME("context %p, texture %p, format %u, filename %s stub!\n",
80
81 return E_NOTIMPL;
82}
83
84HRESULT WINAPI D3DX11SaveTextureToMemory(ID3D11DeviceContext *context, ID3D11Resource *texture,
86{
87 FIXME("context %p, texture %p, format %u, buffer %p, flags %#x stub!\n",
89
90 return E_NOTIMPL;
91}
92
93HRESULT WINAPI D3DX11LoadTextureFromTexture(ID3D11DeviceContext *context, ID3D11Resource *src_texture,
94 D3DX11_TEXTURE_LOAD_INFO *info, ID3D11Resource *dst_texture)
95{
96 FIXME("context %p, src_texture %p, info %p, dst_texture %p stub!\n",
97 context, src_texture, info, dst_texture);
98
99 return E_NOTIMPL;
100}
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
#define FIXME(fmt,...)
Definition: precomp.h:53
D3DX11_IMAGE_FILE_FORMAT
Definition: d3dx11tex.h:46
#define E_NOTIMPL
Definition: ddrawi.h:99
HRESULT WINAPI D3DX11CreateTextureFromFileA(ID3D11Device *device, const char *filename, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture, HRESULT *hresult)
Definition: texture.c:36
HRESULT WINAPI D3DX11SaveTextureToMemory(ID3D11DeviceContext *context, ID3D11Resource *texture, D3DX11_IMAGE_FILE_FORMAT format, ID3D10Blob **buffer, UINT flags)
Definition: texture.c:84
HRESULT WINAPI D3DX11CreateTextureFromFileW(ID3D11Device *device, const WCHAR *filename, D3DX11_IMAGE_LOAD_INFO *load_info, ID3DX11ThreadPump *pump, ID3D11Resource **texture, HRESULT *hresult)
Definition: texture.c:46
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 *data, SIZE_T data_size, D3DX11_IMAGE_LOAD_INFO *load_info, 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
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
#define debugstr_a
Definition: kernel32.h:31
#define debugstr_w
Definition: kernel32.h:32
short WCHAR
Definition: pedump.c:58
Definition: http.c:7252
Definition: devices.h:37
ULONG_PTR SIZE_T
Definition: typedefs.h:80
#define WINAPI
Definition: msvc.h:6