166 lines
4.7 KiB
Plaintext
166 lines
4.7 KiB
Plaintext
/*
|
|
* Copyright 2010 Matteo Bruni 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
|
|
*/
|
|
|
|
import "oaidl.idl";
|
|
import "ocidl.idl";
|
|
|
|
typedef struct _D3D_SHADER_MACRO
|
|
{
|
|
LPCSTR Name;
|
|
LPCSTR Definition;
|
|
} D3D_SHADER_MACRO;
|
|
|
|
typedef struct _D3D_SHADER_MACRO* LPD3D_SHADER_MACRO;
|
|
|
|
[
|
|
object,
|
|
local,
|
|
uuid(8ba5fb08-5195-40e2-ac58-0d989c3a0102)
|
|
]
|
|
interface ID3D10Blob : IUnknown
|
|
{
|
|
void *GetBufferPointer();
|
|
SIZE_T GetBufferSize();
|
|
}
|
|
|
|
typedef ID3D10Blob* LPD3D10BLOB;
|
|
typedef ID3D10Blob ID3DBlob;
|
|
typedef ID3DBlob* LPD3DBLOB;
|
|
cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob")
|
|
|
|
typedef enum _D3D_INCLUDE_TYPE
|
|
{
|
|
D3D_INCLUDE_LOCAL = 0,
|
|
D3D_INCLUDE_SYSTEM,
|
|
D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL,
|
|
D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM,
|
|
D3D_INCLUDE_FORCE_DWORD = 0x7fffffff
|
|
} D3D_INCLUDE_TYPE;
|
|
|
|
[
|
|
object,
|
|
local,
|
|
]
|
|
interface ID3DInclude
|
|
{
|
|
HRESULT Open(D3D_INCLUDE_TYPE include_type,
|
|
const char *filename,
|
|
const void *parent_data,
|
|
const void **data,
|
|
UINT *bytes);
|
|
HRESULT Close(const void *data);
|
|
}
|
|
|
|
typedef ID3DInclude* LPD3DINCLUDE;
|
|
|
|
typedef enum _D3D_SHADER_VARIABLE_CLASS
|
|
{
|
|
D3D_SVC_SCALAR,
|
|
D3D_SVC_VECTOR,
|
|
D3D_SVC_MATRIX_ROWS,
|
|
D3D_SVC_MATRIX_COLUMNS,
|
|
D3D_SVC_OBJECT,
|
|
D3D_SVC_STRUCT,
|
|
D3D_SVC_INTERFACE_CLASS,
|
|
D3D_SVC_INTERFACE_POINTER,
|
|
D3D10_SVC_SCALAR = 0,
|
|
D3D10_SVC_VECTOR,
|
|
D3D10_SVC_MATRIX_ROWS,
|
|
D3D10_SVC_MATRIX_COLUMNS,
|
|
D3D10_SVC_OBJECT,
|
|
D3D10_SVC_STRUCT,
|
|
D3D11_SVC_INTERFACE_CLASS,
|
|
D3D11_SVC_INTERFACE_POINTER,
|
|
D3D_SVC_FORCE_DWORD = 0x7fffffff,
|
|
} D3D_SHADER_VARIABLE_CLASS;
|
|
|
|
typedef enum D3D_CBUFFER_TYPE
|
|
{
|
|
D3D_CT_CBUFFER,
|
|
D3D_CT_TBUFFER,
|
|
D3D_CT_INTERFACE_POINTERS,
|
|
D3D_CT_RESOURCE_BIND_INFO,
|
|
D3D10_CT_CBUFFER = 0,
|
|
D3D10_CT_TBUFFER,
|
|
D3D11_CT_CBUFFER = 0,
|
|
D3D11_CT_TBUFFER,
|
|
D3D11_CT_INTERFACE_POINTERS,
|
|
D3D11_CT_RESOURCE_BIND_INFO,
|
|
} D3D_CBUFFER_TYPE;
|
|
|
|
typedef enum D3D_SRV_DIMENSION
|
|
{
|
|
D3D_SRV_DIMENSION_UNKNOWN,
|
|
D3D_SRV_DIMENSION_BUFFER,
|
|
D3D_SRV_DIMENSION_TEXTURE1D,
|
|
D3D_SRV_DIMENSION_TEXTURE1DARRAY,
|
|
D3D_SRV_DIMENSION_TEXTURE2D,
|
|
D3D_SRV_DIMENSION_TEXTURE2DARRAY,
|
|
D3D_SRV_DIMENSION_TEXTURE2DMS,
|
|
D3D_SRV_DIMENSION_TEXTURE2DMSARRAY,
|
|
D3D_SRV_DIMENSION_TEXTURE3D,
|
|
D3D_SRV_DIMENSION_TEXTURECUBE,
|
|
D3D_SRV_DIMENSION_TEXTURECUBEARRAY,
|
|
D3D_SRV_DIMENSION_BUFFEREX,
|
|
D3D10_SRV_DIMENSION_UNKNOWN = 0,
|
|
D3D10_SRV_DIMENSION_BUFFER,
|
|
D3D10_SRV_DIMENSION_TEXTURE1D,
|
|
D3D10_SRV_DIMENSION_TEXTURE1DARRAY,
|
|
D3D10_SRV_DIMENSION_TEXTURE2D,
|
|
D3D10_SRV_DIMENSION_TEXTURE2DARRAY,
|
|
D3D10_SRV_DIMENSION_TEXTURE2DMS,
|
|
D3D10_SRV_DIMENSION_TEXTURE2DMSARRAY,
|
|
D3D10_SRV_DIMENSION_TEXTURE3D,
|
|
D3D10_SRV_DIMENSION_TEXTURECUBE,
|
|
D3D10_1_SRV_DIMENSION_UNKNOWN = 0,
|
|
D3D10_1_SRV_DIMENSION_BUFFER,
|
|
D3D10_1_SRV_DIMENSION_TEXTURE1D,
|
|
D3D10_1_SRV_DIMENSION_TEXTURE1DARRAY,
|
|
D3D10_1_SRV_DIMENSION_TEXTURE2D,
|
|
D3D10_1_SRV_DIMENSION_TEXTURE2DARRAY,
|
|
D3D10_1_SRV_DIMENSION_TEXTURE2DMS,
|
|
D3D10_1_SRV_DIMENSION_TEXTURE2DMSARRAY,
|
|
D3D10_1_SRV_DIMENSION_TEXTURE3D,
|
|
D3D10_1_SRV_DIMENSION_TEXTURECUBE,
|
|
D3D10_1_SRV_DIMENSION_TEXTURECUBEARRAY,
|
|
D3D11_SRV_DIMENSION_UNKNOWN = 0,
|
|
D3D11_SRV_DIMENSION_BUFFER,
|
|
D3D11_SRV_DIMENSION_TEXTURE1D,
|
|
D3D11_SRV_DIMENSION_TEXTURE1DARRAY,
|
|
D3D11_SRV_DIMENSION_TEXTURE2D,
|
|
D3D11_SRV_DIMENSION_TEXTURE2DARRAY,
|
|
D3D11_SRV_DIMENSION_TEXTURE2DMS,
|
|
D3D11_SRV_DIMENSION_TEXTURE2DMSARRAY,
|
|
D3D11_SRV_DIMENSION_TEXTURE3D,
|
|
D3D11_SRV_DIMENSION_TEXTURECUBE,
|
|
D3D11_SRV_DIMENSION_TEXTURECUBEARRAY,
|
|
D3D11_SRV_DIMENSION_BUFFEREX,
|
|
} D3D_SRV_DIMENSION;
|
|
|
|
typedef enum D3D_REGISTER_COMPONENT_TYPE
|
|
{
|
|
D3D_REGISTER_COMPONENT_UNKNOWN,
|
|
D3D_REGISTER_COMPONENT_UINT32,
|
|
D3D_REGISTER_COMPONENT_SINT32,
|
|
D3D_REGISTER_COMPONENT_FLOAT32,
|
|
D3D10_REGISTER_COMPONENT_UNKNOWN = 0,
|
|
D3D10_REGISTER_COMPONENT_UINT32,
|
|
D3D10_REGISTER_COMPONENT_SINT32,
|
|
D3D10_REGISTER_COMPONENT_FLOAT32,
|
|
} D3D_REGISTER_COMPONENT_TYPE;
|