Sweden-Number/dlls/d3d10/d3d10_private.h

138 lines
3.3 KiB
C
Raw Normal View History

/*
2009-02-27 09:29:48 +01:00
* Copyright 2008-2009 Henri Verbeet for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#ifndef __WINE_D3D10_PRIVATE_H
#define __WINE_D3D10_PRIVATE_H
#include "wine/debug.h"
#define COBJMACROS
#include "winbase.h"
#include "winuser.h"
#include "objbase.h"
#include "d3d10.h"
/* TRACE helper functions */
const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type);
enum d3d10_effect_object_type
2009-02-27 09:29:48 +01:00
{
D3D10_EOT_VERTEXSHADER = 6,
D3D10_EOT_PIXELSHADER = 7,
D3D10_EOT_GEOMETRYSHADER = 8,
2009-02-27 09:29:48 +01:00
};
struct d3d10_effect_object
2009-02-27 09:29:48 +01:00
{
2009-03-06 08:43:48 +01:00
struct d3d10_effect_pass *pass;
enum d3d10_effect_object_type type;
2009-02-27 09:29:48 +01:00
DWORD idx_offset;
void *data;
};
struct d3d10_effect_shader_variable
{
char *input_signature;
UINT input_signature_size;
2009-03-06 08:43:48 +01:00
union
{
ID3D10VertexShader *vs;
ID3D10PixelShader *ps;
ID3D10GeometryShader *gs;
} shader;
2009-02-27 09:29:48 +01:00
};
/* ID3D10EffectVariable */
2009-07-15 12:21:20 +02:00
struct d3d10_effect_variable
{
const struct ID3D10EffectVariableVtbl *vtbl;
2009-07-15 12:21:20 +02:00
char *name;
DWORD buffer_offset;
2009-08-20 19:02:11 +02:00
DWORD annotation_count;
2009-07-15 12:21:20 +02:00
};
2009-07-14 11:17:38 +02:00
struct d3d10_effect_local_buffer
{
const struct ID3D10EffectConstantBufferVtbl *vtbl;
2009-07-14 11:17:39 +02:00
char *name;
2009-07-14 11:17:38 +02:00
DWORD data_size;
DWORD variable_count;
2009-08-20 19:02:11 +02:00
DWORD annotation_count;
2009-07-15 12:21:20 +02:00
struct d3d10_effect_variable *variables;
2009-07-14 11:17:38 +02:00
};
/* ID3D10EffectPass */
2009-02-27 09:29:48 +01:00
struct d3d10_effect_pass
{
const struct ID3D10EffectPassVtbl *vtbl;
2009-03-06 08:43:48 +01:00
struct d3d10_effect_technique *technique;
2009-02-27 09:29:48 +01:00
char *name;
DWORD start;
DWORD object_count;
2009-08-20 19:02:11 +02:00
DWORD annotation_count;
struct d3d10_effect_object *objects;
2009-02-27 09:29:48 +01:00
};
/* ID3D10EffectTechnique */
2009-02-27 09:29:48 +01:00
struct d3d10_effect_technique
{
const struct ID3D10EffectTechniqueVtbl *vtbl;
2009-03-06 08:43:48 +01:00
struct d3d10_effect *effect;
2009-02-27 09:29:48 +01:00
char *name;
DWORD pass_count;
2009-08-20 19:02:11 +02:00
DWORD annotation_count;
2009-02-27 09:29:48 +01:00
struct d3d10_effect_pass *passes;
};
/* ID3D10Effect */
extern const struct ID3D10EffectVtbl d3d10_effect_vtbl;
struct d3d10_effect
{
const struct ID3D10EffectVtbl *vtbl;
LONG refcount;
2009-02-27 09:29:48 +01:00
ID3D10Device *device;
2009-05-29 23:35:07 +02:00
DWORD version;
2009-07-14 11:17:38 +02:00
DWORD local_buffer_count;
2009-05-29 23:35:07 +02:00
DWORD localobjects_count;
DWORD sharedbuffers_count;
DWORD sharedobjects_count;
2009-02-27 09:29:48 +01:00
DWORD technique_count;
DWORD index_offset;
2009-05-29 23:35:07 +02:00
DWORD dephstencilstate_count;
2009-02-27 09:29:48 +01:00
DWORD blendstate_count;
2009-05-29 23:35:07 +02:00
DWORD rasterizerstate_count;
DWORD samplerstate_count;
2009-07-14 11:17:38 +02:00
struct d3d10_effect_local_buffer *local_buffers;
2009-02-27 09:29:48 +01:00
struct d3d10_effect_technique *techniques;
};
HRESULT d3d10_effect_parse(struct d3d10_effect *This, const void *data, SIZE_T data_size);
/* D3D10Core */
HRESULT WINAPI D3D10CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapter,
UINT flags, DWORD unknown0, ID3D10Device **device);
#endif /* __WINE_D3D10_PRIVATE_H */