2008-10-20 13:28:08 +00:00
|
|
|
/*
|
2009-02-27 08:29:48 +00:00
|
|
|
* Copyright 2008-2009 Henri Verbeet for CodeWeavers
|
2008-10-20 13:28:08 +00:00
|
|
|
*
|
|
|
|
* 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"
|
|
|
|
|
2008-10-20 13:28:09 +00:00
|
|
|
#define COBJMACROS
|
2008-10-20 13:28:08 +00:00
|
|
|
#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);
|
2008-10-20 13:28:09 +00:00
|
|
|
|
2009-02-27 08:29:48 +00:00
|
|
|
enum d3d10_effect_variable_type
|
|
|
|
{
|
|
|
|
D3D10_EVT_VERTEXSHADER = 6,
|
|
|
|
D3D10_EVT_PIXELSHADER = 7,
|
|
|
|
D3D10_EVT_GEOMETRYSHADER = 8,
|
|
|
|
};
|
|
|
|
|
|
|
|
struct d3d10_effect_variable
|
|
|
|
{
|
|
|
|
enum d3d10_effect_variable_type type;
|
|
|
|
DWORD idx_offset;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct d3d10_effect_pass
|
|
|
|
{
|
|
|
|
char *name;
|
|
|
|
DWORD start;
|
|
|
|
DWORD variable_count;
|
|
|
|
struct d3d10_effect_variable *variables;
|
|
|
|
};
|
|
|
|
|
2009-03-02 07:52:49 +00:00
|
|
|
/* ID3D10EffectTechnique */
|
2009-02-27 08:29:48 +00:00
|
|
|
struct d3d10_effect_technique
|
|
|
|
{
|
2009-03-02 07:52:49 +00:00
|
|
|
const struct ID3D10EffectTechniqueVtbl *vtbl;
|
|
|
|
|
2009-02-27 08:29:48 +00:00
|
|
|
char *name;
|
|
|
|
DWORD start;
|
|
|
|
DWORD pass_count;
|
|
|
|
struct d3d10_effect_pass *passes;
|
|
|
|
};
|
|
|
|
|
2009-02-26 08:00:01 +00:00
|
|
|
/* ID3D10Effect */
|
|
|
|
extern const struct ID3D10EffectVtbl d3d10_effect_vtbl;
|
|
|
|
struct d3d10_effect
|
|
|
|
{
|
|
|
|
const struct ID3D10EffectVtbl *vtbl;
|
|
|
|
LONG refcount;
|
2009-02-27 08:29:48 +00:00
|
|
|
|
|
|
|
DWORD technique_count;
|
|
|
|
DWORD index_offset;
|
|
|
|
DWORD blendstate_count;
|
|
|
|
struct d3d10_effect_technique *techniques;
|
2009-02-26 08:00:01 +00:00
|
|
|
};
|
|
|
|
|
2009-02-27 08:29:48 +00:00
|
|
|
HRESULT d3d10_effect_parse(struct d3d10_effect *This, const void *data, SIZE_T data_size);
|
|
|
|
|
2008-11-14 12:57:06 +00:00
|
|
|
/* D3D10Core */
|
|
|
|
HRESULT WINAPI D3D10CoreCreateDevice(IDXGIFactory *factory, IDXGIAdapter *adapter,
|
|
|
|
UINT flags, DWORD unknown0, ID3D10Device **device);
|
|
|
|
|
2008-10-20 13:28:08 +00:00
|
|
|
#endif /* __WINE_D3D10_PRIVATE_H */
|