Skip to content

Commit 0654a8e

Browse files
committed
Add d3d11on12 bindings
1 parent 93f987a commit 0654a8e

11 files changed

+6349
-6
lines changed

build/cache/d3d11.json.gz

3.52 KB
Binary file not shown.

generator.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@
273273
"CL_DRIVER_UUID_KHR": "CL_DEVICE_DRIVER_UUID_KHR",
274274

275275
"CL_PRINTF_CALLBACK_ARM": "CL_CONTEXT_PRINTF_CALLBACK_ARM",
276-
"CL_PRINTF_BUFFERSIZE_ARM": "CL_CONTEXT_PRINTF_BUFFERSIZE_ARM",
276+
"CL_PRINTF_BUFFERSIZE_ARM": "CL_CONTEXT_PRINTF_BUFFERSIZE_ARM"
277277
},
278278
"bakery": {
279279
"profileNames": [
@@ -317,7 +317,7 @@
317317
},
318318
{
319319
"cl_icd_dispatch": "void",
320-
"cl_svm_mem_flags": "cl_mem_flags",
320+
"cl_svm_mem_flags": "cl_mem_flags"
321321
},
322322
{
323323
"$include.commonTypeMap": "build/csharp_typemap.json",
@@ -864,7 +864,7 @@
864864

865865
],
866866
"classes": {
867-
"d3dcommon.h": "[Core]D3DCommon",
867+
"d3dcommon.h": "[Core]D3DCommon"
868868
}
869869
},
870870
"exclude": [
@@ -1294,7 +1294,8 @@
12941294
"$windowsSdkDir/Include/$windowsSdkVersion/um/d3d11_4.h",
12951295
"$windowsSdkDir/Include/$windowsSdkVersion/um/d3d11shader.h",
12961296
"$windowsSdkDir/Include/$windowsSdkVersion/um/d3d11shadertracing.h",
1297-
"$windowsSdkDir/Include/$windowsSdkVersion/um/d3d11sdklayers.h"
1297+
"$windowsSdkDir/Include/$windowsSdkVersion/um/d3d11sdklayers.h",
1298+
"$windowsSdkDir/Include/$windowsSdkVersion/um/d3d11on12.h"
12981299
],
12991300
"mode": "Clang",
13001301
"cacheDir": "build/cache",
@@ -1328,7 +1329,8 @@
13281329
"d3d11_4.h": "[Core]D3D11",
13291330
"d3d11shader.h": "[Core]D3D11",
13301331
"d3d11shadertracing.h": "[Core]D3D11",
1331-
"d3d11sdklayers.h": "[Core]D3D11"
1332+
"d3d11sdklayers.h": "[Core]D3D11",
1333+
"d3d11on12.h": "[Core]D3D11"
13321334
},
13331335
"comRefs": [
13341336
"Silk.NET.DXGI.IDXGIAdapter",
@@ -1353,7 +1355,8 @@
13531355
"d3d11_4",
13541356
"d3d11shader",
13551357
"d3d11shadertracing",
1356-
"d3d11sdklayers"
1358+
"d3d11sdklayers",
1359+
"d3d11on12"
13571360
]
13581361
},
13591362
"output": {

src/Microsoft/Silk.NET.Direct3D11/D3D11.gen.cs

Lines changed: 800 additions & 0 deletions
Large diffs are not rendered by default.

src/Microsoft/Silk.NET.Direct3D11/D3D11Overloads.gen.cs

Lines changed: 448 additions & 0 deletions
Large diffs are not rendered by default.

src/Microsoft/Silk.NET.Direct3D11/Structs/D3D11On12Device1VtblExtensions.gen.cs

Lines changed: 725 additions & 0 deletions
Large diffs are not rendered by default.

src/Microsoft/Silk.NET.Direct3D11/Structs/D3D11On12Device2VtblExtensions.gen.cs

Lines changed: 1385 additions & 0 deletions
Large diffs are not rendered by default.

src/Microsoft/Silk.NET.Direct3D11/Structs/D3D11On12DeviceVtblExtensions.gen.cs

Lines changed: 643 additions & 0 deletions
Large diffs are not rendered by default.

src/Microsoft/Silk.NET.Direct3D11/Structs/ID3D11On12Device.gen.cs

Lines changed: 542 additions & 0 deletions
Large diffs are not rendered by default.

src/Microsoft/Silk.NET.Direct3D11/Structs/ID3D11On12Device1.gen.cs

Lines changed: 611 additions & 0 deletions
Large diffs are not rendered by default.

src/Microsoft/Silk.NET.Direct3D11/Structs/ID3D11On12Device2.gen.cs

Lines changed: 1114 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
5+
using System;
6+
using System.Runtime.InteropServices;
7+
using System.Runtime.CompilerServices;
8+
using System.Text;
9+
using Silk.NET.Core;
10+
using Silk.NET.Core.Native;
11+
using Silk.NET.Core.Attributes;
12+
using Silk.NET.Core.Contexts;
13+
using Silk.NET.Core.Loader;
14+
15+
#pragma warning disable 1591
16+
17+
namespace Silk.NET.Direct3D11
18+
{
19+
[NativeName("Name", "D3D11_RESOURCE_FLAGS")]
20+
public unsafe partial struct ResourceFlags
21+
{
22+
public ResourceFlags
23+
(
24+
uint? bindFlags = null,
25+
uint? miscFlags = null,
26+
uint? cPUAccessFlags = null,
27+
uint? structureByteStride = null
28+
) : this()
29+
{
30+
if (bindFlags is not null)
31+
{
32+
BindFlags = bindFlags.Value;
33+
}
34+
35+
if (miscFlags is not null)
36+
{
37+
MiscFlags = miscFlags.Value;
38+
}
39+
40+
if (cPUAccessFlags is not null)
41+
{
42+
CPUAccessFlags = cPUAccessFlags.Value;
43+
}
44+
45+
if (structureByteStride is not null)
46+
{
47+
StructureByteStride = structureByteStride.Value;
48+
}
49+
}
50+
51+
52+
[NativeName("Type", "UINT")]
53+
[NativeName("Type.Name", "UINT")]
54+
[NativeName("Name", "BindFlags")]
55+
public uint BindFlags;
56+
57+
[NativeName("Type", "UINT")]
58+
[NativeName("Type.Name", "UINT")]
59+
[NativeName("Name", "MiscFlags")]
60+
public uint MiscFlags;
61+
62+
[NativeName("Type", "UINT")]
63+
[NativeName("Type.Name", "UINT")]
64+
[NativeName("Name", "CPUAccessFlags")]
65+
public uint CPUAccessFlags;
66+
67+
[NativeName("Type", "UINT")]
68+
[NativeName("Type.Name", "UINT")]
69+
[NativeName("Name", "StructureByteStride")]
70+
public uint StructureByteStride;
71+
}
72+
}

0 commit comments

Comments
 (0)