2018-02-09 04:45:09 -08:00
|
|
|
/*
|
2021-08-17 10:38:59 -07:00
|
|
|
* Copyright 2010 Matteo Bruni for CodeWeavers
|
2018-02-09 04:45:09 -08:00
|
|
|
* Copyright 2016 Józef Kucia 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 "vkd3d_windows.h";
|
|
|
|
|
|
|
|
#include "vkd3d_unknown.idl"
|
|
|
|
|
2018-02-15 06:43:50 -08:00
|
|
|
typedef enum D3D_PRIMITIVE_TOPOLOGY
|
|
|
|
{
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_UNDEFINED = 0,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_POINTLIST = 1,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_LINELIST = 2,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_LINESTRIP = 3,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST = 4,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP = 5,
|
2018-07-18 03:05:47 -07:00
|
|
|
D3D_PRIMITIVE_TOPOLOGY_LINELIST_ADJ = 10,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ = 11,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ = 12,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ = 13,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_1_CONTROL_POINT_PATCHLIST = 33,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_2_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_3_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_4_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_5_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_6_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_7_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_8_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_9_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_10_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_11_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_12_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_13_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_14_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_15_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_16_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_17_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_18_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_19_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_20_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_21_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_22_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_23_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_24_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_25_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_26_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_27_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_28_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_29_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_30_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_31_CONTROL_POINT_PATCHLIST,
|
|
|
|
D3D_PRIMITIVE_TOPOLOGY_32_CONTROL_POINT_PATCHLIST,
|
2018-02-15 06:43:50 -08:00
|
|
|
} D3D_PRIMITIVE_TOPOLOGY;
|
|
|
|
|
2018-02-09 04:45:09 -08:00
|
|
|
typedef enum D3D_FEATURE_LEVEL
|
|
|
|
{
|
|
|
|
D3D_FEATURE_LEVEL_9_1 = 0x9100,
|
|
|
|
D3D_FEATURE_LEVEL_9_2 = 0x9200,
|
|
|
|
D3D_FEATURE_LEVEL_9_3 = 0x9300,
|
|
|
|
D3D_FEATURE_LEVEL_10_0 = 0xa000,
|
|
|
|
D3D_FEATURE_LEVEL_10_1 = 0xa100,
|
|
|
|
D3D_FEATURE_LEVEL_11_0 = 0xb000,
|
|
|
|
D3D_FEATURE_LEVEL_11_1 = 0xb100,
|
|
|
|
D3D_FEATURE_LEVEL_12_0 = 0xc000,
|
|
|
|
D3D_FEATURE_LEVEL_12_1 = 0xc100,
|
|
|
|
} D3D_FEATURE_LEVEL;
|
|
|
|
|
2021-08-17 10:38:59 -07:00
|
|
|
typedef enum D3D_CBUFFER_TYPE
|
|
|
|
{
|
|
|
|
D3D_CT_CBUFFER,
|
|
|
|
D3D_CT_TBUFFER,
|
|
|
|
D3D_CT_INTERFACE_POINTERS,
|
|
|
|
D3D_CT_RESOURCE_BIND_INFO,
|
|
|
|
} D3D_CBUFFER_TYPE;
|
|
|
|
|
|
|
|
typedef enum _D3D_SHADER_INPUT_FLAGS
|
|
|
|
{
|
|
|
|
D3D_SIF_USERPACKED = 0x01,
|
|
|
|
D3D_SIF_COMPARISON_SAMPLER = 0x02,
|
|
|
|
D3D_SIF_TEXTURE_COMPONENT_0 = 0x04,
|
|
|
|
D3D_SIF_TEXTURE_COMPONENT_1 = 0x08,
|
|
|
|
D3D_SIF_TEXTURE_COMPONENTS = 0x0c,
|
|
|
|
D3D_SIF_UNUSED = 0x10,
|
|
|
|
D3D_SIF_FORCE_DWORD = 0x7fffffff,
|
|
|
|
} D3D_SHADER_INPUT_FLAGS;
|
|
|
|
|
|
|
|
typedef enum _D3D_SHADER_INPUT_TYPE
|
|
|
|
{
|
|
|
|
D3D_SIT_CBUFFER,
|
|
|
|
D3D_SIT_TBUFFER,
|
|
|
|
D3D_SIT_TEXTURE,
|
|
|
|
D3D_SIT_SAMPLER,
|
|
|
|
D3D_SIT_UAV_RWTYPED,
|
|
|
|
D3D_SIT_STRUCTURED,
|
|
|
|
D3D_SIT_UAV_RWSTRUCTURED,
|
|
|
|
D3D_SIT_BYTEADDRESS,
|
|
|
|
D3D_SIT_UAV_RWBYTEADDRESS,
|
|
|
|
D3D_SIT_UAV_APPEND_STRUCTURED,
|
|
|
|
D3D_SIT_UAV_CONSUME_STRUCTURED,
|
|
|
|
D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER,
|
|
|
|
} D3D_SHADER_INPUT_TYPE;
|
|
|
|
|
2021-08-17 10:39:00 -07:00
|
|
|
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,
|
|
|
|
D3D_SVC_FORCE_DWORD = 0x7fffffff,
|
|
|
|
} D3D_SHADER_VARIABLE_CLASS;
|
|
|
|
|
2021-08-17 10:38:59 -07:00
|
|
|
typedef enum _D3D_SHADER_VARIABLE_FLAGS
|
|
|
|
{
|
|
|
|
D3D_SVF_USERPACKED = 0x01,
|
|
|
|
D3D_SVF_USED = 0x02,
|
|
|
|
D3D_SVF_INTERFACE_POINTER = 0x04,
|
|
|
|
D3D_SVF_INTERFACE_PARAMETER = 0x08,
|
|
|
|
D3D_SVF_FORCE_DWORD = 0x7fffffff,
|
|
|
|
} D3D_SHADER_VARIABLE_FLAGS;
|
|
|
|
|
2021-08-17 10:39:00 -07:00
|
|
|
typedef enum _D3D_SHADER_VARIABLE_TYPE
|
|
|
|
{
|
|
|
|
D3D_SVT_VOID,
|
|
|
|
D3D_SVT_BOOL,
|
|
|
|
D3D_SVT_INT,
|
|
|
|
D3D_SVT_FLOAT,
|
|
|
|
D3D_SVT_STRING,
|
|
|
|
D3D_SVT_TEXTURE,
|
|
|
|
D3D_SVT_TEXTURE1D,
|
|
|
|
D3D_SVT_TEXTURE2D,
|
|
|
|
D3D_SVT_TEXTURE3D,
|
|
|
|
D3D_SVT_TEXTURECUBE,
|
|
|
|
D3D_SVT_SAMPLER,
|
|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|
|
D3D_SVT_STRUCTURED_BUFFER,
|
|
|
|
D3D_SVT_RWSTRUCTURED_BUFFER,
|
|
|
|
D3D_SVT_APPEND_STRUCTURED_BUFFER,
|
|
|
|
D3D_SVT_CONSUME_STRUCTURED_BUFFER,
|
|
|
|
D3D_SVT_FORCE_DWORD = 0x7fffffff,
|
|
|
|
} D3D_SHADER_VARIABLE_TYPE;
|
|
|
|
|
2018-02-09 04:45:09 -08:00
|
|
|
[
|
|
|
|
uuid(8ba5fb08-5195-40e2-ac58-0d989c3a0102),
|
|
|
|
object,
|
|
|
|
local,
|
|
|
|
pointer_default(unique)
|
|
|
|
]
|
|
|
|
interface ID3D10Blob : IUnknown
|
|
|
|
{
|
|
|
|
void *GetBufferPointer();
|
|
|
|
SIZE_T GetBufferSize();
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef ID3D10Blob ID3DBlob;
|
|
|
|
cpp_quote("#define IID_ID3DBlob IID_ID3D10Blob")
|
2020-09-29 14:14:51 -07:00
|
|
|
|
|
|
|
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 *size);
|
|
|
|
HRESULT Close(const void *data);
|
|
|
|
}
|
|
|
|
|
|
|
|
typedef struct _D3D_SHADER_MACRO
|
|
|
|
{
|
|
|
|
const char *Name;
|
|
|
|
const char *Definition;
|
|
|
|
} D3D_SHADER_MACRO;
|