Skip to content

Commit 358ff23

Browse files
committed
D3DCommon Generation
1 parent f41dc67 commit 358ff23

40 files changed

+1988
-0
lines changed
Lines changed: 244 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,244 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
using System;
5+
using System.Diagnostics;
6+
using System.Runtime.CompilerServices;
7+
using System.Runtime.InteropServices;
8+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
9+
namespace Silk.NET.DirectX;
10+
11+
public static partial class D3D
12+
{
13+
[NativeTypeName("const GUID")]
14+
public static ref readonly Guid D3D_TEXTURE_LAYOUT_ROW_MAJOR
15+
{
16+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
17+
get
18+
{
19+
ReadOnlySpan<byte> data =
20+
[
21+
0x4F,
22+
0x23,
23+
0xDC,
24+
0xB5,
25+
0xBB,
26+
0x72,
27+
0xEC,
28+
0x4B,
29+
0x97,
30+
0x05,
31+
0x8C,
32+
0xF2,
33+
0x58,
34+
0xDF,
35+
0x6B,
36+
0x6C,
37+
];
38+
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
39+
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
40+
}
41+
}
42+
43+
[NativeTypeName("const GUID")]
44+
public static ref readonly Guid D3D_TEXTURE_LAYOUT_64KB_STANDARD_SWIZZLE
45+
{
46+
[MethodImpl(MethodImplOptions.AggressiveInlining)]
47+
get
48+
{
49+
ReadOnlySpan<byte> data =
50+
[
51+
0xE3,
52+
0x29,
53+
0x0F,
54+
0x4C,
55+
0x5F,
56+
0x3F,
57+
0x35,
58+
0x4D,
59+
0x84,
60+
0xC9,
61+
0xBC,
62+
0x09,
63+
0x83,
64+
0xB6,
65+
0x2C,
66+
0x28,
67+
];
68+
Debug.Assert(data.Length == Unsafe.SizeOf<Guid>());
69+
return ref Unsafe.As<byte, Guid>(ref MemoryMarshal.GetReference(data));
70+
}
71+
}
72+
73+
[NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION 2048")]
74+
public const int D3D_FL9_1_REQ_TEXTURE1D_U_DIMENSION = 2048;
75+
76+
[NativeTypeName("#define D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION 4096")]
77+
public const int D3D_FL9_3_REQ_TEXTURE1D_U_DIMENSION = 4096;
78+
79+
[NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION 2048")]
80+
public const int D3D_FL9_1_REQ_TEXTURE2D_U_OR_V_DIMENSION = 2048;
81+
82+
[NativeTypeName("#define D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION 4096")]
83+
public const int D3D_FL9_3_REQ_TEXTURE2D_U_OR_V_DIMENSION = 4096;
84+
85+
[NativeTypeName("#define D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION 512")]
86+
public const int D3D_FL9_1_REQ_TEXTURECUBE_DIMENSION = 512;
87+
88+
[NativeTypeName("#define D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION 4096")]
89+
public const int D3D_FL9_3_REQ_TEXTURECUBE_DIMENSION = 4096;
90+
91+
[NativeTypeName("#define D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION 256")]
92+
public const int D3D_FL9_1_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = 256;
93+
94+
[NativeTypeName("#define D3D_FL9_1_DEFAULT_MAX_ANISOTROPY 2")]
95+
public const int D3D_FL9_1_DEFAULT_MAX_ANISOTROPY = 2;
96+
97+
[NativeTypeName("#define D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT 65535")]
98+
public const int D3D_FL9_1_IA_PRIMITIVE_MAX_COUNT = 65535;
99+
100+
[NativeTypeName("#define D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT 1048575")]
101+
public const int D3D_FL9_2_IA_PRIMITIVE_MAX_COUNT = 1048575;
102+
103+
[NativeTypeName("#define D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT 1")]
104+
public const int D3D_FL9_1_SIMULTANEOUS_RENDER_TARGET_COUNT = 1;
105+
106+
[NativeTypeName("#define D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT 4")]
107+
public const int D3D_FL9_3_SIMULTANEOUS_RENDER_TARGET_COUNT = 4;
108+
109+
[NativeTypeName("#define D3D_FL9_1_MAX_TEXTURE_REPEAT 128")]
110+
public const int D3D_FL9_1_MAX_TEXTURE_REPEAT = 128;
111+
112+
[NativeTypeName("#define D3D_FL9_2_MAX_TEXTURE_REPEAT 2048")]
113+
public const int D3D_FL9_2_MAX_TEXTURE_REPEAT = 2048;
114+
115+
[NativeTypeName("#define D3D_FL9_3_MAX_TEXTURE_REPEAT 8192")]
116+
public const int D3D_FL9_3_MAX_TEXTURE_REPEAT = 8192;
117+
118+
[NativeTypeName("#define D3D_SHADER_FEATURE_DOUBLES 0x00001")]
119+
public const int D3D_SHADER_FEATURE_DOUBLES = 0x00001;
120+
121+
[NativeTypeName(
122+
"#define D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X 0x00002"
123+
)]
124+
public const int D3D_SHADER_FEATURE_COMPUTE_SHADERS_PLUS_RAW_AND_STRUCTURED_BUFFERS_VIA_SHADER_4_X =
125+
0x00002;
126+
127+
[NativeTypeName("#define D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE 0x00004")]
128+
public const int D3D_SHADER_FEATURE_UAVS_AT_EVERY_STAGE = 0x00004;
129+
130+
[NativeTypeName("#define D3D_SHADER_FEATURE_64_UAVS 0x00008")]
131+
public const int D3D_SHADER_FEATURE_64_UAVS = 0x00008;
132+
133+
[NativeTypeName("#define D3D_SHADER_FEATURE_MINIMUM_PRECISION 0x00010")]
134+
public const int D3D_SHADER_FEATURE_MINIMUM_PRECISION = 0x00010;
135+
136+
[NativeTypeName("#define D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS 0x00020")]
137+
public const int D3D_SHADER_FEATURE_11_1_DOUBLE_EXTENSIONS = 0x00020;
138+
139+
[NativeTypeName("#define D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS 0x00040")]
140+
public const int D3D_SHADER_FEATURE_11_1_SHADER_EXTENSIONS = 0x00040;
141+
142+
[NativeTypeName("#define D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING 0x00080")]
143+
public const int D3D_SHADER_FEATURE_LEVEL_9_COMPARISON_FILTERING = 0x00080;
144+
145+
[NativeTypeName("#define D3D_SHADER_FEATURE_TILED_RESOURCES 0x00100")]
146+
public const int D3D_SHADER_FEATURE_TILED_RESOURCES = 0x00100;
147+
148+
[NativeTypeName("#define D3D_SHADER_FEATURE_STENCIL_REF 0x00200")]
149+
public const int D3D_SHADER_FEATURE_STENCIL_REF = 0x00200;
150+
151+
[NativeTypeName("#define D3D_SHADER_FEATURE_INNER_COVERAGE 0x00400")]
152+
public const int D3D_SHADER_FEATURE_INNER_COVERAGE = 0x00400;
153+
154+
[NativeTypeName("#define D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS 0x00800")]
155+
public const int D3D_SHADER_FEATURE_TYPED_UAV_LOAD_ADDITIONAL_FORMATS = 0x00800;
156+
157+
[NativeTypeName("#define D3D_SHADER_FEATURE_ROVS 0x01000")]
158+
public const int D3D_SHADER_FEATURE_ROVS = 0x01000;
159+
160+
[NativeTypeName(
161+
"#define D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER 0x02000"
162+
)]
163+
public const int D3D_SHADER_FEATURE_VIEWPORT_AND_RT_ARRAY_INDEX_FROM_ANY_SHADER_FEEDING_RASTERIZER =
164+
0x02000;
165+
166+
[NativeTypeName("#define D3D_SHADER_FEATURE_WAVE_OPS 0x04000")]
167+
public const int D3D_SHADER_FEATURE_WAVE_OPS = 0x04000;
168+
169+
[NativeTypeName("#define D3D_SHADER_FEATURE_INT64_OPS 0x08000")]
170+
public const int D3D_SHADER_FEATURE_INT64_OPS = 0x08000;
171+
172+
[NativeTypeName("#define D3D_SHADER_FEATURE_VIEW_ID 0x10000")]
173+
public const int D3D_SHADER_FEATURE_VIEW_ID = 0x10000;
174+
175+
[NativeTypeName("#define D3D_SHADER_FEATURE_BARYCENTRICS 0x20000")]
176+
public const int D3D_SHADER_FEATURE_BARYCENTRICS = 0x20000;
177+
178+
[NativeTypeName("#define D3D_SHADER_FEATURE_NATIVE_16BIT_OPS 0x40000")]
179+
public const int D3D_SHADER_FEATURE_NATIVE_16BIT_OPS = 0x40000;
180+
181+
[NativeTypeName("#define D3D_SHADER_FEATURE_SHADING_RATE 0x80000")]
182+
public const int D3D_SHADER_FEATURE_SHADING_RATE = 0x80000;
183+
184+
[NativeTypeName("#define D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 0x100000")]
185+
public const int D3D_SHADER_FEATURE_RAYTRACING_TIER_1_1 = 0x100000;
186+
187+
[NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLER_FEEDBACK 0x200000")]
188+
public const int D3D_SHADER_FEATURE_SAMPLER_FEEDBACK = 0x200000;
189+
190+
[NativeTypeName("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE 0x400000")]
191+
public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_TYPED_RESOURCE = 0x400000;
192+
193+
[NativeTypeName("#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED 0x800000")]
194+
public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_GROUP_SHARED = 0x800000;
195+
196+
[NativeTypeName(
197+
"#define D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS 0x1000000"
198+
)]
199+
public const int D3D_SHADER_FEATURE_DERIVATIVES_IN_MESH_AND_AMPLIFICATION_SHADERS = 0x1000000;
200+
201+
[NativeTypeName("#define D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING 0x2000000")]
202+
public const int D3D_SHADER_FEATURE_RESOURCE_DESCRIPTOR_HEAP_INDEXING = 0x2000000;
203+
204+
[NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING 0x4000000")]
205+
public const int D3D_SHADER_FEATURE_SAMPLER_DESCRIPTOR_HEAP_INDEXING = 0x4000000;
206+
207+
[NativeTypeName("#define D3D_SHADER_FEATURE_WAVE_MMA 0x8000000")]
208+
public const int D3D_SHADER_FEATURE_WAVE_MMA = 0x8000000;
209+
210+
[NativeTypeName(
211+
"#define D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE 0x10000000"
212+
)]
213+
public const int D3D_SHADER_FEATURE_ATOMIC_INT64_ON_DESCRIPTOR_HEAP_RESOURCE = 0x10000000;
214+
215+
[NativeTypeName("#define D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS 0x20000000")]
216+
public const int D3D_SHADER_FEATURE_ADVANCED_TEXTURE_OPS = 0x20000000;
217+
218+
[NativeTypeName("#define D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES 0x40000000")]
219+
public const int D3D_SHADER_FEATURE_WRITEABLE_MSAA_TEXTURES = 0x40000000;
220+
221+
[NativeTypeName("#define D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS 0x80000000")]
222+
public const uint D3D_SHADER_FEATURE_SAMPLE_CMP_GRADIENT_OR_BIAS = 0x80000000;
223+
224+
[NativeTypeName("#define D3D_SHADER_FEATURE_EXTENDED_COMMAND_INFO 0x100000000ull")]
225+
public const ulong D3D_SHADER_FEATURE_EXTENDED_COMMAND_INFO = 0x100000000UL;
226+
227+
[NativeTypeName("#define D3D_OPT_SHADER_FEATURE_USES_DERIVATIVES 0x0000010000000000ull")]
228+
public const ulong D3D_OPT_SHADER_FEATURE_USES_DERIVATIVES = 0x0000010000000000UL;
229+
230+
[NativeTypeName("#define D3D_OPT_SHADER_FEATURE_REQUIRES_GROUP 0x0000020000000000ull")]
231+
public const ulong D3D_OPT_SHADER_FEATURE_REQUIRES_GROUP = 0x0000020000000000UL;
232+
233+
[NativeTypeName("#define D3D_COMPONENT_MASK_X 1")]
234+
public const int D3D_COMPONENT_MASK_X = 1;
235+
236+
[NativeTypeName("#define D3D_COMPONENT_MASK_Y 2")]
237+
public const int D3D_COMPONENT_MASK_Y = 2;
238+
239+
[NativeTypeName("#define D3D_COMPONENT_MASK_Z 4")]
240+
public const int D3D_COMPONENT_MASK_Z = 4;
241+
242+
[NativeTypeName("#define D3D_COMPONENT_MASK_W 8")]
243+
public const int D3D_COMPONENT_MASK_W = 8;
244+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_CBUFFER_TYPE
8+
{
9+
D3D_CT_CBUFFER = 0,
10+
D3D_CT_TBUFFER = (D3D_CT_CBUFFER + 1),
11+
D3D_CT_INTERFACE_POINTERS = (D3D_CT_TBUFFER + 1),
12+
D3D_CT_RESOURCE_BIND_INFO = (D3D_CT_INTERFACE_POINTERS + 1),
13+
D3D10_CT_CBUFFER = D3D_CT_CBUFFER,
14+
D3D10_CT_TBUFFER = D3D_CT_TBUFFER,
15+
D3D11_CT_CBUFFER = D3D_CT_CBUFFER,
16+
D3D11_CT_TBUFFER = D3D_CT_TBUFFER,
17+
D3D11_CT_INTERFACE_POINTERS = D3D_CT_INTERFACE_POINTERS,
18+
D3D11_CT_RESOURCE_BIND_INFO = D3D_CT_RESOURCE_BIND_INFO,
19+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_DRIVER_TYPE
8+
{
9+
D3D_DRIVER_TYPE_UNKNOWN = 0,
10+
D3D_DRIVER_TYPE_HARDWARE = (D3D_DRIVER_TYPE_UNKNOWN + 1),
11+
D3D_DRIVER_TYPE_REFERENCE = (D3D_DRIVER_TYPE_HARDWARE + 1),
12+
D3D_DRIVER_TYPE_NULL = (D3D_DRIVER_TYPE_REFERENCE + 1),
13+
D3D_DRIVER_TYPE_SOFTWARE = (D3D_DRIVER_TYPE_NULL + 1),
14+
D3D_DRIVER_TYPE_WARP = (D3D_DRIVER_TYPE_SOFTWARE + 1),
15+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_FEATURE_LEVEL
8+
{
9+
D3D_FEATURE_LEVEL_1_0_GENERIC = 0x100,
10+
D3D_FEATURE_LEVEL_1_0_CORE = 0x1000,
11+
D3D_FEATURE_LEVEL_9_1 = 0x9100,
12+
D3D_FEATURE_LEVEL_9_2 = 0x9200,
13+
D3D_FEATURE_LEVEL_9_3 = 0x9300,
14+
D3D_FEATURE_LEVEL_10_0 = 0xa000,
15+
D3D_FEATURE_LEVEL_10_1 = 0xa100,
16+
D3D_FEATURE_LEVEL_11_0 = 0xb000,
17+
D3D_FEATURE_LEVEL_11_1 = 0xb100,
18+
D3D_FEATURE_LEVEL_12_0 = 0xc000,
19+
D3D_FEATURE_LEVEL_12_1 = 0xc100,
20+
D3D_FEATURE_LEVEL_12_2 = 0xc200,
21+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_FORMAT_COMPONENT_INTERPRETATION
8+
{
9+
D3DFCI_TYPELESS = 0,
10+
D3DFCI_FLOAT = -4,
11+
D3DFCI_SNORM = -3,
12+
D3DFCI_UNORM = -2,
13+
D3DFCI_SINT = -1,
14+
D3DFCI_UINT = 1,
15+
D3DFCI_UNORM_SRGB = 2,
16+
D3DFCI_BIASED_FIXED_2_8 = 3,
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_FORMAT_COMPONENT_NAME
8+
{
9+
D3DFCN_R = -4,
10+
D3DFCN_G = -3,
11+
D3DFCN_B = -2,
12+
D3DFCN_A = -1,
13+
D3DFCN_D = 0,
14+
D3DFCN_S = 1,
15+
D3DFCN_X = 2,
16+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_FORMAT_LAYOUT
8+
{
9+
D3DFL_STANDARD = 0,
10+
D3DFL_CUSTOM = -1,
11+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_FORMAT_TYPE_LEVEL
8+
{
9+
D3DFTL_NO_TYPE = 0,
10+
D3DFTL_PARTIAL_TYPE = -2,
11+
D3DFTL_FULL_TYPE = -1,
12+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_INCLUDE_TYPE
8+
{
9+
D3D_INCLUDE_LOCAL = 0,
10+
D3D_INCLUDE_SYSTEM = (D3D_INCLUDE_LOCAL + 1),
11+
D3D10_INCLUDE_LOCAL = D3D_INCLUDE_LOCAL,
12+
D3D10_INCLUDE_SYSTEM = D3D_INCLUDE_SYSTEM,
13+
D3D_INCLUDE_FORCE_DWORD = 0x7fffffff,
14+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information.
2+
// Ported from d3dcommon.h in microsoft/DirectX-Headers tag v1.614.0
3+
// Original source is Copyright © Microsoft. Licensed under the MIT license
4+
#pragma warning disable CS1589, CS0419, CA1416, CS0618
5+
namespace Silk.NET.DirectX;
6+
7+
public enum D3D_INTERPOLATION_MODE
8+
{
9+
D3D_INTERPOLATION_UNDEFINED = 0,
10+
D3D_INTERPOLATION_CONSTANT = 1,
11+
D3D_INTERPOLATION_LINEAR = 2,
12+
D3D_INTERPOLATION_LINEAR_CENTROID = 3,
13+
D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE = 4,
14+
D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_CENTROID = 5,
15+
D3D_INTERPOLATION_LINEAR_SAMPLE = 6,
16+
D3D_INTERPOLATION_LINEAR_NOPERSPECTIVE_SAMPLE = 7,
17+
}

0 commit comments

Comments
 (0)