Skip to content

Commit 92faac3

Browse files
authored
Update WebGPU, Dawn, and WGPU (#1318)
1 parent 1227a3c commit 92faac3

23 files changed

+2227
-1865
lines changed

build/cache/webgpu.json.gz

0 Bytes
Binary file not shown.

build/submodules/dawn

Submodule dawn updated 5947 files

build/submodules/webgpu-headers

src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Dawn.gen.cs

Lines changed: 288 additions & 278 deletions
Large diffs are not rendered by default.

src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/DawnOverloads.gen.cs

Lines changed: 202 additions & 194 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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.WebGPU.Extensions.Dawn
18+
{
19+
[NativeName("Name", "WGPUDawnShaderModuleSPIRVOptionsDescriptor")]
20+
public unsafe partial struct DawnShaderModuleSPIRVOptionsDescriptor
21+
{
22+
public DawnShaderModuleSPIRVOptionsDescriptor
23+
(
24+
ChainedStruct? chain = null,
25+
Silk.NET.Core.Bool32? allowNonUniformDerivatives = null
26+
) : this()
27+
{
28+
if (chain is not null)
29+
{
30+
Chain = chain.Value;
31+
}
32+
33+
if (allowNonUniformDerivatives is not null)
34+
{
35+
AllowNonUniformDerivatives = allowNonUniformDerivatives.Value;
36+
}
37+
}
38+
39+
40+
[NativeName("Type", "WGPUChainedStruct")]
41+
[NativeName("Type.Name", "WGPUChainedStruct")]
42+
[NativeName("Name", "chain")]
43+
public ChainedStruct Chain;
44+
45+
[NativeName("Type", "bool")]
46+
[NativeName("Type.Name", "bool")]
47+
[NativeName("Name", "allowNonUniformDerivatives")]
48+
public Silk.NET.Core.Bool32 AllowNonUniformDerivatives;
49+
}
50+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
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.WebGPU.Extensions.Dawn
18+
{
19+
[NativeName("Name", "WGPUDawnTogglesDescriptor")]
20+
public unsafe partial struct DawnTogglesDescriptor
21+
{
22+
public DawnTogglesDescriptor
23+
(
24+
ChainedStruct? chain = null,
25+
uint? enabledTogglesCount = null,
26+
byte** enabledToggles = null,
27+
uint? disabledTogglesCount = null,
28+
byte** disabledToggles = null
29+
) : this()
30+
{
31+
if (chain is not null)
32+
{
33+
Chain = chain.Value;
34+
}
35+
36+
if (enabledTogglesCount is not null)
37+
{
38+
EnabledTogglesCount = enabledTogglesCount.Value;
39+
}
40+
41+
if (enabledToggles is not null)
42+
{
43+
EnabledToggles = enabledToggles;
44+
}
45+
46+
if (disabledTogglesCount is not null)
47+
{
48+
DisabledTogglesCount = disabledTogglesCount.Value;
49+
}
50+
51+
if (disabledToggles is not null)
52+
{
53+
DisabledToggles = disabledToggles;
54+
}
55+
}
56+
57+
58+
[NativeName("Type", "WGPUChainedStruct")]
59+
[NativeName("Type.Name", "WGPUChainedStruct")]
60+
[NativeName("Name", "chain")]
61+
public ChainedStruct Chain;
62+
63+
[NativeName("Type", "uint32_t")]
64+
[NativeName("Type.Name", "uint32_t")]
65+
[NativeName("Name", "enabledTogglesCount")]
66+
public uint EnabledTogglesCount;
67+
68+
[NativeName("Type", "const char *const *")]
69+
[NativeName("Type.Name", "const char *const *")]
70+
[NativeName("Name", "enabledToggles")]
71+
public byte** EnabledToggles;
72+
73+
[NativeName("Type", "uint32_t")]
74+
[NativeName("Type.Name", "uint32_t")]
75+
[NativeName("Name", "disabledTogglesCount")]
76+
public uint DisabledTogglesCount;
77+
78+
[NativeName("Type", "const char *const *")]
79+
[NativeName("Type.Name", "const char *const *")]
80+
[NativeName("Name", "disabledToggles")]
81+
public byte** DisabledToggles;
82+
}
83+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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 Silk.NET.Core.Attributes;
7+
8+
#pragma warning disable 1591
9+
10+
namespace Silk.NET.WebGPU.Extensions.WGPU
11+
{
12+
[Flags]
13+
[NativeName("Name", "WGPUCompositeAlphaMode")]
14+
public enum CompositeAlphaMode : int
15+
{
16+
[NativeName("Name", "")]
17+
None = 0,
18+
[NativeName("Name", "WGPUCompositeAlphaMode_Auto")]
19+
Auto = 0x0,
20+
[NativeName("Name", "WGPUCompositeAlphaMode_Opaque")]
21+
Opaque = 0x1,
22+
[NativeName("Name", "WGPUCompositeAlphaMode_PreMultiplied")]
23+
PreMultiplied = 0x2,
24+
[NativeName("Name", "WGPUCompositeAlphaMode_PostMultiplied")]
25+
PostMultiplied = 0x3,
26+
[NativeName("Name", "WGPUCompositeAlphaMode_Inherit")]
27+
Inherit = 0x4,
28+
[NativeName("Name", "WGPUCompositeAlphaMode_Force32")]
29+
Force32 = 0x7FFFFFFF,
30+
}
31+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 Silk.NET.Core.Attributes;
7+
8+
#pragma warning disable 1591
9+
10+
namespace Silk.NET.WebGPU.Extensions.WGPU
11+
{
12+
[Flags]
13+
[NativeName("Name", "WGPUDx12Compiler")]
14+
public enum Dx12Compiler : int
15+
{
16+
[NativeName("Name", "")]
17+
None = 0,
18+
[NativeName("Name", "WGPUDx12Compiler_Undefined")]
19+
Undefined = 0x0,
20+
[NativeName("Name", "WGPUDx12Compiler_Fxc")]
21+
Fxc = 0x1,
22+
[NativeName("Name", "WGPUDx12Compiler_Dxc")]
23+
Dxc = 0x2,
24+
[NativeName("Name", "WGPUDx12Compiler_Force32")]
25+
Force32 = 0x7FFFFFFF,
26+
}
27+
}

0 commit comments

Comments
 (0)