Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (d3d9) |
| |
| static struct d3d9_vertexshader * | impl_from_IDirect3DVertexShader9 (IDirect3DVertexShader9 *iface) |
| |
| static HRESULT WINAPI | d3d9_vertexshader_QueryInterface (IDirect3DVertexShader9 *iface, REFIID riid, void **out) |
| |
| static ULONG WINAPI | d3d9_vertexshader_AddRef (IDirect3DVertexShader9 *iface) |
| |
| static ULONG WINAPI | d3d9_vertexshader_Release (IDirect3DVertexShader9 *iface) |
| |
| static HRESULT WINAPI | d3d9_vertexshader_GetDevice (IDirect3DVertexShader9 *iface, IDirect3DDevice9 **device) |
| |
| static HRESULT WINAPI | d3d9_vertexshader_GetFunction (IDirect3DVertexShader9 *iface, void *data, UINT *data_size) |
| |
| static void STDMETHODCALLTYPE | d3d9_vertexshader_wined3d_object_destroyed (void *parent) |
| |
| HRESULT | vertexshader_init (struct d3d9_vertexshader *shader, struct d3d9_device *device, const DWORD *byte_code) |
| |
| struct d3d9_vertexshader * | unsafe_impl_from_IDirect3DVertexShader9 (IDirect3DVertexShader9 *iface) |
| |
| static struct d3d9_pixelshader * | impl_from_IDirect3DPixelShader9 (IDirect3DPixelShader9 *iface) |
| |
| static HRESULT WINAPI | d3d9_pixelshader_QueryInterface (IDirect3DPixelShader9 *iface, REFIID riid, void **out) |
| |
| static ULONG WINAPI | d3d9_pixelshader_AddRef (IDirect3DPixelShader9 *iface) |
| |
| static ULONG WINAPI | d3d9_pixelshader_Release (IDirect3DPixelShader9 *iface) |
| |
| static HRESULT WINAPI | d3d9_pixelshader_GetDevice (IDirect3DPixelShader9 *iface, IDirect3DDevice9 **device) |
| |
| static HRESULT WINAPI | d3d9_pixelshader_GetFunction (IDirect3DPixelShader9 *iface, void *data, UINT *data_size) |
| |
| static void STDMETHODCALLTYPE | d3d9_pixelshader_wined3d_object_destroyed (void *parent) |
| |
| HRESULT | pixelshader_init (struct d3d9_pixelshader *shader, struct d3d9_device *device, const DWORD *byte_code) |
| |
| struct d3d9_pixelshader * | unsafe_impl_from_IDirect3DPixelShader9 (IDirect3DPixelShader9 *iface) |
| |
◆ d3d9_pixelshader_AddRef()
| static ULONG WINAPI d3d9_pixelshader_AddRef |
( |
IDirect3DPixelShader9 * |
iface | ) |
|
|
static |
Definition at line 190 of file shader.c.
191{
194
196
198 {
201 }
202
204}
#define InterlockedIncrement
#define IDirect3DDevice9Ex_AddRef(p)
static struct d3d9_pixelshader * impl_from_IDirect3DPixelShader9(IDirect3DPixelShader9 *iface)
ULONG CDECL wined3d_shader_incref(struct wined3d_shader *shader)
◆ d3d9_pixelshader_GetDevice()
Definition at line 224 of file shader.c.
225{
227
229
232
234
236}
#define IDirect3DDevice9_AddRef(p)
◆ d3d9_pixelshader_GetFunction()
| static HRESULT WINAPI d3d9_pixelshader_GetFunction |
( |
IDirect3DPixelShader9 * |
iface, |
|
|
void * |
data, |
|
|
UINT * |
data_size |
|
) |
| |
|
static |
Definition at line 238 of file shader.c.
239{
242
243 TRACE(
"iface %p, data %p, data_size %p.\n", iface,
data, data_size);
244
248
250}
HRESULT CDECL wined3d_shader_get_byte_code(const struct wined3d_shader *shader, void *byte_code, UINT *byte_code_size)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void WINAPI wined3d_mutex_unlock(void)
void WINAPI wined3d_mutex_lock(void)
◆ d3d9_pixelshader_QueryInterface()
Definition at line 172 of file shader.c.
173{
175
178 {
182 }
183
185
188}
#define IDirect3DPixelShader9_AddRef(p)
#define IsEqualGUID(rguid1, rguid2)
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t ** out
◆ d3d9_pixelshader_Release()
| static ULONG WINAPI d3d9_pixelshader_Release |
( |
IDirect3DPixelShader9 * |
iface | ) |
|
|
static |
Definition at line 206 of file shader.c.
207{
210
212
214 {
217
219 }
220
222}
#define InterlockedDecrement
#define IDirect3DDevice9Ex_Release(p)
ULONG CDECL wined3d_shader_decref(struct wined3d_shader *shader)
◆ d3d9_pixelshader_wined3d_object_destroyed()
◆ d3d9_vertexshader_AddRef()
| static ULONG WINAPI d3d9_vertexshader_AddRef |
( |
IDirect3DVertexShader9 * |
iface | ) |
|
|
static |
Definition at line 47 of file shader.c.
48{
51
53
55 {
58 }
59
61}
static struct d3d9_vertexshader * impl_from_IDirect3DVertexShader9(IDirect3DVertexShader9 *iface)
◆ d3d9_vertexshader_GetDevice()
◆ d3d9_vertexshader_GetFunction()
| static HRESULT WINAPI d3d9_vertexshader_GetFunction |
( |
IDirect3DVertexShader9 * |
iface, |
|
|
void * |
data, |
|
|
UINT * |
data_size |
|
) |
| |
|
static |
Definition at line 95 of file shader.c.
96{
99
100 TRACE(
"iface %p, data %p, data_size %p.\n", iface,
data, data_size);
101
105
107}
◆ d3d9_vertexshader_QueryInterface()
| static HRESULT WINAPI d3d9_vertexshader_QueryInterface |
( |
IDirect3DVertexShader9 * |
iface, |
|
|
REFIID |
riid, |
|
|
void ** |
out |
|
) |
| |
|
static |
Definition at line 29 of file shader.c.
30{
32
35 {
39 }
40
42
45}
#define IDirect3DVertexShader9_AddRef(p)
◆ d3d9_vertexshader_Release()
| static ULONG WINAPI d3d9_vertexshader_Release |
( |
IDirect3DVertexShader9 * |
iface | ) |
|
|
static |
Definition at line 63 of file shader.c.
64{
67
69
71 {
74
76 }
77
79}
◆ d3d9_vertexshader_wined3d_object_destroyed()
◆ impl_from_IDirect3DPixelShader9()
◆ impl_from_IDirect3DVertexShader9()
◆ pixelshader_init()
Definition at line 273 of file shader.c.
274{
277
280
283
289 {
290 WARN(
"Failed to created wined3d pixel shader, hr %#lx.\n",
hr);
292 }
293
294 shader->parent_device = &
device->IDirect3DDevice9Ex_iface;
296
298}
static const IDirect3DPixelShader9Vtbl d3d9_pixelshader_vtbl
static const struct wined3d_parent_ops d3d9_pixelshader_wined3d_parent_ops
HRESULT CDECL wined3d_shader_create_ps(struct wined3d_device *device, const struct wined3d_shader_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_shader **shader)
D3D11_SHADER_VARIABLE_DESC desc
Referenced by d3d9_device_CreatePixelShader().
◆ unsafe_impl_from_IDirect3DPixelShader9()
◆ unsafe_impl_from_IDirect3DVertexShader9()
Definition at line 157 of file shader.c.
158{
159 if (!iface)
162 WARN(
"Vertex shader %p with the wrong vtbl %p\n", iface, iface->lpVtbl);
163
165}
static const IDirect3DVertexShader9Vtbl d3d9_vertexshader_vtbl
Referenced by d3d9_device_SetVertexShader().
◆ vertexshader_init()
Definition at line 130 of file shader.c.
131{
134
137
140
146 {
147 WARN(
"Failed to create wined3d vertex shader, hr %#lx.\n",
hr);
149 }
150
151 shader->parent_device = &
device->IDirect3DDevice9Ex_iface;
153
155}
static const struct wined3d_parent_ops d3d9_vertexshader_wined3d_parent_ops
HRESULT CDECL wined3d_shader_create_vs(struct wined3d_device *device, const struct wined3d_shader_desc *desc, void *parent, const struct wined3d_parent_ops *parent_ops, struct wined3d_shader **shader)
Referenced by d3d9_device_CreateVertexShader().
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
d3d9 |
| ) |
|
◆ d3d9_pixelshader_vtbl
| const IDirect3DPixelShader9Vtbl d3d9_pixelshader_vtbl |
|
static |
Initial value:=
{
}
static HRESULT WINAPI d3d9_pixelshader_QueryInterface(IDirect3DPixelShader9 *iface, REFIID riid, void **out)
static ULONG WINAPI d3d9_pixelshader_AddRef(IDirect3DPixelShader9 *iface)
static ULONG WINAPI d3d9_pixelshader_Release(IDirect3DPixelShader9 *iface)
static HRESULT WINAPI d3d9_pixelshader_GetDevice(IDirect3DPixelShader9 *iface, IDirect3DDevice9 **device)
static HRESULT WINAPI d3d9_pixelshader_GetFunction(IDirect3DPixelShader9 *iface, void *data, UINT *data_size)
Definition at line 252 of file shader.c.
Referenced by pixelshader_init(), and unsafe_impl_from_IDirect3DPixelShader9().
◆ d3d9_pixelshader_wined3d_parent_ops
Initial value:=
{
}
static void STDMETHODCALLTYPE d3d9_pixelshader_wined3d_object_destroyed(void *parent)
Definition at line 268 of file shader.c.
Referenced by pixelshader_init().
◆ d3d9_vertexshader_vtbl
| const IDirect3DVertexShader9Vtbl d3d9_vertexshader_vtbl |
|
static |
Initial value:=
{
}
static HRESULT WINAPI d3d9_vertexshader_GetFunction(IDirect3DVertexShader9 *iface, void *data, UINT *data_size)
static HRESULT WINAPI d3d9_vertexshader_QueryInterface(IDirect3DVertexShader9 *iface, REFIID riid, void **out)
static ULONG WINAPI d3d9_vertexshader_AddRef(IDirect3DVertexShader9 *iface)
static HRESULT WINAPI d3d9_vertexshader_GetDevice(IDirect3DVertexShader9 *iface, IDirect3DDevice9 **device)
static ULONG WINAPI d3d9_vertexshader_Release(IDirect3DVertexShader9 *iface)
Definition at line 109 of file shader.c.
Referenced by unsafe_impl_from_IDirect3DVertexShader9(), and vertexshader_init().
◆ d3d9_vertexshader_wined3d_parent_ops
Initial value:=
{
}
static void STDMETHODCALLTYPE d3d9_vertexshader_wined3d_object_destroyed(void *parent)
Definition at line 125 of file shader.c.
Referenced by vertexshader_init().