diff --git a/.gitmodules b/.gitmodules index 39706d6a67..5ded8e5fac 100644 --- a/.gitmodules +++ b/.gitmodules @@ -19,3 +19,12 @@ [submodule "build/submodules/Assimp"] path = build/submodules/Assimp url = https://github.com/assimp/assimp +[submodule "build/submodules/webgpu-headers"] + path = build/submodules/webgpu-headers + url = https://github.com/webgpu-native/webgpu-headers/ +[submodule "build/submodules/wgpu-native"] + path = build/submodules/wgpu-native + url = https://github.com/gfx-rs/wgpu-native +[submodule "build/submodules/dawn"] + path = build/submodules/dawn + url = https://github.com/Beyley/dawn diff --git a/Silk.NET.sln b/Silk.NET.sln index 8026164f27..8c21b556f7 100644 --- a/Silk.NET.sln +++ b/Silk.NET.sln @@ -502,6 +502,24 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Direct3D11 Tutorials", "Dir EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tutorial 1.2 - Hello quad", "examples\CSharp\Direct3D11 Tutorials\Tutorial 1.2 - Hello quad\Tutorial 1.2 - Hello quad.csproj", "{F86248D7-5012-4820-ADBE-BCE8B701581D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebGPUTest", "src\Lab\Experiments\WebGPUTest\WebGPUTest.csproj", "{534FCB74-0E82-42AF-AF94-48EE634F37A8}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WebGPU", "WebGPU", "{AA6EDF22-8128-476C-97E0-0CEA4689624E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.WebGPU", "src\WebGPU\Silk.NET.WebGPU\Silk.NET.WebGPU.csproj", "{3FA488D6-239F-4509-A7F9-5CFE6B2517CD}" +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Extensions", "Extensions", "{D218E3C8-44C7-472F-B147-3C9DA8B0C2EC}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.WebGPU.Extensions.WGPU", "src\WebGPU\Extensions\Silk.NET.WebGPU.Extensions.WGPU\Silk.NET.WebGPU.Extensions.WGPU.csproj", "{C66E285B-4DED-46FD-95A9-7B376C680412}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebGPUTriangle", "src\Lab\Experiments\WebGPUTriangle\WebGPUTriangle.csproj", "{1F16CA6E-9A7E-452E-BE37-1201E506B661}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.WebGPU.Extensions.Dawn", "src\WebGPU\Extensions\Silk.NET.WebGPU.Extensions.Dawn\Silk.NET.WebGPU.Extensions.Dawn.csproj", "{3DADBCD8-5C5E-487C-8616-55A56BC351EF}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Silk.NET.WebGPU.Extensions.Disposal", "src\WebGPU\Extensions\Silk.NET.WebGPU.Extensions.Disposal\Silk.NET.WebGPU.Extensions.Disposal.csproj", "{1314FEAF-71F7-42A8-881F-091384CE601B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebGPUTexturedQuad", "src\Lab\Experiments\WebGPUTexturedQuad\WebGPUTexturedQuad.csproj", "{5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -3031,6 +3049,90 @@ Global {F86248D7-5012-4820-ADBE-BCE8B701581D}.Release|x64.Build.0 = Release|Any CPU {F86248D7-5012-4820-ADBE-BCE8B701581D}.Release|x86.ActiveCfg = Release|Any CPU {F86248D7-5012-4820-ADBE-BCE8B701581D}.Release|x86.Build.0 = Release|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Debug|Any CPU.Build.0 = Debug|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Debug|x64.ActiveCfg = Debug|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Debug|x64.Build.0 = Debug|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Debug|x86.ActiveCfg = Debug|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Debug|x86.Build.0 = Debug|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Release|Any CPU.ActiveCfg = Release|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Release|Any CPU.Build.0 = Release|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Release|x64.ActiveCfg = Release|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Release|x64.Build.0 = Release|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Release|x86.ActiveCfg = Release|Any CPU + {534FCB74-0E82-42AF-AF94-48EE634F37A8}.Release|x86.Build.0 = Release|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Debug|x64.ActiveCfg = Debug|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Debug|x64.Build.0 = Debug|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Debug|x86.ActiveCfg = Debug|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Debug|x86.Build.0 = Debug|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Release|Any CPU.Build.0 = Release|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Release|x64.ActiveCfg = Release|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Release|x64.Build.0 = Release|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Release|x86.ActiveCfg = Release|Any CPU + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD}.Release|x86.Build.0 = Release|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Debug|x64.ActiveCfg = Debug|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Debug|x64.Build.0 = Debug|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Debug|x86.ActiveCfg = Debug|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Debug|x86.Build.0 = Debug|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Release|Any CPU.Build.0 = Release|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Release|x64.ActiveCfg = Release|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Release|x64.Build.0 = Release|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Release|x86.ActiveCfg = Release|Any CPU + {C66E285B-4DED-46FD-95A9-7B376C680412}.Release|x86.Build.0 = Release|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Debug|x64.ActiveCfg = Debug|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Debug|x64.Build.0 = Debug|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Debug|x86.ActiveCfg = Debug|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Debug|x86.Build.0 = Debug|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Release|Any CPU.Build.0 = Release|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Release|x64.ActiveCfg = Release|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Release|x64.Build.0 = Release|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Release|x86.ActiveCfg = Release|Any CPU + {1F16CA6E-9A7E-452E-BE37-1201E506B661}.Release|x86.Build.0 = Release|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Debug|x64.ActiveCfg = Debug|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Debug|x64.Build.0 = Debug|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Debug|x86.ActiveCfg = Debug|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Debug|x86.Build.0 = Debug|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Release|Any CPU.Build.0 = Release|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Release|x64.ActiveCfg = Release|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Release|x64.Build.0 = Release|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Release|x86.ActiveCfg = Release|Any CPU + {3DADBCD8-5C5E-487C-8616-55A56BC351EF}.Release|x86.Build.0 = Release|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Debug|x64.ActiveCfg = Debug|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Debug|x64.Build.0 = Debug|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Debug|x86.ActiveCfg = Debug|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Debug|x86.Build.0 = Debug|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Release|Any CPU.Build.0 = Release|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Release|x64.ActiveCfg = Release|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Release|x64.Build.0 = Release|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Release|x86.ActiveCfg = Release|Any CPU + {1314FEAF-71F7-42A8-881F-091384CE601B}.Release|x86.Build.0 = Release|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Debug|x64.ActiveCfg = Debug|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Debug|x64.Build.0 = Debug|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Debug|x86.ActiveCfg = Debug|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Debug|x86.Build.0 = Debug|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Release|Any CPU.Build.0 = Release|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Release|x64.ActiveCfg = Release|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Release|x64.Build.0 = Release|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Release|x86.ActiveCfg = Release|Any CPU + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -3274,6 +3376,15 @@ Global {322DAAC0-567A-43C9-BFE1-D3C92B5573DB} = {F2CF5D32-4B41-425E-B229-8FFC48F88063} {5CED5BE9-5348-4AFD-AF34-147F81F8C9C6} = {6842A2C6-5C7B-42DD-9825-0EDE91BFEBF7} {F86248D7-5012-4820-ADBE-BCE8B701581D} = {5CED5BE9-5348-4AFD-AF34-147F81F8C9C6} + {534FCB74-0E82-42AF-AF94-48EE634F37A8} = {39B598E9-44BA-4A61-A1BB-7C543734DBA6} + {AA6EDF22-8128-476C-97E0-0CEA4689624E} = {16AFCF73-8CC1-4B5D-8969-A90F468DC6D5} + {3FA488D6-239F-4509-A7F9-5CFE6B2517CD} = {AA6EDF22-8128-476C-97E0-0CEA4689624E} + {D218E3C8-44C7-472F-B147-3C9DA8B0C2EC} = {AA6EDF22-8128-476C-97E0-0CEA4689624E} + {C66E285B-4DED-46FD-95A9-7B376C680412} = {D218E3C8-44C7-472F-B147-3C9DA8B0C2EC} + {1F16CA6E-9A7E-452E-BE37-1201E506B661} = {39B598E9-44BA-4A61-A1BB-7C543734DBA6} + {3DADBCD8-5C5E-487C-8616-55A56BC351EF} = {D218E3C8-44C7-472F-B147-3C9DA8B0C2EC} + {1314FEAF-71F7-42A8-881F-091384CE601B} = {D218E3C8-44C7-472F-B147-3C9DA8B0C2EC} + {5DD2A122-34CB-45B9-8D89-42DB5CE9FD17} = {39B598E9-44BA-4A61-A1BB-7C543734DBA6} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {F5273D7F-3334-48DF-94E3-41AE6816CD4D} diff --git a/build/cache/webgpu.json.gz b/build/cache/webgpu.json.gz new file mode 100644 index 0000000000..f16645ba24 Binary files /dev/null and b/build/cache/webgpu.json.gz differ diff --git a/build/submodules/dawn b/build/submodules/dawn new file mode 160000 index 0000000000..aac8c40ddb --- /dev/null +++ b/build/submodules/dawn @@ -0,0 +1 @@ +Subproject commit aac8c40ddb38818b4359ac23f1e5560ed3abbaf2 diff --git a/build/submodules/webgpu-headers b/build/submodules/webgpu-headers new file mode 160000 index 0000000000..fa1c6ab492 --- /dev/null +++ b/build/submodules/webgpu-headers @@ -0,0 +1 @@ +Subproject commit fa1c6ab4927ef1fa5731907b42b62ea93119866c diff --git a/build/submodules/wgpu-native b/build/submodules/wgpu-native new file mode 160000 index 0000000000..f3228dc9ad --- /dev/null +++ b/build/submodules/wgpu-native @@ -0,0 +1 @@ +Subproject commit f3228dc9ad19dc4cbe43eff65ec532e6f94f7e9f diff --git a/documentation/proposals/(Superseded) Proposal - Enhanced Input Events.md b/documentation/proposals/(Superseded) Proposal - Enhanced Input Events.md index 94c27e66c7..05f4aef453 100644 --- a/documentation/proposals/(Superseded) Proposal - Enhanced Input Events.md +++ b/documentation/proposals/(Superseded) Proposal - Enhanced Input Events.md @@ -1,168 +1,168 @@ -# Summary -Proposal for adding important missing functionality to input, as well as other enhancements. - -# Contributors -- ThomasMiz - -# Current Status -- [x] Proposed -- [x] Discussed with API Review Board (ARB) -- [ ] Approved -- [ ] Implemented - -# Design Decisions -- Event parameters will be turned into readonly structures to prevent long parameter lists in some cases and allow more parameters (such as deltas) to be added in the future without breaking. - -# Proposed API -The only API changes will be to the events presented by IMouse, IKeyboard and possibly other device interfaces. - -## Enums - -#### KeyModifiers -Based on [the modifier keys flag from GLFW](https://www.glfw.org/docs/latest/group__mods.html). -```cs -[Flags] -public enum KeyModifiers -{ - Shift = 1 << 0, - Control = 1 << 1, - Alt = 1 << 2, - Super = 1 << 3, - CapsLock = 1 << 4, - NumLock = 1 << 5 -} -``` - -## Structs - -#### KeyDownEvent -```cs -public readonly struct KeyDownEvent -{ - public IKeyboard Keyboard { get; } - public Key Key { get; } - public int KeyCode { get; } - public KeyModifiers Modifiers { get; } - public bool IsRepeat { get; } - - public KeyDownEvent(IKeyboard keyboard, Key key, int keyCode, KeyModifiers modifiers, bool isRepeat); -} -``` - -#### KeyUpEvent -```cs -public readonly struct KeyUpEvent -{ - public IKeyboard Keyboard { get; } - public Key Key { get; } - public int KeyCode { get; } - public KeyModifiers Modifiers { get; } - - public KeyUpEvent(IKeyboard keyboard, Key key, int keyCode, KeyModifiers modifiers); -} -``` - -#### KeyCharEvent -```cs -public readonly struct KeyCharEvent -{ - public IKeyboard Keyboard { get; } - public char Character { get; } - public int KeyCode { get; } - - public KeyCharEvent(IKeyboard keyboard, char character, int keyCode); -} -``` - -#### MouseMoveEvent -```cs -public readonly struct MouseMoveEvent -{ - public IMouse Mouse { get; } - public Vector2 Position { get; } - public Vector2 Delta { get; } - - public MouseMoveEvent(IMouse mouse, Vector2 position, Vector2 delta); -} -``` - -#### MouseButtonEvent -```cs -public readonly struct MouseButtonEvent -{ - public IMouse Mouse { get; } - public Vector2 Position { get; } - public MouseButton Button { get; } - public KeyModifiers Modifiers { get; } - - public MouseButtonEvent(IMouse mouse, Vector2 position, MouseButton button, KeyModifiers modifiers); -} -``` - -#### MouseScrollEvent -```cs -public readonly struct MouseScrollEvent -{ - public IMouse Mouse { get; } - public Vector2 Position { get; } - public Vector2 WheelPosition { get; } - public Vector2 Delta { get; } - - public MouseScrollEvent(IMouse mouse, Vector2 position, Vector2 wheelPosition, Vector2 delta); -} -``` - -#### MouseClickEvent -```cs -public readonly struct MouseClickEvent -{ - public IMouse Mouse { get; } - public Vector2 Position { get; } - public MouseButton Button { get; } - public KeyModifiers Modifiers { get; } - - public MouseClickEvent(IMouse mouse, Vector2 position, MouseButton button, KeyModifiers modifiers) -} -``` - -## Interface changes - -#### IKeyboard -```cs -public interface IKeyboard : IInputDevice -{ - // The old events get removed: - // event Action KeyDown; - // event Action KeyUp; - // event Action KeyChar; - - // KeyDown reports key down and key repeats - event Action KeyDown; - event Action KeyUp; - - event Action KeyChar; -} -``` - -#### IMouse -```cs -public interface IMouse : IInputDevice -{ - // The old events get removed: - // event Action MouseMove; - // event Action MouseDown; - // event Action MouseUp; - // event Action Scroll; - // event Action Click; - // event Action DoubleClick; - - event Action MouseMove; - event Action MouseDown; - event Action MouseUp; - event Action Scroll; - event Action Click; - event Action DoubleClick; -} -``` - -These changes can also be applied to other IDevices to keep consistency across our API. +# Summary +Proposal for adding important missing functionality to input, as well as other enhancements. + +# Contributors +- ThomasMiz + +# Current Status +- [x] Proposed +- [x] Discussed with API Review Board (ARB) +- [ ] Approved +- [ ] Implemented + +# Design Decisions +- Event parameters will be turned into readonly structures to prevent long parameter lists in some cases and allow more parameters (such as deltas) to be added in the future without breaking. + +# Proposed API +The only API changes will be to the events presented by IMouse, IKeyboard and possibly other device interfaces. + +## Enums + +#### KeyModifiers +Based on [the modifier keys flag from GLFW](https://www.glfw.org/docs/latest/group__mods.html). +```cs +[Flags] +public enum KeyModifiers +{ + Shift = 1 << 0, + Control = 1 << 1, + Alt = 1 << 2, + Super = 1 << 3, + CapsLock = 1 << 4, + NumLock = 1 << 5 +} +``` + +## Structs + +#### KeyDownEvent +```cs +public readonly struct KeyDownEvent +{ + public IKeyboard Keyboard { get; } + public Key Key { get; } + public int KeyCode { get; } + public KeyModifiers Modifiers { get; } + public bool IsRepeat { get; } + + public KeyDownEvent(IKeyboard keyboard, Key key, int keyCode, KeyModifiers modifiers, bool isRepeat); +} +``` + +#### KeyUpEvent +```cs +public readonly struct KeyUpEvent +{ + public IKeyboard Keyboard { get; } + public Key Key { get; } + public int KeyCode { get; } + public KeyModifiers Modifiers { get; } + + public KeyUpEvent(IKeyboard keyboard, Key key, int keyCode, KeyModifiers modifiers); +} +``` + +#### KeyCharEvent +```cs +public readonly struct KeyCharEvent +{ + public IKeyboard Keyboard { get; } + public char Character { get; } + public int KeyCode { get; } + + public KeyCharEvent(IKeyboard keyboard, char character, int keyCode); +} +``` + +#### MouseMoveEvent +```cs +public readonly struct MouseMoveEvent +{ + public IMouse Mouse { get; } + public Vector2 Position { get; } + public Vector2 Delta { get; } + + public MouseMoveEvent(IMouse mouse, Vector2 position, Vector2 delta); +} +``` + +#### MouseButtonEvent +```cs +public readonly struct MouseButtonEvent +{ + public IMouse Mouse { get; } + public Vector2 Position { get; } + public MouseButton Button { get; } + public KeyModifiers Modifiers { get; } + + public MouseButtonEvent(IMouse mouse, Vector2 position, MouseButton button, KeyModifiers modifiers); +} +``` + +#### MouseScrollEvent +```cs +public readonly struct MouseScrollEvent +{ + public IMouse Mouse { get; } + public Vector2 Position { get; } + public Vector2 WheelPosition { get; } + public Vector2 Delta { get; } + + public MouseScrollEvent(IMouse mouse, Vector2 position, Vector2 wheelPosition, Vector2 delta); +} +``` + +#### MouseClickEvent +```cs +public readonly struct MouseClickEvent +{ + public IMouse Mouse { get; } + public Vector2 Position { get; } + public MouseButton Button { get; } + public KeyModifiers Modifiers { get; } + + public MouseClickEvent(IMouse mouse, Vector2 position, MouseButton button, KeyModifiers modifiers) +} +``` + +## Interface changes + +#### IKeyboard +```cs +public interface IKeyboard : IInputDevice +{ + // The old events get removed: + // event Action KeyDown; + // event Action KeyUp; + // event Action KeyChar; + + // KeyDown reports key down and key repeats + event Action KeyDown; + event Action KeyUp; + + event Action KeyChar; +} +``` + +#### IMouse +```cs +public interface IMouse : IInputDevice +{ + // The old events get removed: + // event Action MouseMove; + // event Action MouseDown; + // event Action MouseUp; + // event Action Scroll; + // event Action Click; + // event Action DoubleClick; + + event Action MouseMove; + event Action MouseDown; + event Action MouseUp; + event Action Scroll; + event Action Click; + event Action DoubleClick; +} +``` + +These changes can also be applied to other IDevices to keep consistency across our API. diff --git a/examples/CSharp/OpenGL Demos/AndroidDemo/AndroidDemo.csproj b/examples/CSharp/OpenGL Demos/AndroidDemo/AndroidDemo.csproj index eef3aedb86..d938383f17 100644 --- a/examples/CSharp/OpenGL Demos/AndroidDemo/AndroidDemo.csproj +++ b/examples/CSharp/OpenGL Demos/AndroidDemo/AndroidDemo.csproj @@ -22,7 +22,7 @@ - + diff --git a/examples/CSharp/OpenGL Tutorials/Tutorial 1.4 - Textures/Tutorial 1.4 - Textures.csproj b/examples/CSharp/OpenGL Tutorials/Tutorial 1.4 - Textures/Tutorial 1.4 - Textures.csproj index 1b9f09ca9f..cae1611218 100644 --- a/examples/CSharp/OpenGL Tutorials/Tutorial 1.4 - Textures/Tutorial 1.4 - Textures.csproj +++ b/examples/CSharp/OpenGL Tutorials/Tutorial 1.4 - Textures/Tutorial 1.4 - Textures.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/CSharp/OpenGL Tutorials/Tutorial 1.5 - Transformations/Tutorial 1.5 - Transformations.csproj b/examples/CSharp/OpenGL Tutorials/Tutorial 1.5 - Transformations/Tutorial 1.5 - Transformations.csproj index 1b9f09ca9f..cae1611218 100644 --- a/examples/CSharp/OpenGL Tutorials/Tutorial 1.5 - Transformations/Tutorial 1.5 - Transformations.csproj +++ b/examples/CSharp/OpenGL Tutorials/Tutorial 1.5 - Transformations/Tutorial 1.5 - Transformations.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/CSharp/OpenGL Tutorials/Tutorial 2.1 - Co-ordinate Systems/Tutorial 2.1 - Co-ordinate Systems.csproj b/examples/CSharp/OpenGL Tutorials/Tutorial 2.1 - Co-ordinate Systems/Tutorial 2.1 - Co-ordinate Systems.csproj index 1b9f09ca9f..cae1611218 100644 --- a/examples/CSharp/OpenGL Tutorials/Tutorial 2.1 - Co-ordinate Systems/Tutorial 2.1 - Co-ordinate Systems.csproj +++ b/examples/CSharp/OpenGL Tutorials/Tutorial 2.1 - Co-ordinate Systems/Tutorial 2.1 - Co-ordinate Systems.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/CSharp/OpenGL Tutorials/Tutorial 2.2 - Camera/Tutorial 2.2 - Camera.csproj b/examples/CSharp/OpenGL Tutorials/Tutorial 2.2 - Camera/Tutorial 2.2 - Camera.csproj index 1b9f09ca9f..cae1611218 100644 --- a/examples/CSharp/OpenGL Tutorials/Tutorial 2.2 - Camera/Tutorial 2.2 - Camera.csproj +++ b/examples/CSharp/OpenGL Tutorials/Tutorial 2.2 - Camera/Tutorial 2.2 - Camera.csproj @@ -8,7 +8,7 @@ - + diff --git a/examples/CSharp/OpenGL Tutorials/Tutorial 3.5 - Lighting Maps/Tutorial 3.5 - Lighting Maps.csproj b/examples/CSharp/OpenGL Tutorials/Tutorial 3.5 - Lighting Maps/Tutorial 3.5 - Lighting Maps.csproj index 0fed96d759..58ce8adfbe 100644 --- a/examples/CSharp/OpenGL Tutorials/Tutorial 3.5 - Lighting Maps/Tutorial 3.5 - Lighting Maps.csproj +++ b/examples/CSharp/OpenGL Tutorials/Tutorial 3.5 - Lighting Maps/Tutorial 3.5 - Lighting Maps.csproj @@ -8,7 +8,7 @@ - + diff --git a/generator.json b/generator.json index bbef9026c1..e5e1444898 100644 --- a/generator.json +++ b/generator.json @@ -1911,6 +1911,194 @@ "$include.commonTypeMap": "build/csharp_typemap.json" } ] + }, + { + "profileName": "D2D1", + "sources": [ + "src/Microsoft/Silk.NET.Direct2D1/D2D1.h" + ], + "mode": "Clang", + "cacheDir": "build/cache", + "cacheKey": "d2d1", + "controlDescriptors": [ + "convert-windows-only", + "Currently disabled due to bakery bugs.", + "no-convert", + "no-bind" + ], + "converter": {}, + "prefix": "D2D1", + "clang": { + "args": [ + "--language=c++", + "--std=c++17", + "-m32", + "-Wno-expansion-to-defined", + "-Wno-ignored-attributes", + "-Wno-ignored-pragma-intrinsic", + "-Wno-nonportable-include-path", + "-Wno-pragma-pack", + "-I$windowsSdkIncludes", + "-Ibuild/include" + ], + "traverse": [ + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1effectauthor.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1effectauthor_1.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1effecthelpers.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1effects.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1effects_1.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1effects_2.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1helper.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1svg.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1_1.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1_1helper.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1_2.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1_2helper.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1_3.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2d1_3helper.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/d2dbasetypes.h", + "$windowsSdkDir/Include/$windowsSdkVersion/um/D2DErr.h" + ], + "classes": { + "D2D1.h": "[Core]D2D1" + } + }, + "exclude": [ + ], + "rename": { + }, + "bakery": { + "profileNames": [ + "D2D1" + ] + }, + "output": { + "mode": "Default", + "path": "src/Microsoft", + "licenseFile": "build/LICENSE_HEADER.txt", + "props": "build/props/bindings.props" + }, + "namespace": "Silk.NET.Direct2D1", + "extensionsNamespace": "Silk.NET.Direct2D1.Extensions", + "nameContainer": { + "linux-x64": "libd2d1.so", + "win-x64": "d2d1.dll", + "win-x86": "d2d1.dll", + "osx-x64": "libd2d1.dylib", + "android": "libd2d1.so", + "iOS": "__Internal", + "className": "D2D1LibraryNameContainer" + }, + "typeMaps": [ + { + "$include.dxTypemap": "build/dx_typemap.json", + "$include.commonTypeMap": "build/csharp_typemap.json" + } + ] + }, + { + "profileName": "webgpu", + "sources": [ + "build/submodules/webgpu-headers/webgpu.h", + "build/submodules/wgpu-native/ffi/wgpu.h", + "build/submodules/dawn/out/Debug/gen/include/dawn/dawn-webgpu.h" + ], + "mode": "Clang", + "cacheDir": "build/cache", + "cacheKey": "webgpu", + "controlDescriptors": [ + "convert-windows-only", + "no-obsolete-enum" + ], + "converter": {}, + "prefix": "wgpu", + "clang": { + "args": [ + "--language=c++", + "--std=c++17", + "-m64", + "-Wno-expansion-to-defined", + "-Wno-ignored-attributes", + "-Wno-ignored-pragma-intrinsic", + "-Wno-nonportable-include-path", + "-Wno-pragma-pack", + "-I$windowsSdkIncludes", + "-Ibuild/submodules/wgpu-native/ffi" + ], + "traverse": [ + "build/submodules/webgpu-headers/*.h", + "build/submodules/wgpu-native/*.h" + ], + "classes": { + "webgpu.h": "[Core]WebGPU", + "wgpu.h": "[WGPU:WebGPU]Wgpu", + "dawn-webgpu.h": "[Dawn:WebGPU]Dawn" + } + }, + "exclude": [ + + ], + "rename": { + "WGPUComputePipelineImpl": "ComputePipeline", + "WGPUAdapterImpl": "Adapter", + "WGPUBindGroupImpl": "BindGroup", + "WGPUBindGroupLayoutImpl": "BindGroupLayout", + "WGPUBufferImpl": "Buffer", + "WGPUCommandBufferImpl": "CommandBuffer", + "WGPUCommandEncoderImpl": "CommandEncoder", + "WGPUComputePassEncoderImpl": "ComputePassEncoder", + "WGPUDeviceImpl": "Device", + "WGPUInstanceImpl": "Instance", + "WGPUPipelineLayoutImpl": "PipelineLayout", + "WGPUQuerySetImpl": "QuerySet", + "WGPUQueueImpl": "Queue", + "WGPURenderBundleEncoderImpl": "RenderBundleEncoder", + "WGPURenderBundleImpl": "RenderBundle", + "WGPURenderPassEncoderImpl": "RenderPassEncoder", + "WGPURenderPipelineImpl": "RenderPipeline", + "WGPUSamplerImpl": "Sampler", + "WGPUShaderModuleImpl": "ShaderModule", + "WGPUSurfaceImpl": "Surface", + "WGPUSwapChainImpl": "SwapChain", + "WGPUTextureImpl": "Texture", + "WGPUTextureViewImpl": "TextureView" + }, + "bakery": { + "profileNames": [ + "webgpu", + "wgpu", + "dawn-webgpu" + ] + }, + "output": { + "mode": "Default", + "path": "src/WebGPU", + "licenseFile": "build/LICENSE_HEADER.txt", + "props": "build/props/bindings.props" + }, + "namespace": "Silk.NET.WebGPU", + "extensionsNamespace": "Silk.NET.WebGPU.Extensions", + "nameContainer": { + "linux-x64": "libwgpu.so", + "win-x64": "libwgpu.dll", + "win-x86": "libwgpu.dll", + "osx-x64": "libwgpu.dylib", + "android": "libwgpu.so", + "className": "WebGPULibraryNameContainer" + }, + "typeMaps": [ + { + "WGPUColorWriteMaskFlags": "Silk.NET.WebGPU.ColorWriteMask", + "WGPUBufferUsageFlags": "Silk.NET.WebGPU.BufferUsage", + "WGPUMapModeFlags": "Silk.NET.WebGPU.MapMode", + "WGPUShaderStageFlags": "Silk.NET.WebGPU.ShaderStage", + "WGPUTextureUsageFlags": "Silk.NET.WebGPU.TextureUsage" + }, + { + "$include.commonTypeMap": "build/csharp_typemap.json" + } + ] } ] } diff --git a/src/Core/Silk.NET.BuildTools/Baking/EnumPostProcessor.cs b/src/Core/Silk.NET.BuildTools/Baking/EnumPostProcessor.cs index aecf1257cf..5037d682c4 100644 --- a/src/Core/Silk.NET.BuildTools/Baking/EnumPostProcessor.cs +++ b/src/Core/Silk.NET.BuildTools/Baking/EnumPostProcessor.cs @@ -91,47 +91,53 @@ private static void StripCommonPrefix(Profile profile, BindTask task) if (prefix.Length > 0) { - @enum.Tokens.AddRange + var newEnums = @enum.Tokens.Select ( - @enum.Tokens.Select - ( - x => - { - var newName = Naming.Translate(x.NativeName[prefix.Length..], task.FunctionPrefix); - if (newName == x.Name) - { - return null; - } + x => + { + var newName = Naming.Translate(x.NativeName[prefix.Length..], task.FunctionPrefix); + if (newName == x.Name) + { + return null; + } - var attrs = x.Attributes.ToList(); - if (!x.Attributes.Any(y => y.Name is "Obsolete" or "System.Obsolete")) + var attrs = x.Attributes.ToList(); + if (!x.Attributes.Any(y => y.Name is "Obsolete" or "System.Obsolete")) + { + x.Attributes.Add + ( + new Attribute { - x.Attributes.Add - ( - new Attribute - { - Name = "Obsolete", - Arguments = new List - { - $"\"Deprecated in favour of \\\"{newName}\\\"\"" - } - } - ); + Name = "Obsolete", + Arguments = new List + { + $"\"Deprecated in favour of \\\"{newName}\\\"\"" + } } + ); + } - return new Token - { - Attributes = attrs, - Doc = x.Doc, - Name = newName, - NativeName = x.NativeName, - Value = x.Value - }; - } - ) - .Where(x => x is not null) - .ToList() - ); + return new Token + { + Attributes = attrs, + Doc = x.Doc, + Name = newName, + NativeName = x.NativeName, + Value = x.Value + }; + } + ) + .Where(x => x is not null) + .ToList(); + + if (task.Controls.Contains("no-obsolete-enum")) + { + @enum.Tokens = newEnums; + } + else + { + @enum.Tokens.AddRange(newEnums); + } } } } diff --git a/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs b/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs index 31b74c4805..906a580811 100644 --- a/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs +++ b/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs @@ -330,6 +330,13 @@ static string GetSignature(Function func) sw.WriteLine($" public const string ExtensionName = \"{key}\";"); foreach (var function in i.Functions) { + var coreProject = profile.Projects["Core"]; + + if (coreProject.Classes.Any(x => x.NativeApis.Any(x => x.Value.Functions.Any(x => x.NativeName == function.NativeName)))) + { + continue; + } + AddInjectionAttributes(function, task); if (!string.IsNullOrWhiteSpace(function.PreprocessorConditions)) @@ -383,6 +390,13 @@ static string GetSignature(Function func) foreach (var overload in Overloader.GetOverloads(i.Functions, profile.Projects["Core"], task.Task.OverloaderExclusions)) { + var coreProject = profile.Projects["Core"]; + + if (coreProject.Classes.Any(x => x.NativeApis.Any(x => x.Value.Functions.Any(x => x.NativeName == overload.Signature.NativeName)))) + { + continue; + } + var sw2u = overload.Signature.Kind == SignatureKind.PotentiallyConflictingOverload ? swOverloads ??= CreateOverloadsFile(folder, name, true) : sw; diff --git a/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs b/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs index 65df287266..2811014315 100644 --- a/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs +++ b/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs @@ -60,21 +60,37 @@ public static void Write(this Project project, string folder, Profile profile, B project.WriteProjectFile(folder, profile, task); + Project coreProject = profile.Projects["Core"]; + project.Structs.ForEach ( - x => x.WriteStruct - ( - GetFileName(x.Name, ".gen.cs", folder, ProfileWriter.StructsSubfolder), profile, project, task - ) - ); + x => + { + if (coreProject != project && coreProject.Structs.Any(y => y.NativeName == x.NativeName)) + { + return; + } + + x.WriteStruct + ( + GetFileName(x.Name, ".gen.cs", folder, ProfileWriter.StructsSubfolder), profile, project, task + ); + }); project.Enums.ForEach ( - x => x.WriteEnum - ( - GetFileName(x.Name, ".gen.cs", folder, ProfileWriter.EnumsSubfolder), profile, project, task - ) - ); + x => + { + if (coreProject != project && coreProject.Enums.Any(y => y.NativeName == x.NativeName)) + { + return; + } + + x.WriteEnum + ( + GetFileName(x.Name, ".gen.cs", folder, ProfileWriter.EnumsSubfolder), profile, project, task + ); + }); project.WriteMixedModeClasses(profile, folder, task); } diff --git a/src/Core/Silk.NET.BuildTools/Bind/StructWriter.cs b/src/Core/Silk.NET.BuildTools/Bind/StructWriter.cs index eb51fe71cd..f456032b3f 100644 --- a/src/Core/Silk.NET.BuildTools/Bind/StructWriter.cs +++ b/src/Core/Silk.NET.BuildTools/Bind/StructWriter.cs @@ -730,7 +730,8 @@ CallingConvention conv sw.WriteLine(); sw.WriteLine("#pragma warning disable 1591"); sw.WriteLine(); - sw.WriteLine($"namespace {state.Task.Namespace}{coreProject.Namespace}"); + var ns = project.IsRoot ? state.Task.Namespace : state.Task.ExtensionsNamespace; + sw.WriteLine($"namespace {ns}{project.Namespace}"); sw.WriteLine("{"); sw.WriteLine($" public unsafe readonly struct {pfnName} : IDisposable"); sw.WriteLine(" {"); diff --git a/src/Core/Silk.NET.BuildTools/Common/TypeMapper.cs b/src/Core/Silk.NET.BuildTools/Common/TypeMapper.cs index 37f3ccb0c6..89160bb5ea 100644 --- a/src/Core/Silk.NET.BuildTools/Common/TypeMapper.cs +++ b/src/Core/Silk.NET.BuildTools/Common/TypeMapper.cs @@ -35,12 +35,12 @@ public static void Map(Dictionary map, IEnumerable fun /// The map to use. /// The type to map. /// The mapped type. - public static Type MapOne(IEnumerable> maps, Type og) + public static Type MapOne(IEnumerable> maps, Type og, string ogN = null) { var type = og; foreach (var map in maps) { - type = MapOne(map, type); + type = MapOne(map, type, ogN); } return type; @@ -52,19 +52,23 @@ public static Type MapOne(IEnumerable> maps, Type og) /// The map to use. /// The type to map. /// The mapped type. - public static Type MapOne(Dictionary map, Type og) + public static Type MapOne(Dictionary map, Type og, string ogN = null) { var type = og; - if (map.ContainsKey(type.ToString())) + if (map.TryGetValue(type.ToString(), out var mapped)) { type = ParseTypeSignature ( - map[type.ToString()], type.OriginalName, type.OriginalGroup + mapped, type.OriginalName, type.OriginalGroup ); } - else if (map.ContainsKey(type.Name)) + else if (map.TryGetValue(type.Name, out mapped)) { - type.Name = map[type.Name]; + type.Name = mapped; + } + else if (ogN != null && map.TryGetValue(ogN, out mapped)) + { + type.Name = mapped; } if (og.FunctionPointerSignature is not null) @@ -121,7 +125,7 @@ public static void Map(Dictionary map, IEnumerable struc { foreach (var field in @struct.Fields) { - field.Type = MapOne(map, field.Type); + field.Type = MapOne(map, field.Type, field.NativeType); } for (var i = 0; i < @struct.ComBases.Count; i++) @@ -153,17 +157,17 @@ public static void Map(Dictionary map, IEnumerable con { foreach (var constant in constants) { - constant.Type = MapOne(map, constant.Type); + constant.Type = MapOne(map, constant.Type, constant.Type.OriginalName); } } public static void Map(Dictionary map, Function function) { - function.ReturnType = MapOne(map, function.ReturnType); + function.ReturnType = MapOne(map, function.ReturnType, function.ReturnType.OriginalName); foreach (var parameter in function.Parameters) { - parameter.Type = MapOne(map, parameter.Type); + parameter.Type = MapOne(map, parameter.Type, parameter.Type.OriginalName); } } diff --git a/src/Core/Silk.NET.BuildTools/Cpp/Clang.cs b/src/Core/Silk.NET.BuildTools/Cpp/Clang.cs index 657c99c25d..ae3c6634ac 100644 --- a/src/Core/Silk.NET.BuildTools/Cpp/Clang.cs +++ b/src/Core/Silk.NET.BuildTools/Cpp/Clang.cs @@ -202,14 +202,37 @@ static void WriteDiagnosticsThrowOnError(TranslationUnit unit) var destInfo = task.ClangOpts.ClassMappings[fileName]; var indexOfOpenSqBracket = destInfo.IndexOf('['); var indexOfCloseSqBracket = destInfo.LastIndexOf(']'); - var projectName = destInfo.Substring - (indexOfOpenSqBracket + 1, indexOfCloseSqBracket - indexOfOpenSqBracket - 1); - var className = destInfo.Substring(indexOfCloseSqBracket + 1); + var projectNameSplit = destInfo.Substring + (indexOfOpenSqBracket + 1, indexOfCloseSqBracket - indexOfOpenSqBracket - 1).Split(':'); + + if (projectNameSplit.Length == 0) + { + throw new ArgumentException("Missing project name!"); + } + + if (projectNameSplit.Length > 2) + { + throw new ArgumentException("Too many splits in the project name!"); + } + + var projectName = projectNameSplit[0]; + + var nativeApiSetName = destInfo.Substring(indexOfCloseSqBracket + 1); + if (projectName != "Core" && projectNameSplit.Length <= 1) + { + throw new InvalidOperationException("The core class name must be provided for extension projects. Example: \"[ProjectName:CoreClassName]ExtensionClassName\""); + } + + var className = projectNameSplit.Length > 1 + ? projectNameSplit[1] + : nativeApiSetName; var project = profile.Projects[projectName] = new Project { IsRoot = projectName == "Core", - Namespace = projectName == "Core" ? task.Namespace : $"{task.ExtensionsNamespace}.{projectName}", - ComRefs = task.ClangOpts.ComRefs ?? new HashSet() + Namespace = projectName == "Core" + ? string.Empty + : $".{projectName}", + ComRefs = task.ClangOpts.ComRefs ?? new HashSet(), }; if (projectName != "Core") @@ -227,7 +250,7 @@ static void WriteDiagnosticsThrowOnError(TranslationUnit unit) { ClassName = className, Constants = constants, - NativeApis = { [fileName] = new NativeApiSet { Name = "I" + className, Functions = functions } } + NativeApis = { [fileName] = new NativeApiSet { Name = "I" + nativeApiSetName, Functions = functions } } }; project.Structs = structs; project.Enums = enums; @@ -829,6 +852,11 @@ Type GetType(ClangSharp.Type type, out Count count, ref FlowDirection flow, out } else if (type is PointerType pointerType) { + if (pointerType.Handle.IsConstQualified || (pointerType.PointeeType.Handle.IsConstQualified && !pointerType.PointeeType.IsPointerType)) + { + flow = FlowDirection.In; + } + ret = GetType(pointerType.PointeeType, out _, ref flow, out _); ret.IndirectionLevels++; } diff --git a/src/Lab/Experiments/BlankWindow/BlankWindow.csproj b/src/Lab/Experiments/BlankWindow/BlankWindow.csproj index 2efeb1e949..66c14ebe28 100644 --- a/src/Lab/Experiments/BlankWindow/BlankWindow.csproj +++ b/src/Lab/Experiments/BlankWindow/BlankWindow.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/Lab/Experiments/CoreRTTest/CoreRTTest.csproj b/src/Lab/Experiments/CoreRTTest/CoreRTTest.csproj index 73168361d1..4db1d33b53 100644 --- a/src/Lab/Experiments/CoreRTTest/CoreRTTest.csproj +++ b/src/Lab/Experiments/CoreRTTest/CoreRTTest.csproj @@ -10,7 +10,7 @@ - + diff --git a/src/Lab/Experiments/CoreRTTest/Texture.cs b/src/Lab/Experiments/CoreRTTest/Texture.cs index 3e280e95c4..fd36a7f6c7 100644 --- a/src/Lab/Experiments/CoreRTTest/Texture.cs +++ b/src/Lab/Experiments/CoreRTTest/Texture.cs @@ -17,7 +17,10 @@ public unsafe Texture(GL gl, string path) Image img = (Image)Image.Load(path); img.Mutate(x => x.Flip(FlipMode.Vertical)); - fixed (void* data = &MemoryMarshal.GetReference(img.GetPixelRowSpan(0))) + Rgba32[] arr = new Rgba32[img.Width * img.Height]; + img.CopyPixelDataTo(arr); + + fixed (void* data = arr) { Load(gl, data, (uint)img.Width, (uint)img.Height); } diff --git a/src/Lab/Experiments/WebGPUTest/Program.cs b/src/Lab/Experiments/WebGPUTest/Program.cs new file mode 100644 index 0000000000..f0d030fd8b --- /dev/null +++ b/src/Lab/Experiments/WebGPUTest/Program.cs @@ -0,0 +1,226 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.Core.Native; +using Silk.NET.WebGPU; +using Silk.NET.WebGPU.Extensions.WGPU; +using Silk.NET.Windowing; + +namespace WebGPUTest; + +public static unsafe class Program +{ + public static Adapter* adapter; + public static Device* device; + public static void Main(string[] args) + { + uint[] numbers = { 1, 2, 3, 4 }; + var numbersSize = (uint) numbers.Length * sizeof(uint); + var numbersLength = (uint) numbers.Length; + + var wgpu = WebGPU.GetApi(); + + wgpu.TryGetDeviceExtension(null, out Wgpu wgpuSpecific); + + var requestAdapterOptions = new RequestAdapterOptions(); + wgpu.InstanceRequestAdapter(null, &requestAdapterOptions, new PfnRequestAdapterCallback(RequestAdapterCallback), null); + + var deviceDescriptor = new DeviceDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Device"), //TODO: free this + DefaultQueue = new QueueDescriptor(), + }; + var requiredLimits = stackalloc RequiredLimits[1]; + requiredLimits[0] = new RequiredLimits + { + Limits = new Limits + { + MaxBindGroups = 1 + } + }; + deviceDescriptor.RequiredLimits = requiredLimits; + + wgpu.AdapterRequestDevice(adapter, &deviceDescriptor, new PfnRequestDeviceCallback(RequestDeviceCallback), null); + + SetErrorCallback(wgpu); + + // ReSharper disable once InconsistentNaming + var shaderModuleWGSLDescriptor = new ShaderModuleWGSLDescriptor(); + shaderModuleWGSLDescriptor.Chain.SType = SType.ShaderModuleWgsldescriptor; + shaderModuleWGSLDescriptor.Chain.Next = null; + shaderModuleWGSLDescriptor.Code = (byte*) SilkMarshal.StringToPtr + ( + @"@group(0) +@binding(0) +var v_indices: array; // this is used as both input and output for convenience + +// The Collatz Conjecture states that for any integer n: +// If n is even, n = n/2 +// If n is odd, n = 3n+1 +// And repeat this process for each new n, you will always eventually reach 1. +// Though the conjecture has not been proven, no counterexample has ever been found. +// This function returns how many times this recurrence needs to be applied to reach 1. +fn collatz_iterations(n_base: u32) -> u32{ + var n: u32 = n_base; + var i: u32 = 0u; + loop { + if (n <= 1u) { + break; + } + if (n % 2u == 0u) { + n = n / 2u; + } + else { + // Overflow? (i.e. 3*n + 1 > 0xffffffffu?) + if (n >= 1431655765u) { // 0x55555555u + return 4294967295u; // 0xffffffffu + } + + n = 3u * n + 1u; + } + i = i + 1u; + } + return i; +} + +@compute +@workgroup_size(1) +fn main(@builtin(global_invocation_id) global_id: vec3) { + v_indices[global_id.x] = collatz_iterations(v_indices[global_id.x]); +}" + ); //TODO: free this + + var shaderModuleDescriptor = new ShaderModuleDescriptor + { + NextInChain = (ChainedStruct*) (&shaderModuleWGSLDescriptor), + Label = (byte*) SilkMarshal.StringToPtr("Test Compute Shader") //TODO: free this + }; + + var shader = wgpu.DeviceCreateShaderModule(device, shaderModuleDescriptor); + + var stagingBufferDescription = new BufferDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Staging Buffer"), //TODO: free this + Usage = BufferUsage.MapRead | BufferUsage.CopyDst, + Size = numbersSize, + MappedAtCreation = false + }; + var stagingBuffer = wgpu.DeviceCreateBuffer(device, stagingBufferDescription); + + var storageBufferDescription = new BufferDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Storage Buffer"), //TODO: free this + Usage = BufferUsage.Storage | BufferUsage.CopyDst | BufferUsage.CopySrc, + Size = numbersSize, + MappedAtCreation = false + }; + var storageBuffer = wgpu.DeviceCreateBuffer(device, storageBufferDescription); + + var computePipelineDescriptor = new ComputePipelineDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Compute Pipeline"), //TODO: free this + Layout = null, + Compute = new ProgrammableStageDescriptor + { + Module = shader, + EntryPoint = (byte*) SilkMarshal.StringToPtr("main") //TODO: free this + } + }; + var computePipeline = wgpu.DeviceCreateComputePipeline(device, computePipelineDescriptor); + + var bindGroupLayout = wgpu.ComputePipelineGetBindGroupLayout(computePipeline, 0); + + var bindGroupDescriptor = new BindGroupDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Bind Group"), //TODO: free this + Layout = bindGroupLayout + }; + + var entries = stackalloc BindGroupEntry[1]; + entries->Binding = 0; + entries->Buffer = storageBuffer; + entries->Offset = 0; + entries->Size = numbersSize; + + bindGroupDescriptor.Entries = entries; + bindGroupDescriptor.EntryCount = 1; + + var bindGroup = wgpu.DeviceCreateBindGroup(device, bindGroupDescriptor); + + var commandEncoderDescriptor = new CommandEncoderDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Command Encoder") //TODO: free this + }; + var encoder = wgpu.DeviceCreateCommandEncoder(device, commandEncoderDescriptor); + + var computePassDescriptor = new ComputePassDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Compute Pass") //TODO: free this + }; + var computePass = wgpu.CommandEncoderBeginComputePass(encoder, computePassDescriptor); + + wgpu.ComputePassEncoderSetPipeline(computePass, computePipeline); + wgpu.ComputePassEncoderSetBindGroup(computePass, 0, bindGroup, 0, null); + wgpu.ComputePassEncoderDispatchWorkgroups(computePass, numbersLength, 1, 1); + wgpu.ComputePassEncoderEnd(computePass); + wgpu.CommandEncoderCopyBufferToBuffer + ( + encoder, storageBuffer, 0, stagingBuffer, + 0, numbersSize + ); + + var queue = wgpu.DeviceGetQueue(device); + var commandBufferDescriptor = new CommandBufferDescriptor + { + Label = (byte*) SilkMarshal.StringToPtr("Command Buffer") //TODO: free this + }; + var cmdBuffer = wgpu.CommandEncoderFinish(encoder, commandBufferDescriptor); + + fixed (uint* numberPtr = numbers) + wgpu.QueueWriteBuffer(queue, storageBuffer, 0, numberPtr, numbersSize); + + wgpu.QueueSubmit(queue, 1, &cmdBuffer); + + wgpu.BufferMapAsync(stagingBuffer, MapMode.Read, 0, numbersSize, new PfnBufferMapCallback( + (arg0, data) => + { + Console.WriteLine($"status: {arg0}"); + + var times = (uint*) wgpu.BufferGetMappedRange(stagingBuffer, 0, numbersSize); ; + + Console.WriteLine($"Times: [{times[0]}, {times[1]}, {times[2]}, {times[3]}]"); + }), null); + + wgpuSpecific.DevicePoll(device, true, null); + wgpu.BufferUnmap(stagingBuffer); + } + + private static void ReadBufferMap(BufferMapAsyncStatus arg0, void* arg1) + { + + } + + private static void RequestDeviceCallback(RequestDeviceStatus arg0, Device* received, byte* arg2, void* arg3) + { + device = received; + } + + private static unsafe void RequestAdapterCallback(RequestAdapterStatus arg0, Adapter* received, byte* arg2, void* userdata) + { + adapter = received; + } + + private static void SetErrorCallback(WebGPU wgpu) + { + wgpu.DeviceSetUncapturedErrorCallback + ( + device, new PfnErrorCallback + ( + (arg0, b, @void) => + { + Console.WriteLine($"Error: {arg0} Message: {SilkMarshal.PtrToString((nint) b)}"); + } + ), null + ); + } +} diff --git a/src/Lab/Experiments/WebGPUTest/WebGPUTest.csproj b/src/Lab/Experiments/WebGPUTest/WebGPUTest.csproj new file mode 100644 index 0000000000..030d3ee6fb --- /dev/null +++ b/src/Lab/Experiments/WebGPUTest/WebGPUTest.csproj @@ -0,0 +1,20 @@ + + + + Exe + net6.0 + enable + enable + true + + + + + + + + + + + + diff --git a/src/Lab/Experiments/WebGPUTexturedQuad/Program.cs b/src/Lab/Experiments/WebGPUTexturedQuad/Program.cs new file mode 100644 index 0000000000..2c1fe874bc --- /dev/null +++ b/src/Lab/Experiments/WebGPUTexturedQuad/Program.cs @@ -0,0 +1,638 @@ +using System.Numerics; +using Silk.NET.Core.Native; +using Silk.NET.Maths; +using Silk.NET.WebGPU; +using Silk.NET.WebGPU.Extensions.Disposal; +using Silk.NET.WebGPU.Extensions.WGPU; +using Silk.NET.Windowing; +using SixLabors.ImageSharp; +using SixLabors.ImageSharp.PixelFormats; +using Buffer = Silk.NET.WebGPU.Buffer; +using Color = Silk.NET.WebGPU.Color; + +namespace WebGPUTexturedQuad; + +// ReSharper disable once InconsistentNaming +public static unsafe class WebGPUTexturedQuad +{ + public struct Vertex + { + public Vertex(Vector2 position, Vector2 texCoord) + { + Position = position; + TexCoord = texCoord; + } + + public Vector2 Position; + public Vector2 TexCoord; + } + + // ReSharper disable once InconsistentNaming + private static WebGPU wgpu = null!; + private static WebGPUDisposal _WebGpuDisposal = null!; + private static IWindow? _Window; + + private static Surface* _Surface; + private static Adapter* _Adapter; + private static Device* _Device; + private static ShaderModule* _Shader; + private static RenderPipeline* _Pipeline; + private static SwapChain* _SwapChain; + private static TextureFormat _SwapChainFormat; + + private static Buffer* _VertexBuffer; + private static ulong _VertexBufferSize; + + private static Texture* _Texture; + private static TextureView* _TextureView; + private static Sampler* _Sampler; + + private static BindGroup* _TextureBindGroup; + private static BindGroupLayout* _TextureSamplerBindGroupLayout; + + private static Buffer* _ProjectionMatrixBuffer; + private static BindGroupLayout* _ProjectionMatrixBindGroupLayout; + private static BindGroup* _ProjectionMatrixBindGroup; + + public static void Main(string[] args) + { + //Create window + var options = WindowOptions.Default; + options.API = GraphicsAPI.None; + options.Size = new Vector2D(800, 600); + options.FramesPerSecond = 60; + options.UpdatesPerSecond = 60; + options.Position = new Vector2D(0, 0); + options.Title = "WebGPU Textured Quad"; + options.IsVisible = true; + options.ShouldSwapAutomatically = false; + options.IsContextControlDisabled = true; + + _Window = Window.Create(options); + + _Window.Load += WindowOnLoad; + _Window.Closing += WindowClosing; + _Window.Update += WindowOnUpdate; + _Window.Render += WindowOnRender; + _Window.FramebufferResize += FramebufferResize; + + _Window.Run(); + } + + private static void WindowOnUpdate(double delta) {} + + private static void WindowOnLoad() + { + wgpu = WebGPU.GetApi(); + + _WebGpuDisposal = new WebGPUDisposal(wgpu); + + _Surface = _Window.CreateWebGPUSurface(wgpu); + + { //Get adapter + var requestAdapterOptions = new RequestAdapterOptions + { + CompatibleSurface = _Surface + }; + + wgpu.InstanceRequestAdapter + ( + null, + requestAdapterOptions, + new PfnRequestAdapterCallback((_, adapter1, _, _) => _Adapter = adapter1), + null + ); + + Console.WriteLine($"Got adapter {(nuint) _Adapter:X}"); + + var properties = new AdapterProperties(); + wgpu.AdapterGetProperties(_Adapter, &properties); + + Console.WriteLine($"Name: {SilkMarshal.PtrToString((nint) properties.Name)}, Vendor name: {SilkMarshal.PtrToString((nint) properties.VendorName)} backend: {properties.BackendType} Arch: {SilkMarshal.PtrToString((nint) properties.Architecture)}"); + } //Get adapter + + PrintAdapterFeatures(); + + { //Get device + var requiredLimits = stackalloc RequiredLimits[1]; + requiredLimits->Limits.MaxBindGroups = 2; + + var deviceDescriptor = new DeviceDescriptor + { + RequiredLimits = requiredLimits, + DefaultQueue = new QueueDescriptor() + }; + + wgpu.AdapterRequestDevice + ( + _Adapter, + deviceDescriptor, + new PfnRequestDeviceCallback((_, device1, _, _) => _Device = device1), + null + ); + + Console.WriteLine($"Got device {(nuint) _Device:X}"); + } //Get device + + wgpu.DeviceSetUncapturedErrorCallback(_Device, new PfnErrorCallback(UncapturedError), null); + wgpu.DeviceSetDeviceLostCallback(_Device, new PfnDeviceLostCallback(DeviceLost), null); + + { //Load shader + var wgslDescriptor = new ShaderModuleWGSLDescriptor + { + Code = (byte*) SilkMarshal.StringToPtr(File.ReadAllText("shader.wgsl")), + Chain = new ChainedStruct + { + SType = SType.ShaderModuleWgsldescriptor + } + }; + + var shaderModuleDescriptor = new ShaderModuleDescriptor + { + NextInChain = (ChainedStruct*) (&wgslDescriptor) + }; + + _Shader = wgpu.DeviceCreateShaderModule(_Device, shaderModuleDescriptor); + + Console.WriteLine($"Created shader {(nuint) _Shader:X}"); + } //Load shader + + _SwapChainFormat = wgpu.SurfaceGetPreferredFormat(_Surface, _Adapter); + + var vertexAttributes = stackalloc VertexAttribute[2]; + + vertexAttributes[0] = new VertexAttribute + { + Format = VertexFormat.Float32x2, + Offset = 0, + ShaderLocation = 0 + }; + vertexAttributes[1] = new VertexAttribute + { + Format = VertexFormat.Float32x2, + Offset = (ulong) sizeof(Vector2), + ShaderLocation = 1 + }; + + var vertexBufferLayout = new VertexBufferLayout + { + Attributes = vertexAttributes, + AttributeCount = 2, + StepMode = VertexStepMode.Vertex, + ArrayStride = (ulong) sizeof(Vertex) + }; + //Create vertex buffer layout + + { //Create texture and texture view + var image = Image.Load("silk.png"); + + var viewFormat = TextureFormat.Rgba8Unorm; + + var descriptor = new TextureDescriptor + { + Size = new Extent3D((uint) image.Width, (uint) image.Height, 1), + Format = TextureFormat.Rgba8Unorm, + Usage = TextureUsage.CopyDst | TextureUsage.TextureBinding, + MipLevelCount = 1, + SampleCount = 1, + Dimension = TextureDimension.TextureDimension2D, + ViewFormats = &viewFormat, + ViewFormatCount = 1 + }; + + _Texture = wgpu.DeviceCreateTexture(_Device, descriptor); + + var viewDescriptor = new TextureViewDescriptor + { + Format = TextureFormat.Rgba8Unorm, + Dimension = TextureViewDimension.TextureViewDimension2D, + Aspect = TextureAspect.None, + MipLevelCount = 1, + ArrayLayerCount = 1, + BaseArrayLayer = 0, + BaseMipLevel = 0 + }; + + _TextureView = wgpu.TextureCreateView(_Texture, viewDescriptor); + + var queue = wgpu.DeviceGetQueue(_Device); + + var commandEncoderDescriptor = new CommandEncoderDescriptor(); + + var commandEncoder = wgpu.DeviceCreateCommandEncoder(_Device, commandEncoderDescriptor); + + image.ProcessPixelRows + ( + x => + { + for (var i = 0; i < x.Height; i++) + { + var imageRow = x.GetRowSpan(i); + + var imageCopyTexture = new ImageCopyTexture + { + Texture = _Texture, + Aspect = TextureAspect.None, + MipLevel = 0, + Origin = new Origin3D(0, (uint) i, 0) + }; + + var layout = new TextureDataLayout + { + BytesPerRow = (uint) (x.Width * sizeof(Rgba32)), + RowsPerImage = (uint) x.Height + }; + // layout.Offset = layout.BytesPerRow * (uint) i; + + var extent = new Extent3D + { + Width = (uint) x.Width, + Height = 1, + DepthOrArrayLayers = 1 + }; + + fixed (void* dataPtr = imageRow) + wgpu.QueueWriteTexture(queue, imageCopyTexture, dataPtr, (nuint) (sizeof(Rgba32) * imageRow.Length), layout, extent); + } + } + ); + + var commandBuffer = wgpu.CommandEncoderFinish(commandEncoder, new CommandBufferDescriptor()); + + wgpu.QueueSubmit(queue, 1, &commandBuffer); + } //Create texture and texture view + + { //Create sampler + var descriptor = new SamplerDescriptor + { + Compare = CompareFunction.Undefined, + MipmapFilter = MipmapFilterMode.Linear, + MagFilter = FilterMode.Linear, + MinFilter = FilterMode.Linear + }; + + _Sampler = wgpu.DeviceCreateSampler(_Device, descriptor); + } //Create sampler + + { //Create bind group for sampler and textureview + var entries = stackalloc BindGroupLayoutEntry[2]; + entries[0] = new BindGroupLayoutEntry + { + Binding = 0, + Texture = new TextureBindingLayout + { + Multisampled = false, + SampleType = TextureSampleType.Float, + ViewDimension = TextureViewDimension.TextureViewDimension2D + }, + Visibility = ShaderStage.Fragment + }; + entries[1] = new BindGroupLayoutEntry + { + Binding = 1, + Sampler = new SamplerBindingLayout + { + Type = SamplerBindingType.Filtering + }, + Visibility = ShaderStage.Fragment + }; + + var layoutDescriptor = new BindGroupLayoutDescriptor + { + Entries = entries, + EntryCount = 2 + }; + + _TextureSamplerBindGroupLayout = wgpu.DeviceCreateBindGroupLayout(_Device, layoutDescriptor); + + var bindGroupEntries = stackalloc BindGroupEntry[2]; + bindGroupEntries[0] = new BindGroupEntry + { + Binding = 0, + TextureView = _TextureView + }; + bindGroupEntries[1] = new BindGroupEntry + { + Binding = 1, + Sampler = _Sampler + }; + + var descriptor = new BindGroupDescriptor + { + Entries = bindGroupEntries, + EntryCount = 2, + Layout = _TextureSamplerBindGroupLayout + }; + + _TextureBindGroup = wgpu.DeviceCreateBindGroup(_Device, descriptor); + } //Create bind group for sampler and texture view + + { //Create buffer to store projection matrix + var descriptor = new BufferDescriptor + { + Size = (ulong) sizeof(Matrix4x4), + Usage = BufferUsage.Uniform | BufferUsage.CopyDst, + MappedAtCreation = false + }; + + _ProjectionMatrixBuffer = wgpu.DeviceCreateBuffer(_Device, descriptor); + + UpdateProjectionMatrix(); + } //Create buffer to store projection matrix + + { //Create bind group for projection matrix + var entry = new BindGroupLayoutEntry + { + Binding = 0, + Buffer = new BufferBindingLayout + { + Type = BufferBindingType.Uniform, + MinBindingSize = (ulong) sizeof(Matrix4x4) + }, + Visibility = ShaderStage.Vertex, + }; + + _ProjectionMatrixBindGroupLayout = wgpu.DeviceCreateBindGroupLayout + ( + _Device, new BindGroupLayoutDescriptor + { + Entries = &entry, + EntryCount = 1 + } + ); + + var bindGroupEntry = new BindGroupEntry + { + Binding = 0, + Buffer = _ProjectionMatrixBuffer + }; + + _ProjectionMatrixBindGroup = wgpu.DeviceCreateBindGroup + ( + _Device, new BindGroupDescriptor + { + Entries = &bindGroupEntry, + EntryCount = 1, + Layout = _ProjectionMatrixBindGroupLayout + } + ); + } //Create bind group for projection matrix + + { //Create pipeline + var blendState = new BlendState + { + Color = new BlendComponent + { + SrcFactor = BlendFactor.SrcAlpha, + DstFactor = BlendFactor.OneMinusSrcAlpha, + Operation = BlendOperation.None + }, + Alpha = new BlendComponent + { + SrcFactor = BlendFactor.One, + DstFactor = BlendFactor.OneMinusSrcAlpha, + Operation = BlendOperation.Add + } + }; + + var colorTargetState = new ColorTargetState + { + Format = _SwapChainFormat, + Blend = &blendState, + WriteMask = ColorWriteMask.All + }; + + var fragmentState = new FragmentState + { + Module = _Shader, + TargetCount = 1, + Targets = &colorTargetState, + EntryPoint = (byte*) SilkMarshal.StringToPtr("fs_main") + }; + + var bindGroupLayouts = stackalloc BindGroupLayout*[2]; + bindGroupLayouts[0] = _TextureSamplerBindGroupLayout; + bindGroupLayouts[1] = _ProjectionMatrixBindGroupLayout; + + var pipelineLayoutDescriptor = new PipelineLayoutDescriptor + { + BindGroupLayoutCount = 2, + BindGroupLayouts = bindGroupLayouts + }; + + var pipelineLayout = wgpu.DeviceCreatePipelineLayout(_Device, pipelineLayoutDescriptor); + + var renderPipelineDescriptor = new RenderPipelineDescriptor + { + Vertex = new VertexState + { + Module = _Shader, + EntryPoint = (byte*) SilkMarshal.StringToPtr("vs_main"), + Buffers = &vertexBufferLayout, + BufferCount = 1 + }, + Primitive = new PrimitiveState + { + Topology = PrimitiveTopology.TriangleList, + StripIndexFormat = IndexFormat.Undefined, + FrontFace = FrontFace.Ccw, + CullMode = CullMode.None + }, + Multisample = new MultisampleState + { + Count = 1, + Mask = ~0u, + AlphaToCoverageEnabled = false + }, + Fragment = &fragmentState, + DepthStencil = null, + Layout = pipelineLayout + }; + + _Pipeline = wgpu.DeviceCreateRenderPipeline(_Device, renderPipelineDescriptor); + + Console.WriteLine($"Created pipeline {(nuint) _Pipeline:X}"); + } //Create pipeline + + { //Create vertex buffer + var descriptor = new BufferDescriptor + { + Size = _VertexBufferSize = (ulong) (sizeof(Vertex) * 6), + Usage = BufferUsage.Vertex | BufferUsage.CopyDst + }; + + _VertexBuffer = wgpu.DeviceCreateBuffer(_Device, descriptor); + + //Get a queue + var queue = wgpu.DeviceGetQueue(_Device); + + var data = stackalloc Vertex[6]; + + const float xPos = 100; + const float yPos = 100; + const float width = 271; + const float height = 271; + + //Fill data with a quad with a CCW front face + data[0] = new Vertex(new Vector2(xPos, yPos), new Vector2(0, 0)); //Top left + data[1] = new Vertex(new Vector2(xPos + width, yPos), new Vector2(1, 0)); //Top right + data[2] = new Vertex(new Vector2(xPos + width, yPos + height), new Vector2(1, 1)); //Bottom right + data[3] = new Vertex(new Vector2(xPos, yPos), new Vector2(0, 0)); //Top left + data[4] = new Vertex(new Vector2(xPos + width, yPos + height), new Vector2(1, 1)); //Bottom right + data[5] = new Vertex(new Vector2(xPos, yPos + height), new Vector2(0, 1)); //Bottom left + + //Write the data to the buffer + wgpu.QueueWriteBuffer(queue, _VertexBuffer, 0, data, (nuint) _VertexBufferSize); + + //Create a new command encoder + var commandEncoder = wgpu.DeviceCreateCommandEncoder(_Device, new CommandEncoderDescriptor()); + + //Finish the command encoder + var commandBuffer = wgpu.CommandEncoderFinish(commandEncoder, new CommandBufferDescriptor()); + + wgpu.QueueSubmit(queue, 1, &commandBuffer); + } //Create vertex buffer + + CreateSwapchain(); + } + + private static void UpdateProjectionMatrix() + { + var queue = wgpu.DeviceGetQueue(_Device); + + var commandEncoder = wgpu.DeviceCreateCommandEncoder(_Device, new CommandEncoderDescriptor()); + + var projectionMatrix = Matrix4x4.CreateOrthographicOffCenter(0, _Window.Size.X, _Window.Size.Y, 0, 0, 1); + + wgpu.QueueWriteBuffer(queue, _ProjectionMatrixBuffer, 0, &projectionMatrix, (nuint) sizeof(Matrix4x4)); + + var commandBuffer = wgpu.CommandEncoderFinish(commandEncoder, new CommandBufferDescriptor()); + + wgpu.QueueSubmit(queue, 1, &commandBuffer); + } + + private static void WindowOnRender(double delta) + { + TextureView* nextTexture = null; + + for (var attempt = 0; attempt < 2; attempt++) + { + nextTexture = wgpu.SwapChainGetCurrentTextureView(_SwapChain); + + if (attempt == 0 && nextTexture == null) + { + Console.WriteLine("wgpu.SwapChainGetCurrentTextureView() failed; trying to create a new swap chain...\n"); + CreateSwapchain(); + continue; + } + + break; + } + + if (nextTexture == null) + { + Console.WriteLine("wgpu.SwapChainGetCurrentTextureView() failed after multiple attempts; giving up.\n"); + return; + } + + var encoder = wgpu.DeviceCreateCommandEncoder(_Device, new CommandEncoderDescriptor()); + + var colorAttachment = new RenderPassColorAttachment + { + View = nextTexture, + ResolveTarget = null, + LoadOp = LoadOp.Clear, + StoreOp = StoreOp.Store, + ClearValue = new Color + { + R = 0, + G = 1, + B = 0, + A = 1 + } + }; + + var renderPassDescriptor = new RenderPassDescriptor + { + ColorAttachments = &colorAttachment, + ColorAttachmentCount = 1, + DepthStencilAttachment = null + }; + + var renderPass = wgpu.CommandEncoderBeginRenderPass(encoder, renderPassDescriptor); + + wgpu.RenderPassEncoderSetPipeline(renderPass, _Pipeline); + wgpu.RenderPassEncoderSetBindGroup(renderPass, 0, _TextureBindGroup, 0, null); + wgpu.RenderPassEncoderSetBindGroup(renderPass, 1, _ProjectionMatrixBindGroup, 0, null); + wgpu.RenderPassEncoderSetVertexBuffer(renderPass, 0, _VertexBuffer, 0, _VertexBufferSize); + wgpu.RenderPassEncoderDraw(renderPass, 6, 1, 0, 0); + + wgpu.RenderPassEncoderEnd(renderPass); + _WebGpuDisposal.Dispose(nextTexture); + + var queue = wgpu.DeviceGetQueue(_Device); + + var commandBuffer = wgpu.CommandEncoderFinish(encoder, new CommandBufferDescriptor()); + + wgpu.QueueSubmit(queue, 1, &commandBuffer); + wgpu.SwapChainPresent(_SwapChain); + _Window.SwapBuffers(); + } + + private static void WindowClosing() + { + _WebGpuDisposal.Dispose(_Shader); + _WebGpuDisposal.Dispose(_Pipeline); + _WebGpuDisposal.Dispose(_Device); + _WebGpuDisposal.Dispose(_Adapter); + _WebGpuDisposal.Dispose(_Surface); + + wgpu.Dispose(); + } + + private static void FramebufferResize(Vector2D obj) + { + CreateSwapchain(); + UpdateProjectionMatrix(); + } + + private static void CreateSwapchain() + { + var swapChainDescriptor = new SwapChainDescriptor + { + Usage = TextureUsage.RenderAttachment, + Format = _SwapChainFormat, + Width = (uint) _Window.FramebufferSize.X, + Height = (uint) _Window.FramebufferSize.Y, + PresentMode = PresentMode.Fifo + }; + + _SwapChain = wgpu.DeviceCreateSwapChain(_Device, _Surface, swapChainDescriptor); + } + + private static void PrintAdapterFeatures() + { + var count = (int) wgpu.AdapterEnumerateFeatures(_Adapter, null); + + var features = stackalloc FeatureName[count]; + + wgpu.AdapterEnumerateFeatures(_Adapter, features); + + Console.WriteLine("Adapter features:"); + + for (var i = 0; i < count; i++) + { + Console.WriteLine($"\t{features[i]}"); + } + } + + private static void DeviceLost(DeviceLostReason arg0, byte* arg1, void* arg2) + { + Console.WriteLine($"Device lost! Reason: {arg0} Message: {SilkMarshal.PtrToString((nint) arg1)}"); + } + + private static void UncapturedError(ErrorType arg0, byte* arg1, void* arg2) + { + Console.WriteLine($"{arg0}: {SilkMarshal.PtrToString((nint) arg1)}"); + } +} diff --git a/src/Lab/Experiments/WebGPUTexturedQuad/WebGPUTexturedQuad.csproj b/src/Lab/Experiments/WebGPUTexturedQuad/WebGPUTexturedQuad.csproj new file mode 100644 index 0000000000..350ec80c81 --- /dev/null +++ b/src/Lab/Experiments/WebGPUTexturedQuad/WebGPUTexturedQuad.csproj @@ -0,0 +1,34 @@ + + + + Exe + net6.0 + enable + enable + true + 10 + WebGPUTexturedQuad + + + + + + + + + + + + + PreserveNewest + + + Always + + + + + + + + diff --git a/src/Lab/Experiments/WebGPUTexturedQuad/shader.wgsl b/src/Lab/Experiments/WebGPUTexturedQuad/shader.wgsl new file mode 100644 index 0000000000..9fa3f0c6a0 --- /dev/null +++ b/src/Lab/Experiments/WebGPUTexturedQuad/shader.wgsl @@ -0,0 +1,35 @@ +struct VertexOutputs { + //The position of the vertex + @builtin(position) position: vec4, + //The texture cooridnate of the vertex + @location(0) tex_coord: vec2 +} + +struct FragmentInputs { + @location(0) tex_coord: vec2 +} + +@group(1) @binding(0) var projection_matrix: mat4x4; + +@vertex +fn vs_main( + @location(0) pos: vec2, + @location(1) tex_coord: vec2 +) -> VertexOutputs { + var output: VertexOutputs; + + output.position = projection_matrix * vec4(pos, 0.0, 1.0); + output.tex_coord = tex_coord; + + return output; +} + +//The texture we're sampling +@group(0) @binding(0) var t: texture_2d; +//The sampler we're using to sample the texture +@group(0) @binding(1) var s: sampler; + +@fragment +fn fs_main(input: FragmentInputs) -> @location(0) vec4 { + return textureSample(t, s, input.tex_coord); +} \ No newline at end of file diff --git a/src/Lab/Experiments/WebGPUTexturedQuad/silk.png b/src/Lab/Experiments/WebGPUTexturedQuad/silk.png new file mode 100644 index 0000000000..d9b142e1d4 Binary files /dev/null and b/src/Lab/Experiments/WebGPUTexturedQuad/silk.png differ diff --git a/src/Lab/Experiments/WebGPUTriangle/Program.cs b/src/Lab/Experiments/WebGPUTriangle/Program.cs new file mode 100644 index 0000000000..18d12be9ec --- /dev/null +++ b/src/Lab/Experiments/WebGPUTriangle/Program.cs @@ -0,0 +1,327 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System.Diagnostics; +using Silk.NET.Core.Native; +using Silk.NET.Maths; +using Silk.NET.WebGPU; +using Silk.NET.WebGPU.Extensions.Disposal; +using Silk.NET.WebGPU.Extensions.WGPU; +using Silk.NET.Windowing; + +namespace WebGPUTriangle; + +public static unsafe class Program +{ + // ReSharper disable once InconsistentNaming + private static WebGPU wgpu = null!; + private static WebGPUDisposal _WebGpuDisposal = null!; + private static IWindow? _Window; + + private static Surface* _Surface; + private static Adapter* _Adapter; + private static Device* _Device; + private static ShaderModule* _Shader; + private static RenderPipeline* _Pipeline; + private static SwapChain* _SwapChain; + private static TextureFormat _SwapChainFormat; + + private const string SHADER = @"@vertex +fn vs_main(@builtin(vertex_index) in_vertex_index: u32) -> @builtin(position) vec4 { + let x = f32(i32(in_vertex_index) - 1); + let y = f32(i32(in_vertex_index & 1u) * 2 - 1); + return vec4(x, y, 0.0, 1.0); +} + +@fragment +fn fs_main() -> @location(0) vec4 { + return vec4(1.0, 0.0, 0.0, 1.0); +}"; + + public static void Main() + { + //Create window + var options = WindowOptions.Default; + options.API = GraphicsAPI.None; + options.Size = new Vector2D(800, 600); + options.FramesPerSecond = 60; + options.UpdatesPerSecond = 60; + options.Position = new Vector2D(0, 0); + options.Title = "WebGPU Triangle"; + options.IsVisible = true; + options.ShouldSwapAutomatically = false; + options.IsContextControlDisabled = true; + + _Window = Window.Create(options); + + _Window.Load += WindowOnLoad; + _Window.Closing += WindowClosing; + _Window.Update += WindowOnUpdate; + _Window.Render += WindowOnRender; + _Window.FramebufferResize += FramebufferResize; + + _Window.Run(); + } + + private static void FramebufferResize(Vector2D obj) + { + CreateSwapchain(); + } + + private static void WindowOnLoad() + { + wgpu = WebGPU.GetApi(); + + _WebGpuDisposal = new WebGPUDisposal(wgpu); + + _Surface = _Window.CreateWebGPUSurface(wgpu); + + { //Get adapter + var requestAdapterOptions = new RequestAdapterOptions + { + CompatibleSurface = _Surface + }; + + wgpu.InstanceRequestAdapter + ( + null, + requestAdapterOptions, + new PfnRequestAdapterCallback((_, adapter1, _, _) => _Adapter = adapter1), + null + ); + + Console.WriteLine($"Got adapter {(nuint) _Adapter:X}"); + } //Get adapter + + PrintAdapterFeatures(); + + { //Get device + var requiredLimits = stackalloc RequiredLimits[1]; + requiredLimits->Limits.MaxBindGroups = 1; + + var deviceDescriptor = new DeviceDescriptor + { + RequiredLimits = requiredLimits, + DefaultQueue = new QueueDescriptor() + }; + + wgpu.AdapterRequestDevice + ( + _Adapter, + deviceDescriptor, + new PfnRequestDeviceCallback((_, device1, _, _) => _Device = device1), + null + ); + + Console.WriteLine($"Got device {(nuint) _Device:X}"); + } //Get device + + wgpu.DeviceSetUncapturedErrorCallback(_Device, new PfnErrorCallback(UncapturedError), null); + wgpu.DeviceSetDeviceLostCallback(_Device, new PfnDeviceLostCallback(DeviceLost), null); + + { //Load shader + var wgslDescriptor = new ShaderModuleWGSLDescriptor + { + Code = (byte*) SilkMarshal.StringToPtr(SHADER), + Chain = new ChainedStruct + { + SType = SType.ShaderModuleWgsldescriptor + } + }; + + var shaderModuleDescriptor = new ShaderModuleDescriptor + { + NextInChain = (ChainedStruct*) (&wgslDescriptor), + }; + + _Shader = wgpu.DeviceCreateShaderModule(_Device, shaderModuleDescriptor); + + Console.WriteLine($"Created shader {(nuint) _Shader:X}"); + } //Load shader + + _SwapChainFormat = wgpu.SurfaceGetPreferredFormat(_Surface, _Adapter); + + { //Create pipeline + + var blendState = new BlendState + { + Color = new BlendComponent + { + SrcFactor = BlendFactor.One, + DstFactor = BlendFactor.Zero, + Operation = BlendOperation.Add + }, + Alpha = new BlendComponent + { + SrcFactor = BlendFactor.One, + DstFactor = BlendFactor.Zero, + Operation = BlendOperation.Add + } + }; + + var colorTargetState = new ColorTargetState + { + Format = _SwapChainFormat, + Blend = &blendState, + WriteMask = ColorWriteMask.All + }; + + var fragmentState = new FragmentState + { + Module = _Shader, + TargetCount = 1, + Targets = &colorTargetState, + EntryPoint = (byte*) SilkMarshal.StringToPtr("fs_main") + }; + + var renderPipelineDescriptor = new RenderPipelineDescriptor + { + Vertex = new VertexState + { + Module = _Shader, + EntryPoint = (byte*) SilkMarshal.StringToPtr("vs_main"), + }, + Primitive = new PrimitiveState + { + Topology = PrimitiveTopology.TriangleList, + StripIndexFormat = IndexFormat.Undefined, + FrontFace = FrontFace.Ccw, + CullMode = CullMode.None + }, + Multisample = new MultisampleState + { + Count = 1, + Mask = ~0u, + AlphaToCoverageEnabled = false + }, + Fragment = &fragmentState, + DepthStencil = null + }; + + _Pipeline = wgpu.DeviceCreateRenderPipeline(_Device, renderPipelineDescriptor); + + Console.WriteLine($"Created pipeline {(nuint) _Pipeline:X}"); + } //Create pipeline + + CreateSwapchain(); + } + + private static void WindowClosing() + { + _WebGpuDisposal.Dispose(_Shader); + _WebGpuDisposal.Dispose(_Pipeline); + _WebGpuDisposal.Dispose(_Device); + _WebGpuDisposal.Dispose(_Adapter); + _WebGpuDisposal.Dispose(_Surface); + + wgpu.Dispose(); + } + + private static void CreateSwapchain() + { + var swapChainDescriptor = new SwapChainDescriptor + { + Usage = TextureUsage.RenderAttachment, + Format = _SwapChainFormat, + Width = (uint) _Window.FramebufferSize.X, + Height = (uint) _Window.FramebufferSize.Y, + PresentMode = PresentMode.Fifo + }; + + _SwapChain = wgpu.DeviceCreateSwapChain(_Device, _Surface, swapChainDescriptor); + } + + private static void WindowOnUpdate(double delta) {} + + private static void WindowOnRender(double delta) + { + TextureView* nextTexture = null; + + for (var attempt = 0; attempt < 2; attempt++) + { + nextTexture = wgpu.SwapChainGetCurrentTextureView(_SwapChain); + + if (attempt == 0 && nextTexture == null) + { + Console.WriteLine("wgpu.SwapChainGetCurrentTextureView() failed; trying to create a new swap chain...\n"); + CreateSwapchain(); + continue; + } + + break; + } + + if (nextTexture == null) + { + Console.WriteLine("wgpu.SwapChainGetCurrentTextureView() failed after multiple attempts; giving up.\n"); + return; + } + + var commandEncoderDescriptor = new CommandEncoderDescriptor(); + + var encoder = wgpu.DeviceCreateCommandEncoder(_Device, commandEncoderDescriptor); + + var colorAttachment = new RenderPassColorAttachment + { + View = nextTexture, + ResolveTarget = null, + LoadOp = LoadOp.Clear, + StoreOp = StoreOp.Store, + ClearValue = new Color + { + R = 0, + G = 1, + B = 0, + A = 1 + } + }; + + var renderPassDescriptor = new RenderPassDescriptor + { + ColorAttachments = &colorAttachment, + ColorAttachmentCount = 1, + DepthStencilAttachment = null + }; + + var renderPass = wgpu.CommandEncoderBeginRenderPass(encoder, renderPassDescriptor); + + wgpu.RenderPassEncoderSetPipeline(renderPass, _Pipeline); + wgpu.RenderPassEncoderDraw(renderPass, 3, 1, 0, 0); + wgpu.RenderPassEncoderEnd(renderPass); + _WebGpuDisposal.Dispose(nextTexture); + + var queue = wgpu.DeviceGetQueue(_Device); + + var commandBuffer = wgpu.CommandEncoderFinish(encoder, new CommandBufferDescriptor()); + + wgpu.QueueSubmit(queue, 1, &commandBuffer); + wgpu.SwapChainPresent(_SwapChain); + // _Window.SwapBuffers(); + } + + private static void PrintAdapterFeatures() + { + var count = (int) wgpu.AdapterEnumerateFeatures(_Adapter, null); + + var features = stackalloc FeatureName[count]; + + wgpu.AdapterEnumerateFeatures(_Adapter, features); + + Console.WriteLine("Adapter features:"); + + for (var i = 0; i < count; i++) + { + Console.WriteLine($"\t{features[i]}"); + } + } + + private static void DeviceLost(DeviceLostReason arg0, byte* arg1, void* arg2) + { + Console.WriteLine($"Device lost! Reason: {arg0} Message: {SilkMarshal.PtrToString((nint) arg1)}"); + } + + private static void UncapturedError(ErrorType arg0, byte* arg1, void* arg2) + { + Console.WriteLine($"{arg0}: {SilkMarshal.PtrToString((nint) arg1)}"); + } +} diff --git a/src/Lab/Experiments/WebGPUTriangle/WebGPUTriangle.csproj b/src/Lab/Experiments/WebGPUTriangle/WebGPUTriangle.csproj new file mode 100644 index 0000000000..23f573a217 --- /dev/null +++ b/src/Lab/Experiments/WebGPUTriangle/WebGPUTriangle.csproj @@ -0,0 +1,21 @@ + + + + Exe + net6.0 + enable + enable + true + + + + + + + + + + + + + diff --git a/src/Native/Silk.NET.Assimp.Native/runtimes/linux-x64/native/libassimp.so.5 b/src/Native/Silk.NET.Assimp.Native/runtimes/linux-x64/native/libassimp.so.5 index 2c244d0b0e..65c88f1ad1 100755 Binary files a/src/Native/Silk.NET.Assimp.Native/runtimes/linux-x64/native/libassimp.so.5 and b/src/Native/Silk.NET.Assimp.Native/runtimes/linux-x64/native/libassimp.so.5 differ diff --git a/src/Native/Silk.NET.Assimp.Native/runtimes/osx-arm64/native/libassimp.5.dylib b/src/Native/Silk.NET.Assimp.Native/runtimes/osx-arm64/native/libassimp.5.dylib index 7189930460..bd54887282 100755 Binary files a/src/Native/Silk.NET.Assimp.Native/runtimes/osx-arm64/native/libassimp.5.dylib and b/src/Native/Silk.NET.Assimp.Native/runtimes/osx-arm64/native/libassimp.5.dylib differ diff --git a/src/Native/Silk.NET.Assimp.Native/runtimes/osx-x64/native/libassimp.5.dylib b/src/Native/Silk.NET.Assimp.Native/runtimes/osx-x64/native/libassimp.5.dylib index e64c7b4096..105fc018d8 100755 Binary files a/src/Native/Silk.NET.Assimp.Native/runtimes/osx-x64/native/libassimp.5.dylib and b/src/Native/Silk.NET.Assimp.Native/runtimes/osx-x64/native/libassimp.5.dylib differ diff --git a/src/Native/Silk.NET.Assimp.Native/runtimes/win-x64/native/Assimp64.dll b/src/Native/Silk.NET.Assimp.Native/runtimes/win-x64/native/Assimp64.dll index 7f50d89bed..f337f3b622 100644 Binary files a/src/Native/Silk.NET.Assimp.Native/runtimes/win-x64/native/Assimp64.dll and b/src/Native/Silk.NET.Assimp.Native/runtimes/win-x64/native/Assimp64.dll differ diff --git a/src/Native/Silk.NET.Assimp.Native/runtimes/win-x86/native/Assimp32.dll b/src/Native/Silk.NET.Assimp.Native/runtimes/win-x86/native/Assimp32.dll index 45787e33d3..273988ea5c 100644 Binary files a/src/Native/Silk.NET.Assimp.Native/runtimes/win-x86/native/Assimp32.dll and b/src/Native/Silk.NET.Assimp.Native/runtimes/win-x86/native/Assimp32.dll differ diff --git a/src/Native/Silk.NET.GLFW.Native/runtimes/linux-x64/native/libglfw.so b/src/Native/Silk.NET.GLFW.Native/runtimes/linux-x64/native/libglfw.so new file mode 100755 index 0000000000..ea28013b1b Binary files /dev/null and b/src/Native/Silk.NET.GLFW.Native/runtimes/linux-x64/native/libglfw.so differ diff --git a/src/Native/Silk.NET.GLFW.Native/runtimes/osx-arm64/native/libglfw.3.dylib b/src/Native/Silk.NET.GLFW.Native/runtimes/osx-arm64/native/libglfw.3.dylib index da835b395d..0e65358dea 100755 Binary files a/src/Native/Silk.NET.GLFW.Native/runtimes/osx-arm64/native/libglfw.3.dylib and b/src/Native/Silk.NET.GLFW.Native/runtimes/osx-arm64/native/libglfw.3.dylib differ diff --git a/src/Native/Silk.NET.GLFW.Native/runtimes/osx-x64/native/libglfw.3.dylib b/src/Native/Silk.NET.GLFW.Native/runtimes/osx-x64/native/libglfw.3.dylib index 5acd16c4e6..1bf0185b20 100755 Binary files a/src/Native/Silk.NET.GLFW.Native/runtimes/osx-x64/native/libglfw.3.dylib and b/src/Native/Silk.NET.GLFW.Native/runtimes/osx-x64/native/libglfw.3.dylib differ diff --git a/src/Native/Silk.NET.GLFW.Native/runtimes/win-x64/native/glfw3.dll b/src/Native/Silk.NET.GLFW.Native/runtimes/win-x64/native/glfw3.dll index d1e5c64c87..572761eaf0 100644 Binary files a/src/Native/Silk.NET.GLFW.Native/runtimes/win-x64/native/glfw3.dll and b/src/Native/Silk.NET.GLFW.Native/runtimes/win-x64/native/glfw3.dll differ diff --git a/src/Native/Silk.NET.GLFW.Native/runtimes/win-x86/native/glfw3.dll b/src/Native/Silk.NET.GLFW.Native/runtimes/win-x86/native/glfw3.dll index 196148eb7c..63636d5974 100644 Binary files a/src/Native/Silk.NET.GLFW.Native/runtimes/win-x86/native/glfw3.dll and b/src/Native/Silk.NET.GLFW.Native/runtimes/win-x86/native/glfw3.dll differ diff --git a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/linux-x64/native/libvulkan.so b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/linux-x64/native/libvulkan.so index 131844c726..1b17822209 100755 Binary files a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/linux-x64/native/libvulkan.so and b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/linux-x64/native/libvulkan.so differ diff --git a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/osx-x64/native/libvulkan.dylib b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/osx-x64/native/libvulkan.dylib index 13a0da496a..22111f08a5 100755 Binary files a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/osx-x64/native/libvulkan.dylib and b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/osx-x64/native/libvulkan.dylib differ diff --git a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x64/native/vulkan-1.dll b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x64/native/vulkan-1.dll index 5cae5355b6..5dce2d3fff 100644 Binary files a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x64/native/vulkan-1.dll and b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x64/native/vulkan-1.dll differ diff --git a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x86/native/vulkan-1.dll b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x86/native/vulkan-1.dll index 5cae5355b6..5dce2d3fff 100644 Binary files a/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x86/native/vulkan-1.dll and b/src/Native/Silk.NET.Vulkan.Loader.Native/runtimes/win-x86/native/vulkan-1.dll differ diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Dawn.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Dawn.gen.cs new file mode 100644 index 0000000000..86a45097b3 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Dawn.gen.cs @@ -0,0 +1,1319 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; +using Silk.NET.WebGPU; +using Extension = Silk.NET.Core.Attributes.ExtensionAttribute; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [Extension("dawn-webgpu.h")] + public unsafe partial class Dawn : NativeExtension + { + public const string ExtensionName = "dawn-webgpu.h"; + /// To be documented. + [NativeName("Src", "Line 1601, Column 24 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterCreateDevice")] + public unsafe partial Device* AdapterCreateDevice(Adapter* adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1601, Column 24 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterCreateDevice")] + public unsafe partial Device* AdapterCreateDevice(Adapter* adapter, [Flow(FlowDirection.In)] in DeviceDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1601, Column 24 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterCreateDevice")] + public unsafe partial Device* AdapterCreateDevice(ref Adapter adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1601, Column 24 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterCreateDevice")] + public unsafe partial Device* AdapterCreateDevice(ref Adapter adapter, [Flow(FlowDirection.In)] in DeviceDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1607, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterReference")] + public unsafe partial void AdapterReference(Adapter* adapter); + + /// To be documented. + [NativeName("Src", "Line 1607, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterReference")] + public partial void AdapterReference(ref Adapter adapter); + + /// To be documented. + [NativeName("Src", "Line 1608, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRelease")] + public unsafe partial void AdapterRelease(Adapter* adapter); + + /// To be documented. + [NativeName("Src", "Line 1608, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRelease")] + public partial void AdapterRelease(ref Adapter adapter); + + /// To be documented. + [NativeName("Src", "Line 1612, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupReference")] + public unsafe partial void BindGroupReference(BindGroup* bindGroup); + + /// To be documented. + [NativeName("Src", "Line 1612, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupReference")] + public partial void BindGroupReference(ref BindGroup bindGroup); + + /// To be documented. + [NativeName("Src", "Line 1613, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupRelease")] + public unsafe partial void BindGroupRelease(BindGroup* bindGroup); + + /// To be documented. + [NativeName("Src", "Line 1613, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupRelease")] + public partial void BindGroupRelease(ref BindGroup bindGroup); + + /// To be documented. + [NativeName("Src", "Line 1617, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutReference")] + public unsafe partial void BindGroupLayoutReference(BindGroupLayout* bindGroupLayout); + + /// To be documented. + [NativeName("Src", "Line 1617, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutReference")] + public partial void BindGroupLayoutReference(ref BindGroupLayout bindGroupLayout); + + /// To be documented. + [NativeName("Src", "Line 1618, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutRelease")] + public unsafe partial void BindGroupLayoutRelease(BindGroupLayout* bindGroupLayout); + + /// To be documented. + [NativeName("Src", "Line 1618, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutRelease")] + public partial void BindGroupLayoutRelease(ref BindGroupLayout bindGroupLayout); + + /// To be documented. + [NativeName("Src", "Line 1629, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferReference")] + public unsafe partial void BufferReference(Buffer* buffer); + + /// To be documented. + [NativeName("Src", "Line 1629, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferReference")] + public partial void BufferReference(ref Buffer buffer); + + /// To be documented. + [NativeName("Src", "Line 1630, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferRelease")] + public unsafe partial void BufferRelease(Buffer* buffer); + + /// To be documented. + [NativeName("Src", "Line 1630, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferRelease")] + public partial void BufferRelease(ref Buffer buffer); + + /// To be documented. + [NativeName("Src", "Line 1634, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferReference")] + public unsafe partial void CommandBufferReference(CommandBuffer* commandBuffer); + + /// To be documented. + [NativeName("Src", "Line 1634, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferReference")] + public partial void CommandBufferReference(ref CommandBuffer commandBuffer); + + /// To be documented. + [NativeName("Src", "Line 1635, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferRelease")] + public unsafe partial void CommandBufferRelease(CommandBuffer* commandBuffer); + + /// To be documented. + [NativeName("Src", "Line 1635, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferRelease")] + public partial void CommandBufferRelease(ref CommandBuffer commandBuffer); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public unsafe partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTextureInternal")] + public partial void CommandEncoderCopyTextureToTextureInternal(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInjectValidationError")] + public unsafe partial void CommandEncoderInjectValidationError(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] byte* message); + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInjectValidationError")] + public unsafe partial void CommandEncoderInjectValidationError(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in byte message); + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInjectValidationError")] + public unsafe partial void CommandEncoderInjectValidationError(CommandEncoder* commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message); + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInjectValidationError")] + public unsafe partial void CommandEncoderInjectValidationError(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] byte* message); + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInjectValidationError")] + public partial void CommandEncoderInjectValidationError(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in byte message); + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInjectValidationError")] + public partial void CommandEncoderInjectValidationError(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(CommandEncoder* commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] byte* data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(CommandEncoder* commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in byte data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(CommandEncoder* commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(CommandEncoder* commandEncoder, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] byte* data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(CommandEncoder* commandEncoder, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in byte data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(CommandEncoder* commandEncoder, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(ref CommandEncoder commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] byte* data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(ref CommandEncoder commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in byte data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(ref CommandEncoder commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public unsafe partial void CommandEncoderWriteBuffer(ref CommandEncoder commandEncoder, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] byte* data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public partial void CommandEncoderWriteBuffer(ref CommandEncoder commandEncoder, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in byte data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteBuffer")] + public partial void CommandEncoderWriteBuffer(ref CommandEncoder commandEncoder, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1655, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderReference")] + public unsafe partial void CommandEncoderReference(CommandEncoder* commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 1655, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderReference")] + public partial void CommandEncoderReference(ref CommandEncoder commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 1656, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderRelease")] + public unsafe partial void CommandEncoderRelease(CommandEncoder* commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 1656, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderRelease")] + public partial void CommandEncoderRelease(ref CommandEncoder commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 1659, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatch")] + public unsafe partial void ComputePassEncoderDispatch(ComputePassEncoder* computePassEncoder, uint workgroupCountX, uint workgroupCountY, uint workgroupCountZ); + + /// To be documented. + [NativeName("Src", "Line 1659, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatch")] + public partial void ComputePassEncoderDispatch(ref ComputePassEncoder computePassEncoder, uint workgroupCountX, uint workgroupCountY, uint workgroupCountZ); + + /// To be documented. + [NativeName("Src", "Line 1660, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchIndirect")] + public unsafe partial void ComputePassEncoderDispatchIndirect(ComputePassEncoder* computePassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1660, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchIndirect")] + public unsafe partial void ComputePassEncoderDispatchIndirect(ComputePassEncoder* computePassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1660, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchIndirect")] + public unsafe partial void ComputePassEncoderDispatchIndirect(ref ComputePassEncoder computePassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1660, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchIndirect")] + public partial void ComputePassEncoderDispatchIndirect(ref ComputePassEncoder computePassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1664, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderEndPass")] + public unsafe partial void ComputePassEncoderEndPass(ComputePassEncoder* computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1664, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderEndPass")] + public partial void ComputePassEncoderEndPass(ref ComputePassEncoder computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1671, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderWriteTimestamp")] + public unsafe partial void ComputePassEncoderWriteTimestamp(ComputePassEncoder* computePassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1671, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderWriteTimestamp")] + public unsafe partial void ComputePassEncoderWriteTimestamp(ComputePassEncoder* computePassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1671, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderWriteTimestamp")] + public unsafe partial void ComputePassEncoderWriteTimestamp(ref ComputePassEncoder computePassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1671, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderWriteTimestamp")] + public partial void ComputePassEncoderWriteTimestamp(ref ComputePassEncoder computePassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1672, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderReference")] + public unsafe partial void ComputePassEncoderReference(ComputePassEncoder* computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1672, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderReference")] + public partial void ComputePassEncoderReference(ref ComputePassEncoder computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1673, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderRelease")] + public unsafe partial void ComputePassEncoderRelease(ComputePassEncoder* computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1673, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderRelease")] + public partial void ComputePassEncoderRelease(ref ComputePassEncoder computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1678, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineReference")] + public unsafe partial void ComputePipelineReference(ComputePipeline* computePipeline); + + /// To be documented. + [NativeName("Src", "Line 1678, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineReference")] + public partial void ComputePipelineReference(ref ComputePipeline computePipeline); + + /// To be documented. + [NativeName("Src", "Line 1679, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineRelease")] + public unsafe partial void ComputePipelineRelease(ComputePipeline* computePipeline); + + /// To be documented. + [NativeName("Src", "Line 1679, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineRelease")] + public partial void ComputePipelineRelease(ref ComputePipeline computePipeline); + + /// To be documented. + [NativeName("Src", "Line 1688, Column 24 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorBuffer")] + public unsafe partial Buffer* DeviceCreateErrorBuffer(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1688, Column 24 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorBuffer")] + public unsafe partial Buffer* DeviceCreateErrorBuffer(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1689, Column 33 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorExternalTexture")] + public unsafe partial ExternalTextureImpl* DeviceCreateErrorExternalTexture(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1689, Column 33 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorExternalTexture")] + public unsafe partial ExternalTextureImpl* DeviceCreateErrorExternalTexture(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1690, Column 25 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorTexture")] + public unsafe partial Texture* DeviceCreateErrorTexture(Device* device, [Flow(FlowDirection.In)] TextureDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1690, Column 25 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorTexture")] + public unsafe partial Texture* DeviceCreateErrorTexture(Device* device, [Flow(FlowDirection.In)] in TextureDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1690, Column 25 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorTexture")] + public unsafe partial Texture* DeviceCreateErrorTexture(ref Device device, [Flow(FlowDirection.In)] TextureDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1690, Column 25 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateErrorTexture")] + public unsafe partial Texture* DeviceCreateErrorTexture(ref Device device, [Flow(FlowDirection.In)] in TextureDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1691, Column 33 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateExternalTexture")] + public unsafe partial ExternalTextureImpl* DeviceCreateExternalTexture(Device* device, [Flow(FlowDirection.In)] ExternalTextureDescriptor* externalTextureDescriptor); + + /// To be documented. + [NativeName("Src", "Line 1691, Column 33 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateExternalTexture")] + public unsafe partial ExternalTextureImpl* DeviceCreateExternalTexture(Device* device, [Flow(FlowDirection.In)] in ExternalTextureDescriptor externalTextureDescriptor); + + /// To be documented. + [NativeName("Src", "Line 1691, Column 33 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateExternalTexture")] + public unsafe partial ExternalTextureImpl* DeviceCreateExternalTexture(ref Device device, [Flow(FlowDirection.In)] ExternalTextureDescriptor* externalTextureDescriptor); + + /// To be documented. + [NativeName("Src", "Line 1691, Column 33 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateExternalTexture")] + public unsafe partial ExternalTextureImpl* DeviceCreateExternalTexture(ref Device device, [Flow(FlowDirection.In)] in ExternalTextureDescriptor externalTextureDescriptor); + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceForceLoss")] + public unsafe partial void DeviceForceLoss(Device* device, DeviceLostReason type, [Flow(FlowDirection.In)] byte* message); + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceForceLoss")] + public unsafe partial void DeviceForceLoss(Device* device, DeviceLostReason type, [Flow(FlowDirection.In)] in byte message); + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceForceLoss")] + public unsafe partial void DeviceForceLoss(Device* device, DeviceLostReason type, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message); + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceForceLoss")] + public unsafe partial void DeviceForceLoss(ref Device device, DeviceLostReason type, [Flow(FlowDirection.In)] byte* message); + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceForceLoss")] + public partial void DeviceForceLoss(ref Device device, DeviceLostReason type, [Flow(FlowDirection.In)] in byte message); + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceForceLoss")] + public partial void DeviceForceLoss(ref Device device, DeviceLostReason type, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message); + + /// To be documented. + [NativeName("Src", "Line 1704, Column 25 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetAdapter")] + public unsafe partial Adapter* DeviceGetAdapter(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1704, Column 25 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetAdapter")] + public unsafe partial Adapter* DeviceGetAdapter(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceInjectError")] + public unsafe partial void DeviceInjectError(Device* device, ErrorType type, [Flow(FlowDirection.In)] byte* message); + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceInjectError")] + public unsafe partial void DeviceInjectError(Device* device, ErrorType type, [Flow(FlowDirection.In)] in byte message); + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceInjectError")] + public unsafe partial void DeviceInjectError(Device* device, ErrorType type, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message); + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceInjectError")] + public unsafe partial void DeviceInjectError(ref Device device, ErrorType type, [Flow(FlowDirection.In)] byte* message); + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceInjectError")] + public partial void DeviceInjectError(ref Device device, ErrorType type, [Flow(FlowDirection.In)] in byte message); + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceInjectError")] + public partial void DeviceInjectError(ref Device device, ErrorType type, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message); + + /// To be documented. + [NativeName("Src", "Line 1713, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLoggingCallback")] + public unsafe partial void DeviceSetLoggingCallback(Device* device, PfnLoggingCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1713, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLoggingCallback")] + public unsafe partial void DeviceSetLoggingCallback(Device* device, PfnLoggingCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1713, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLoggingCallback")] + public unsafe partial void DeviceSetLoggingCallback(ref Device device, PfnLoggingCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1713, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLoggingCallback")] + public partial void DeviceSetLoggingCallback(ref Device device, PfnLoggingCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1715, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceTick")] + public unsafe partial void DeviceTick(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1715, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceTick")] + public partial void DeviceTick(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1716, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceReference")] + public unsafe partial void DeviceReference(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1716, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceReference")] + public partial void DeviceReference(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1717, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceRelease")] + public unsafe partial void DeviceRelease(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1717, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceRelease")] + public partial void DeviceRelease(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1720, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureDestroy")] + public unsafe partial void ExternalTextureDestroy(ExternalTextureImpl* externalTexture); + + /// To be documented. + [NativeName("Src", "Line 1720, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureDestroy")] + public partial void ExternalTextureDestroy(ref ExternalTextureImpl externalTexture); + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureSetLabel")] + public unsafe partial void ExternalTextureSetLabel(ExternalTextureImpl* externalTexture, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureSetLabel")] + public unsafe partial void ExternalTextureSetLabel(ExternalTextureImpl* externalTexture, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureSetLabel")] + public unsafe partial void ExternalTextureSetLabel(ExternalTextureImpl* externalTexture, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureSetLabel")] + public unsafe partial void ExternalTextureSetLabel(ref ExternalTextureImpl externalTexture, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureSetLabel")] + public partial void ExternalTextureSetLabel(ref ExternalTextureImpl externalTexture, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureSetLabel")] + public partial void ExternalTextureSetLabel(ref ExternalTextureImpl externalTexture, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1722, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureReference")] + public unsafe partial void ExternalTextureReference(ExternalTextureImpl* externalTexture); + + /// To be documented. + [NativeName("Src", "Line 1722, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureReference")] + public partial void ExternalTextureReference(ref ExternalTextureImpl externalTexture); + + /// To be documented. + [NativeName("Src", "Line 1723, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureRelease")] + public unsafe partial void ExternalTextureRelease(ExternalTextureImpl* externalTexture); + + /// To be documented. + [NativeName("Src", "Line 1723, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuExternalTextureRelease")] + public partial void ExternalTextureRelease(ref ExternalTextureImpl externalTexture); + + /// To be documented. + [NativeName("Src", "Line 1728, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceReference")] + public unsafe partial void InstanceReference(Instance* instance); + + /// To be documented. + [NativeName("Src", "Line 1728, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceReference")] + public partial void InstanceReference(ref Instance instance); + + /// To be documented. + [NativeName("Src", "Line 1729, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRelease")] + public unsafe partial void InstanceRelease(Instance* instance); + + /// To be documented. + [NativeName("Src", "Line 1729, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRelease")] + public partial void InstanceRelease(ref Instance instance); + + /// To be documented. + [NativeName("Src", "Line 1733, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutReference")] + public unsafe partial void PipelineLayoutReference(PipelineLayout* pipelineLayout); + + /// To be documented. + [NativeName("Src", "Line 1733, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutReference")] + public partial void PipelineLayoutReference(ref PipelineLayout pipelineLayout); + + /// To be documented. + [NativeName("Src", "Line 1734, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutRelease")] + public unsafe partial void PipelineLayoutRelease(PipelineLayout* pipelineLayout); + + /// To be documented. + [NativeName("Src", "Line 1734, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutRelease")] + public partial void PipelineLayoutRelease(ref PipelineLayout pipelineLayout); + + /// To be documented. + [NativeName("Src", "Line 1741, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetReference")] + public unsafe partial void QuerySetReference(QuerySet* querySet); + + /// To be documented. + [NativeName("Src", "Line 1741, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetReference")] + public partial void QuerySetReference(ref QuerySet querySet); + + /// To be documented. + [NativeName("Src", "Line 1742, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetRelease")] + public unsafe partial void QuerySetRelease(QuerySet* querySet); + + /// To be documented. + [NativeName("Src", "Line 1742, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetRelease")] + public partial void QuerySetRelease(ref QuerySet querySet); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public unsafe partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyExternalTextureForBrowser")] + public partial void QueueCopyExternalTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyExternalTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public unsafe partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options); + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueCopyTextureForBrowser")] + public partial void QueueCopyTextureForBrowser(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize, [Flow(FlowDirection.In)] in CopyTextureForBrowserOptions options); + + /// To be documented. + [NativeName("Src", "Line 1752, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueReference")] + public unsafe partial void QueueReference(Queue* queue); + + /// To be documented. + [NativeName("Src", "Line 1752, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueReference")] + public partial void QueueReference(ref Queue queue); + + /// To be documented. + [NativeName("Src", "Line 1753, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueRelease")] + public unsafe partial void QueueRelease(Queue* queue); + + /// To be documented. + [NativeName("Src", "Line 1753, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueRelease")] + public partial void QueueRelease(ref Queue queue); + + /// To be documented. + [NativeName("Src", "Line 1756, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleReference")] + public unsafe partial void RenderBundleReference(RenderBundle* renderBundle); + + /// To be documented. + [NativeName("Src", "Line 1756, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleReference")] + public partial void RenderBundleReference(ref RenderBundle renderBundle); + + /// To be documented. + [NativeName("Src", "Line 1757, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleRelease")] + public unsafe partial void RenderBundleRelease(RenderBundle* renderBundle); + + /// To be documented. + [NativeName("Src", "Line 1757, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleRelease")] + public partial void RenderBundleRelease(ref RenderBundle renderBundle); + + /// To be documented. + [NativeName("Src", "Line 1773, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderReference")] + public unsafe partial void RenderBundleEncoderReference(RenderBundleEncoder* renderBundleEncoder); + + /// To be documented. + [NativeName("Src", "Line 1773, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderReference")] + public partial void RenderBundleEncoderReference(ref RenderBundleEncoder renderBundleEncoder); + + /// To be documented. + [NativeName("Src", "Line 1774, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderRelease")] + public unsafe partial void RenderBundleEncoderRelease(RenderBundleEncoder* renderBundleEncoder); + + /// To be documented. + [NativeName("Src", "Line 1774, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderRelease")] + public partial void RenderBundleEncoderRelease(ref RenderBundleEncoder renderBundleEncoder); + + /// To be documented. + [NativeName("Src", "Line 1784, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEndPass")] + public unsafe partial void RenderPassEncoderEndPass(RenderPassEncoder* renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1784, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEndPass")] + public partial void RenderPassEncoderEndPass(ref RenderPassEncoder renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1798, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderWriteTimestamp")] + public unsafe partial void RenderPassEncoderWriteTimestamp(RenderPassEncoder* renderPassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1798, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderWriteTimestamp")] + public unsafe partial void RenderPassEncoderWriteTimestamp(RenderPassEncoder* renderPassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1798, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderWriteTimestamp")] + public unsafe partial void RenderPassEncoderWriteTimestamp(ref RenderPassEncoder renderPassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1798, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderWriteTimestamp")] + public partial void RenderPassEncoderWriteTimestamp(ref RenderPassEncoder renderPassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1799, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderReference")] + public unsafe partial void RenderPassEncoderReference(RenderPassEncoder* renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1799, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderReference")] + public partial void RenderPassEncoderReference(ref RenderPassEncoder renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1800, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderRelease")] + public unsafe partial void RenderPassEncoderRelease(RenderPassEncoder* renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1800, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderRelease")] + public partial void RenderPassEncoderRelease(ref RenderPassEncoder renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1805, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineReference")] + public unsafe partial void RenderPipelineReference(RenderPipeline* renderPipeline); + + /// To be documented. + [NativeName("Src", "Line 1805, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineReference")] + public partial void RenderPipelineReference(ref RenderPipeline renderPipeline); + + /// To be documented. + [NativeName("Src", "Line 1806, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineRelease")] + public unsafe partial void RenderPipelineRelease(RenderPipeline* renderPipeline); + + /// To be documented. + [NativeName("Src", "Line 1806, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineRelease")] + public partial void RenderPipelineRelease(ref RenderPipeline renderPipeline); + + /// To be documented. + [NativeName("Src", "Line 1810, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerReference")] + public unsafe partial void SamplerReference(Sampler* sampler); + + /// To be documented. + [NativeName("Src", "Line 1810, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerReference")] + public partial void SamplerReference(ref Sampler sampler); + + /// To be documented. + [NativeName("Src", "Line 1811, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerRelease")] + public unsafe partial void SamplerRelease(Sampler* sampler); + + /// To be documented. + [NativeName("Src", "Line 1811, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerRelease")] + public partial void SamplerRelease(ref Sampler sampler); + + /// To be documented. + [NativeName("Src", "Line 1816, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleReference")] + public unsafe partial void ShaderModuleReference(ShaderModule* shaderModule); + + /// To be documented. + [NativeName("Src", "Line 1816, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleReference")] + public partial void ShaderModuleReference(ref ShaderModule shaderModule); + + /// To be documented. + [NativeName("Src", "Line 1817, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleRelease")] + public unsafe partial void ShaderModuleRelease(ShaderModule* shaderModule); + + /// To be documented. + [NativeName("Src", "Line 1817, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleRelease")] + public partial void ShaderModuleRelease(ref ShaderModule shaderModule); + + /// To be documented. + [NativeName("Src", "Line 1820, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceReference")] + public unsafe partial void SurfaceReference(Surface* surface); + + /// To be documented. + [NativeName("Src", "Line 1820, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceReference")] + public partial void SurfaceReference(ref Surface surface); + + /// To be documented. + [NativeName("Src", "Line 1821, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceRelease")] + public unsafe partial void SurfaceRelease(Surface* surface); + + /// To be documented. + [NativeName("Src", "Line 1821, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceRelease")] + public partial void SurfaceRelease(ref Surface surface); + + /// To be documented. + [NativeName("Src", "Line 1824, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainConfigure")] + public unsafe partial void SwapChainConfigure(SwapChain* swapChain, TextureFormat format, Silk.NET.WebGPU.TextureUsage allowedUsage, uint width, uint height); + + /// To be documented. + [NativeName("Src", "Line 1824, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainConfigure")] + public partial void SwapChainConfigure(ref SwapChain swapChain, TextureFormat format, Silk.NET.WebGPU.TextureUsage allowedUsage, uint width, uint height); + + /// To be documented. + [NativeName("Src", "Line 1827, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainReference")] + public unsafe partial void SwapChainReference(SwapChain* swapChain); + + /// To be documented. + [NativeName("Src", "Line 1827, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainReference")] + public partial void SwapChainReference(ref SwapChain swapChain); + + /// To be documented. + [NativeName("Src", "Line 1828, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainRelease")] + public unsafe partial void SwapChainRelease(SwapChain* swapChain); + + /// To be documented. + [NativeName("Src", "Line 1828, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainRelease")] + public partial void SwapChainRelease(ref SwapChain swapChain); + + /// To be documented. + [NativeName("Src", "Line 1842, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureReference")] + public unsafe partial void TextureReference(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1842, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureReference")] + public partial void TextureReference(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1843, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureRelease")] + public unsafe partial void TextureRelease(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1843, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureRelease")] + public partial void TextureRelease(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1847, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewReference")] + public unsafe partial void TextureViewReference(TextureView* textureView); + + /// To be documented. + [NativeName("Src", "Line 1847, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewReference")] + public partial void TextureViewReference(ref TextureView textureView); + + /// To be documented. + [NativeName("Src", "Line 1848, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewRelease")] + public unsafe partial void TextureViewRelease(TextureView* textureView); + + /// To be documented. + [NativeName("Src", "Line 1848, Column 18 in dawn-webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewRelease")] + public partial void TextureViewRelease(ref TextureView textureView); + + public Dawn(INativeContext ctx) + : base(ctx) + { + } + } +} + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/DawnOverloads.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/DawnOverloads.gen.cs new file mode 100644 index 0000000000..f08f7329f6 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/DawnOverloads.gen.cs @@ -0,0 +1,1469 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + public static class DawnOverloads + { + /// To be documented. + [NativeName("Src", "Line 1601, Column 24 in dawn-webgpu.h")] + public static unsafe Device* AdapterCreateDevice(this Dawn thisApi, Adapter* adapter, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.AdapterCreateDevice(adapter, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1601, Column 24 in dawn-webgpu.h")] + public static unsafe Device* AdapterCreateDevice(this Dawn thisApi, Span adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor) + { + // SpanOverloader + return thisApi.AdapterCreateDevice(ref adapter.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1601, Column 24 in dawn-webgpu.h")] + public static unsafe Device* AdapterCreateDevice(this Dawn thisApi, Span adapter, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.AdapterCreateDevice(ref adapter.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1607, Column 18 in dawn-webgpu.h")] + public static unsafe void AdapterReference(this Dawn thisApi, Span adapter) + { + // SpanOverloader + thisApi.AdapterReference(ref adapter.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1608, Column 18 in dawn-webgpu.h")] + public static unsafe void AdapterRelease(this Dawn thisApi, Span adapter) + { + // SpanOverloader + thisApi.AdapterRelease(ref adapter.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1612, Column 18 in dawn-webgpu.h")] + public static unsafe void BindGroupReference(this Dawn thisApi, Span bindGroup) + { + // SpanOverloader + thisApi.BindGroupReference(ref bindGroup.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1613, Column 18 in dawn-webgpu.h")] + public static unsafe void BindGroupRelease(this Dawn thisApi, Span bindGroup) + { + // SpanOverloader + thisApi.BindGroupRelease(ref bindGroup.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1617, Column 18 in dawn-webgpu.h")] + public static unsafe void BindGroupLayoutReference(this Dawn thisApi, Span bindGroupLayout) + { + // SpanOverloader + thisApi.BindGroupLayoutReference(ref bindGroupLayout.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1618, Column 18 in dawn-webgpu.h")] + public static unsafe void BindGroupLayoutRelease(this Dawn thisApi, Span bindGroupLayout) + { + // SpanOverloader + thisApi.BindGroupLayoutRelease(ref bindGroupLayout.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1629, Column 18 in dawn-webgpu.h")] + public static unsafe void BufferReference(this Dawn thisApi, Span buffer) + { + // SpanOverloader + thisApi.BufferReference(ref buffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1630, Column 18 in dawn-webgpu.h")] + public static unsafe void BufferRelease(this Dawn thisApi, Span buffer) + { + // SpanOverloader + thisApi.BufferRelease(ref buffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1634, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandBufferReference(this Dawn thisApi, Span commandBuffer) + { + // SpanOverloader + thisApi.CommandBufferReference(ref commandBuffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1635, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandBufferRelease(this Dawn thisApi, Span commandBuffer) + { + // SpanOverloader + thisApi.CommandBufferRelease(ref commandBuffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(commandEncoder, source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(commandEncoder, source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(commandEncoder, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(commandEncoder, in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(commandEncoder, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), source, destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1645, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTextureInternal(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTextureInternal(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderInjectValidationError(this Dawn thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan message) + { + // SpanOverloader + thisApi.CommandEncoderInjectValidationError(commandEncoder, in message.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderInjectValidationError(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] byte* message) + { + // SpanOverloader + thisApi.CommandEncoderInjectValidationError(ref commandEncoder.GetPinnableReference(), message); + } + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderInjectValidationError(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan message) + { + // SpanOverloader + thisApi.CommandEncoderInjectValidationError(ref commandEncoder.GetPinnableReference(), in message.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1647, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderInjectValidationError(this Dawn thisApi, Span commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message) + { + // SpanOverloader + thisApi.CommandEncoderInjectValidationError(ref commandEncoder.GetPinnableReference(), message); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, CommandEncoder* commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(commandEncoder, buffer, bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, CommandEncoder* commandEncoder, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] byte* data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(commandEncoder, ref buffer.GetPinnableReference(), bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, CommandEncoder* commandEncoder, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(commandEncoder, ref buffer.GetPinnableReference(), bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, CommandEncoder* commandEncoder, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(commandEncoder, ref buffer.GetPinnableReference(), bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, Span commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] byte* data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(ref commandEncoder.GetPinnableReference(), buffer, bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, Span commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(ref commandEncoder.GetPinnableReference(), buffer, bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, Span commandEncoder, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(ref commandEncoder.GetPinnableReference(), buffer, bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, Span commandEncoder, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] byte* data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(ref commandEncoder.GetPinnableReference(), ref buffer.GetPinnableReference(), bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, Span commandEncoder, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(ref commandEncoder.GetPinnableReference(), ref buffer.GetPinnableReference(), bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1653, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderWriteBuffer(this Dawn thisApi, Span commandEncoder, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string data, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderWriteBuffer(ref commandEncoder.GetPinnableReference(), ref buffer.GetPinnableReference(), bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1655, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderReference(this Dawn thisApi, Span commandEncoder) + { + // SpanOverloader + thisApi.CommandEncoderReference(ref commandEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1656, Column 18 in dawn-webgpu.h")] + public static unsafe void CommandEncoderRelease(this Dawn thisApi, Span commandEncoder) + { + // SpanOverloader + thisApi.CommandEncoderRelease(ref commandEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1659, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderDispatch(this Dawn thisApi, Span computePassEncoder, uint workgroupCountX, uint workgroupCountY, uint workgroupCountZ) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatch(ref computePassEncoder.GetPinnableReference(), workgroupCountX, workgroupCountY, workgroupCountZ); + } + + /// To be documented. + [NativeName("Src", "Line 1660, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderDispatchIndirect(this Dawn thisApi, ComputePassEncoder* computePassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatchIndirect(computePassEncoder, ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1660, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderDispatchIndirect(this Dawn thisApi, Span computePassEncoder, Buffer* indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatchIndirect(ref computePassEncoder.GetPinnableReference(), indirectBuffer, indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1660, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderDispatchIndirect(this Dawn thisApi, Span computePassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatchIndirect(ref computePassEncoder.GetPinnableReference(), ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1664, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderEndPass(this Dawn thisApi, Span computePassEncoder) + { + // SpanOverloader + thisApi.ComputePassEncoderEndPass(ref computePassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1671, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderWriteTimestamp(this Dawn thisApi, ComputePassEncoder* computePassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.ComputePassEncoderWriteTimestamp(computePassEncoder, ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1671, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderWriteTimestamp(this Dawn thisApi, Span computePassEncoder, QuerySet* querySet, uint queryIndex) + { + // SpanOverloader + thisApi.ComputePassEncoderWriteTimestamp(ref computePassEncoder.GetPinnableReference(), querySet, queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1671, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderWriteTimestamp(this Dawn thisApi, Span computePassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.ComputePassEncoderWriteTimestamp(ref computePassEncoder.GetPinnableReference(), ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1672, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderReference(this Dawn thisApi, Span computePassEncoder) + { + // SpanOverloader + thisApi.ComputePassEncoderReference(ref computePassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1673, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePassEncoderRelease(this Dawn thisApi, Span computePassEncoder) + { + // SpanOverloader + thisApi.ComputePassEncoderRelease(ref computePassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1678, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePipelineReference(this Dawn thisApi, Span computePipeline) + { + // SpanOverloader + thisApi.ComputePipelineReference(ref computePipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1679, Column 18 in dawn-webgpu.h")] + public static unsafe void ComputePipelineRelease(this Dawn thisApi, Span computePipeline) + { + // SpanOverloader + thisApi.ComputePipelineRelease(ref computePipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1688, Column 24 in dawn-webgpu.h")] + public static unsafe Buffer* DeviceCreateErrorBuffer(this Dawn thisApi, Span device) + { + // SpanOverloader + return thisApi.DeviceCreateErrorBuffer(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1689, Column 33 in dawn-webgpu.h")] + public static unsafe ExternalTextureImpl* DeviceCreateErrorExternalTexture(this Dawn thisApi, Span device) + { + // SpanOverloader + return thisApi.DeviceCreateErrorExternalTexture(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1690, Column 25 in dawn-webgpu.h")] + public static unsafe Texture* DeviceCreateErrorTexture(this Dawn thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateErrorTexture(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1690, Column 25 in dawn-webgpu.h")] + public static unsafe Texture* DeviceCreateErrorTexture(this Dawn thisApi, Span device, [Flow(FlowDirection.In)] TextureDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateErrorTexture(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1690, Column 25 in dawn-webgpu.h")] + public static unsafe Texture* DeviceCreateErrorTexture(this Dawn thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateErrorTexture(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1691, Column 33 in dawn-webgpu.h")] + public static unsafe ExternalTextureImpl* DeviceCreateExternalTexture(this Dawn thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan externalTextureDescriptor) + { + // SpanOverloader + return thisApi.DeviceCreateExternalTexture(device, in externalTextureDescriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1691, Column 33 in dawn-webgpu.h")] + public static unsafe ExternalTextureImpl* DeviceCreateExternalTexture(this Dawn thisApi, Span device, [Flow(FlowDirection.In)] ExternalTextureDescriptor* externalTextureDescriptor) + { + // SpanOverloader + return thisApi.DeviceCreateExternalTexture(ref device.GetPinnableReference(), externalTextureDescriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1691, Column 33 in dawn-webgpu.h")] + public static unsafe ExternalTextureImpl* DeviceCreateExternalTexture(this Dawn thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan externalTextureDescriptor) + { + // SpanOverloader + return thisApi.DeviceCreateExternalTexture(ref device.GetPinnableReference(), in externalTextureDescriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceForceLoss(this Dawn thisApi, Device* device, DeviceLostReason type, [Flow(FlowDirection.In)] ReadOnlySpan message) + { + // SpanOverloader + thisApi.DeviceForceLoss(device, type, in message.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceForceLoss(this Dawn thisApi, Span device, DeviceLostReason type, [Flow(FlowDirection.In)] byte* message) + { + // SpanOverloader + thisApi.DeviceForceLoss(ref device.GetPinnableReference(), type, message); + } + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceForceLoss(this Dawn thisApi, Span device, DeviceLostReason type, [Flow(FlowDirection.In)] ReadOnlySpan message) + { + // SpanOverloader + thisApi.DeviceForceLoss(ref device.GetPinnableReference(), type, in message.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1703, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceForceLoss(this Dawn thisApi, Span device, DeviceLostReason type, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message) + { + // SpanOverloader + thisApi.DeviceForceLoss(ref device.GetPinnableReference(), type, message); + } + + /// To be documented. + [NativeName("Src", "Line 1704, Column 25 in dawn-webgpu.h")] + public static unsafe Adapter* DeviceGetAdapter(this Dawn thisApi, Span device) + { + // SpanOverloader + return thisApi.DeviceGetAdapter(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceInjectError(this Dawn thisApi, Device* device, ErrorType type, [Flow(FlowDirection.In)] ReadOnlySpan message) + { + // SpanOverloader + thisApi.DeviceInjectError(device, type, in message.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceInjectError(this Dawn thisApi, Span device, ErrorType type, [Flow(FlowDirection.In)] byte* message) + { + // SpanOverloader + thisApi.DeviceInjectError(ref device.GetPinnableReference(), type, message); + } + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceInjectError(this Dawn thisApi, Span device, ErrorType type, [Flow(FlowDirection.In)] ReadOnlySpan message) + { + // SpanOverloader + thisApi.DeviceInjectError(ref device.GetPinnableReference(), type, in message.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1708, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceInjectError(this Dawn thisApi, Span device, ErrorType type, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string message) + { + // SpanOverloader + thisApi.DeviceInjectError(ref device.GetPinnableReference(), type, message); + } + + /// To be documented. + [NativeName("Src", "Line 1713, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceSetLoggingCallback(this Dawn thisApi, Device* device, PfnLoggingCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceSetLoggingCallback(device, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1713, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceSetLoggingCallback(this Dawn thisApi, Span device, PfnLoggingCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceSetLoggingCallback(ref device.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1713, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceSetLoggingCallback(this Dawn thisApi, Span device, PfnLoggingCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceSetLoggingCallback(ref device.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1715, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceTick(this Dawn thisApi, Span device) + { + // SpanOverloader + thisApi.DeviceTick(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1716, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceReference(this Dawn thisApi, Span device) + { + // SpanOverloader + thisApi.DeviceReference(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1717, Column 18 in dawn-webgpu.h")] + public static unsafe void DeviceRelease(this Dawn thisApi, Span device) + { + // SpanOverloader + thisApi.DeviceRelease(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1720, Column 18 in dawn-webgpu.h")] + public static unsafe void ExternalTextureDestroy(this Dawn thisApi, Span externalTexture) + { + // SpanOverloader + thisApi.ExternalTextureDestroy(ref externalTexture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + public static unsafe void ExternalTextureSetLabel(this Dawn thisApi, ExternalTextureImpl* externalTexture, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ExternalTextureSetLabel(externalTexture, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + public static unsafe void ExternalTextureSetLabel(this Dawn thisApi, Span externalTexture, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.ExternalTextureSetLabel(ref externalTexture.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + public static unsafe void ExternalTextureSetLabel(this Dawn thisApi, Span externalTexture, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ExternalTextureSetLabel(ref externalTexture.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1721, Column 18 in dawn-webgpu.h")] + public static unsafe void ExternalTextureSetLabel(this Dawn thisApi, Span externalTexture, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.ExternalTextureSetLabel(ref externalTexture.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1722, Column 18 in dawn-webgpu.h")] + public static unsafe void ExternalTextureReference(this Dawn thisApi, Span externalTexture) + { + // SpanOverloader + thisApi.ExternalTextureReference(ref externalTexture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1723, Column 18 in dawn-webgpu.h")] + public static unsafe void ExternalTextureRelease(this Dawn thisApi, Span externalTexture) + { + // SpanOverloader + thisApi.ExternalTextureRelease(ref externalTexture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1728, Column 18 in dawn-webgpu.h")] + public static unsafe void InstanceReference(this Dawn thisApi, Span instance) + { + // SpanOverloader + thisApi.InstanceReference(ref instance.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1729, Column 18 in dawn-webgpu.h")] + public static unsafe void InstanceRelease(this Dawn thisApi, Span instance) + { + // SpanOverloader + thisApi.InstanceRelease(ref instance.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1733, Column 18 in dawn-webgpu.h")] + public static unsafe void PipelineLayoutReference(this Dawn thisApi, Span pipelineLayout) + { + // SpanOverloader + thisApi.PipelineLayoutReference(ref pipelineLayout.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1734, Column 18 in dawn-webgpu.h")] + public static unsafe void PipelineLayoutRelease(this Dawn thisApi, Span pipelineLayout) + { + // SpanOverloader + thisApi.PipelineLayoutRelease(ref pipelineLayout.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1741, Column 18 in dawn-webgpu.h")] + public static unsafe void QuerySetReference(this Dawn thisApi, Span querySet) + { + // SpanOverloader + thisApi.QuerySetReference(ref querySet.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1742, Column 18 in dawn-webgpu.h")] + public static unsafe void QuerySetRelease(this Dawn thisApi, Span querySet) + { + // SpanOverloader + thisApi.QuerySetRelease(ref querySet.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, source, destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, source, destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, source, destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, source, in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, source, in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), destination, copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, destination, copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyExternalTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1745, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyExternalTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyExternalTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, source, destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, source, destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, source, destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, source, in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, source, in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), destination, copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(queue, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, destination, copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize, in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] CopyTextureForBrowserOptions* options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), options); + } + + /// To be documented. + [NativeName("Src", "Line 1746, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueCopyTextureForBrowser(this Dawn thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize, [Flow(FlowDirection.In)] ReadOnlySpan options) + { + // SpanOverloader + thisApi.QueueCopyTextureForBrowser(ref queue.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference(), in options.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1752, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueReference(this Dawn thisApi, Span queue) + { + // SpanOverloader + thisApi.QueueReference(ref queue.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1753, Column 18 in dawn-webgpu.h")] + public static unsafe void QueueRelease(this Dawn thisApi, Span queue) + { + // SpanOverloader + thisApi.QueueRelease(ref queue.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1756, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderBundleReference(this Dawn thisApi, Span renderBundle) + { + // SpanOverloader + thisApi.RenderBundleReference(ref renderBundle.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1757, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderBundleRelease(this Dawn thisApi, Span renderBundle) + { + // SpanOverloader + thisApi.RenderBundleRelease(ref renderBundle.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1773, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderBundleEncoderReference(this Dawn thisApi, Span renderBundleEncoder) + { + // SpanOverloader + thisApi.RenderBundleEncoderReference(ref renderBundleEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1774, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderBundleEncoderRelease(this Dawn thisApi, Span renderBundleEncoder) + { + // SpanOverloader + thisApi.RenderBundleEncoderRelease(ref renderBundleEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1784, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPassEncoderEndPass(this Dawn thisApi, Span renderPassEncoder) + { + // SpanOverloader + thisApi.RenderPassEncoderEndPass(ref renderPassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1798, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPassEncoderWriteTimestamp(this Dawn thisApi, RenderPassEncoder* renderPassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.RenderPassEncoderWriteTimestamp(renderPassEncoder, ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1798, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPassEncoderWriteTimestamp(this Dawn thisApi, Span renderPassEncoder, QuerySet* querySet, uint queryIndex) + { + // SpanOverloader + thisApi.RenderPassEncoderWriteTimestamp(ref renderPassEncoder.GetPinnableReference(), querySet, queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1798, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPassEncoderWriteTimestamp(this Dawn thisApi, Span renderPassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.RenderPassEncoderWriteTimestamp(ref renderPassEncoder.GetPinnableReference(), ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1799, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPassEncoderReference(this Dawn thisApi, Span renderPassEncoder) + { + // SpanOverloader + thisApi.RenderPassEncoderReference(ref renderPassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1800, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPassEncoderRelease(this Dawn thisApi, Span renderPassEncoder) + { + // SpanOverloader + thisApi.RenderPassEncoderRelease(ref renderPassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1805, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPipelineReference(this Dawn thisApi, Span renderPipeline) + { + // SpanOverloader + thisApi.RenderPipelineReference(ref renderPipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1806, Column 18 in dawn-webgpu.h")] + public static unsafe void RenderPipelineRelease(this Dawn thisApi, Span renderPipeline) + { + // SpanOverloader + thisApi.RenderPipelineRelease(ref renderPipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1810, Column 18 in dawn-webgpu.h")] + public static unsafe void SamplerReference(this Dawn thisApi, Span sampler) + { + // SpanOverloader + thisApi.SamplerReference(ref sampler.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1811, Column 18 in dawn-webgpu.h")] + public static unsafe void SamplerRelease(this Dawn thisApi, Span sampler) + { + // SpanOverloader + thisApi.SamplerRelease(ref sampler.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1816, Column 18 in dawn-webgpu.h")] + public static unsafe void ShaderModuleReference(this Dawn thisApi, Span shaderModule) + { + // SpanOverloader + thisApi.ShaderModuleReference(ref shaderModule.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1817, Column 18 in dawn-webgpu.h")] + public static unsafe void ShaderModuleRelease(this Dawn thisApi, Span shaderModule) + { + // SpanOverloader + thisApi.ShaderModuleRelease(ref shaderModule.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1820, Column 18 in dawn-webgpu.h")] + public static unsafe void SurfaceReference(this Dawn thisApi, Span surface) + { + // SpanOverloader + thisApi.SurfaceReference(ref surface.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1821, Column 18 in dawn-webgpu.h")] + public static unsafe void SurfaceRelease(this Dawn thisApi, Span surface) + { + // SpanOverloader + thisApi.SurfaceRelease(ref surface.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1824, Column 18 in dawn-webgpu.h")] + public static unsafe void SwapChainConfigure(this Dawn thisApi, Span swapChain, TextureFormat format, Silk.NET.WebGPU.TextureUsage allowedUsage, uint width, uint height) + { + // SpanOverloader + thisApi.SwapChainConfigure(ref swapChain.GetPinnableReference(), format, allowedUsage, width, height); + } + + /// To be documented. + [NativeName("Src", "Line 1827, Column 18 in dawn-webgpu.h")] + public static unsafe void SwapChainReference(this Dawn thisApi, Span swapChain) + { + // SpanOverloader + thisApi.SwapChainReference(ref swapChain.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1828, Column 18 in dawn-webgpu.h")] + public static unsafe void SwapChainRelease(this Dawn thisApi, Span swapChain) + { + // SpanOverloader + thisApi.SwapChainRelease(ref swapChain.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1842, Column 18 in dawn-webgpu.h")] + public static unsafe void TextureReference(this Dawn thisApi, Span texture) + { + // SpanOverloader + thisApi.TextureReference(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1843, Column 18 in dawn-webgpu.h")] + public static unsafe void TextureRelease(this Dawn thisApi, Span texture) + { + // SpanOverloader + thisApi.TextureRelease(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1847, Column 18 in dawn-webgpu.h")] + public static unsafe void TextureViewReference(this Dawn thisApi, Span textureView) + { + // SpanOverloader + thisApi.TextureViewReference(ref textureView.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1848, Column 18 in dawn-webgpu.h")] + public static unsafe void TextureViewRelease(this Dawn thisApi, Span textureView) + { + // SpanOverloader + thisApi.TextureViewRelease(ref textureView.GetPinnableReference()); + } + + } +} + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Enums/AlphaMode.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Enums/AlphaMode.gen.cs new file mode 100644 index 0000000000..1abc445c01 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Enums/AlphaMode.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [Flags] + [NativeName("Name", "WGPUAlphaMode")] + public enum AlphaMode : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUAlphaMode_Premultiplied")] + Premultiplied = 0x0, + [NativeName("Name", "WGPUAlphaMode_Unpremultiplied")] + Unpremultiplied = 0x1, + [NativeName("Name", "WGPUAlphaMode_Opaque")] + Opaque = 0x2, + [NativeName("Name", "WGPUAlphaMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Enums/LoggingType.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Enums/LoggingType.gen.cs new file mode 100644 index 0000000000..2e6fd354c1 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Enums/LoggingType.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [Flags] + [NativeName("Name", "WGPULoggingType")] + public enum LoggingType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPULoggingType_Verbose")] + Verbose = 0x0, + [NativeName("Name", "WGPULoggingType_Info")] + Info = 0x1, + [NativeName("Name", "WGPULoggingType_Warning")] + Warning = 0x2, + [NativeName("Name", "WGPULoggingType_Error")] + Error = 0x3, + [NativeName("Name", "WGPULoggingType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Silk.NET.WebGPU.Extensions.Dawn.csproj b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Silk.NET.WebGPU.Extensions.Dawn.csproj new file mode 100644 index 0000000000..cf00c6c62a --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Silk.NET.WebGPU.Extensions.Dawn.csproj @@ -0,0 +1,14 @@ + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0 + true + preview + + + + + + + + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/CopyTextureForBrowserOptions.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/CopyTextureForBrowserOptions.gen.cs new file mode 100644 index 0000000000..d25185b7f0 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/CopyTextureForBrowserOptions.gen.cs @@ -0,0 +1,127 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUCopyTextureForBrowserOptions")] + public unsafe partial struct CopyTextureForBrowserOptions + { + public CopyTextureForBrowserOptions + ( + ChainedStruct* nextInChain = null, + bool? flipY = null, + bool? needsColorSpaceConversion = null, + AlphaMode? srcAlphaMode = null, + float* srcTransferFunctionParameters = null, + float* conversionMatrix = null, + float* dstTransferFunctionParameters = null, + AlphaMode? dstAlphaMode = null, + bool? internalUsage = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (flipY is not null) + { + FlipY = flipY.Value; + } + + if (needsColorSpaceConversion is not null) + { + NeedsColorSpaceConversion = needsColorSpaceConversion.Value; + } + + if (srcAlphaMode is not null) + { + SrcAlphaMode = srcAlphaMode.Value; + } + + if (srcTransferFunctionParameters is not null) + { + SrcTransferFunctionParameters = srcTransferFunctionParameters; + } + + if (conversionMatrix is not null) + { + ConversionMatrix = conversionMatrix; + } + + if (dstTransferFunctionParameters is not null) + { + DstTransferFunctionParameters = dstTransferFunctionParameters; + } + + if (dstAlphaMode is not null) + { + DstAlphaMode = dstAlphaMode.Value; + } + + if (internalUsage is not null) + { + InternalUsage = internalUsage.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "flipY")] + public bool FlipY; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "needsColorSpaceConversion")] + public bool NeedsColorSpaceConversion; + + [NativeName("Type", "WGPUAlphaMode")] + [NativeName("Type.Name", "WGPUAlphaMode")] + [NativeName("Name", "srcAlphaMode")] + public AlphaMode SrcAlphaMode; + + [NativeName("Type", "const float *")] + [NativeName("Type.Name", "const float *")] + [NativeName("Name", "srcTransferFunctionParameters")] + public float* SrcTransferFunctionParameters; + + [NativeName("Type", "const float *")] + [NativeName("Type.Name", "const float *")] + [NativeName("Name", "conversionMatrix")] + public float* ConversionMatrix; + + [NativeName("Type", "const float *")] + [NativeName("Type.Name", "const float *")] + [NativeName("Name", "dstTransferFunctionParameters")] + public float* DstTransferFunctionParameters; + + [NativeName("Type", "WGPUAlphaMode")] + [NativeName("Type.Name", "WGPUAlphaMode")] + [NativeName("Name", "dstAlphaMode")] + public AlphaMode DstAlphaMode; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "internalUsage")] + public bool InternalUsage; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnAdapterPropertiesPowerPreference.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnAdapterPropertiesPowerPreference.gen.cs new file mode 100644 index 0000000000..71f798c00c --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnAdapterPropertiesPowerPreference.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUDawnAdapterPropertiesPowerPreference")] + public unsafe partial struct DawnAdapterPropertiesPowerPreference + { + public DawnAdapterPropertiesPowerPreference + ( + ChainedStructOut? chain = null, + PowerPreference? powerPreference = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (powerPreference is not null) + { + PowerPreference = powerPreference.Value; + } + } + + + [NativeName("Type", "WGPUChainedStructOut")] + [NativeName("Type.Name", "WGPUChainedStructOut")] + [NativeName("Name", "chain")] + public ChainedStructOut Chain; + + [NativeName("Type", "WGPUPowerPreference")] + [NativeName("Type.Name", "WGPUPowerPreference")] + [NativeName("Name", "powerPreference")] + public PowerPreference PowerPreference; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnCacheDeviceDescriptor.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnCacheDeviceDescriptor.gen.cs new file mode 100644 index 0000000000..fb499779b7 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnCacheDeviceDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUDawnCacheDeviceDescriptor")] + public unsafe partial struct DawnCacheDeviceDescriptor + { + public DawnCacheDeviceDescriptor + ( + ChainedStruct? chain = null, + byte* isolationKey = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (isolationKey is not null) + { + IsolationKey = isolationKey; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "isolationKey")] + public byte* IsolationKey; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnEncoderInternalUsageDescriptor.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnEncoderInternalUsageDescriptor.gen.cs new file mode 100644 index 0000000000..d4a23f272d --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnEncoderInternalUsageDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUDawnEncoderInternalUsageDescriptor")] + public unsafe partial struct DawnEncoderInternalUsageDescriptor + { + public DawnEncoderInternalUsageDescriptor + ( + ChainedStruct? chain = null, + bool? useInternalUsages = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (useInternalUsages is not null) + { + UseInternalUsages = useInternalUsages.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "useInternalUsages")] + public bool UseInternalUsages; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnInstanceDescriptor.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnInstanceDescriptor.gen.cs new file mode 100644 index 0000000000..9114374395 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnInstanceDescriptor.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUDawnInstanceDescriptor")] + public unsafe partial struct DawnInstanceDescriptor + { + public DawnInstanceDescriptor + ( + ChainedStruct? chain = null, + uint? additionalRuntimeSearchPathsCount = null, + byte** additionalRuntimeSearchPaths = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (additionalRuntimeSearchPathsCount is not null) + { + AdditionalRuntimeSearchPathsCount = additionalRuntimeSearchPathsCount.Value; + } + + if (additionalRuntimeSearchPaths is not null) + { + AdditionalRuntimeSearchPaths = additionalRuntimeSearchPaths; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "additionalRuntimeSearchPathsCount")] + public uint AdditionalRuntimeSearchPathsCount; + + [NativeName("Type", "const char *const *")] + [NativeName("Type.Name", "const char *const *")] + [NativeName("Name", "additionalRuntimeSearchPaths")] + public byte** AdditionalRuntimeSearchPaths; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnTextureInternalUsageDescriptor.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnTextureInternalUsageDescriptor.gen.cs new file mode 100644 index 0000000000..85e40a5518 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnTextureInternalUsageDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUDawnTextureInternalUsageDescriptor")] + public unsafe partial struct DawnTextureInternalUsageDescriptor + { + public DawnTextureInternalUsageDescriptor + ( + ChainedStruct? chain = null, + Silk.NET.WebGPU.TextureUsage? internalUsage = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (internalUsage is not null) + { + InternalUsage = internalUsage.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "WGPUTextureUsageFlags")] + [NativeName("Type.Name", "WGPUTextureUsageFlags")] + [NativeName("Name", "internalUsage")] + public Silk.NET.WebGPU.TextureUsage InternalUsage; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnTogglesDeviceDescriptor.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnTogglesDeviceDescriptor.gen.cs new file mode 100644 index 0000000000..fb10958af8 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/DawnTogglesDeviceDescriptor.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUDawnTogglesDeviceDescriptor")] + public unsafe partial struct DawnTogglesDeviceDescriptor + { + public DawnTogglesDeviceDescriptor + ( + ChainedStruct? chain = null, + uint? forceEnabledTogglesCount = null, + byte** forceEnabledToggles = null, + uint? forceDisabledTogglesCount = null, + byte** forceDisabledToggles = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (forceEnabledTogglesCount is not null) + { + ForceEnabledTogglesCount = forceEnabledTogglesCount.Value; + } + + if (forceEnabledToggles is not null) + { + ForceEnabledToggles = forceEnabledToggles; + } + + if (forceDisabledTogglesCount is not null) + { + ForceDisabledTogglesCount = forceDisabledTogglesCount.Value; + } + + if (forceDisabledToggles is not null) + { + ForceDisabledToggles = forceDisabledToggles; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "forceEnabledTogglesCount")] + public uint ForceEnabledTogglesCount; + + [NativeName("Type", "const char *const *")] + [NativeName("Type.Name", "const char *const *")] + [NativeName("Name", "forceEnabledToggles")] + public byte** ForceEnabledToggles; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "forceDisabledTogglesCount")] + public uint ForceDisabledTogglesCount; + + [NativeName("Type", "const char *const *")] + [NativeName("Type.Name", "const char *const *")] + [NativeName("Name", "forceDisabledToggles")] + public byte** ForceDisabledToggles; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/Extent2D.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/Extent2D.gen.cs new file mode 100644 index 0000000000..7238d4d54d --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/Extent2D.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUExtent2D")] + public unsafe partial struct Extent2D + { + public Extent2D + ( + uint? width = null, + uint? height = null + ) : this() + { + if (width is not null) + { + Width = width.Value; + } + + if (height is not null) + { + Height = height.Value; + } + } + + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "width")] + public uint Width; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "height")] + public uint Height; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureBindingEntry.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureBindingEntry.gen.cs new file mode 100644 index 0000000000..e7905da22d --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureBindingEntry.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUExternalTextureBindingEntry")] + public unsafe partial struct ExternalTextureBindingEntry + { + public ExternalTextureBindingEntry + ( + ChainedStruct? chain = null, + ExternalTextureImpl* externalTexture = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (externalTexture is not null) + { + ExternalTexture = externalTexture; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "WGPUExternalTexture")] + [NativeName("Type.Name", "WGPUExternalTexture")] + [NativeName("Name", "externalTexture")] + public ExternalTextureImpl* ExternalTexture; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureBindingLayout.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureBindingLayout.gen.cs new file mode 100644 index 0000000000..5d1c741eb1 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureBindingLayout.gen.cs @@ -0,0 +1,39 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUExternalTextureBindingLayout")] + public unsafe partial struct ExternalTextureBindingLayout + { + public ExternalTextureBindingLayout + ( + ChainedStruct? chain = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureDescriptor.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureDescriptor.gen.cs new file mode 100644 index 0000000000..9735c68234 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureDescriptor.gen.cs @@ -0,0 +1,138 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUExternalTextureDescriptor")] + public unsafe partial struct ExternalTextureDescriptor + { + public ExternalTextureDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + TextureView* plane0 = null, + TextureView* plane1 = null, + Extent2D? visibleRect = null, + bool? doYuvToRgbConversionOnly = null, + float* yuvToRgbConversionMatrix = null, + float* srcTransferFunctionParameters = null, + float* dstTransferFunctionParameters = null, + float* gamutConversionMatrix = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (plane0 is not null) + { + Plane0 = plane0; + } + + if (plane1 is not null) + { + Plane1 = plane1; + } + + if (visibleRect is not null) + { + VisibleRect = visibleRect.Value; + } + + if (doYuvToRgbConversionOnly is not null) + { + DoYuvToRgbConversionOnly = doYuvToRgbConversionOnly.Value; + } + + if (yuvToRgbConversionMatrix is not null) + { + YuvToRgbConversionMatrix = yuvToRgbConversionMatrix; + } + + if (srcTransferFunctionParameters is not null) + { + SrcTransferFunctionParameters = srcTransferFunctionParameters; + } + + if (dstTransferFunctionParameters is not null) + { + DstTransferFunctionParameters = dstTransferFunctionParameters; + } + + if (gamutConversionMatrix is not null) + { + GamutConversionMatrix = gamutConversionMatrix; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUTextureView")] + [NativeName("Type.Name", "WGPUTextureView")] + [NativeName("Name", "plane0")] + public TextureView* Plane0; + + [NativeName("Type", "WGPUTextureView")] + [NativeName("Type.Name", "WGPUTextureView")] + [NativeName("Name", "plane1")] + public TextureView* Plane1; + + [NativeName("Type", "WGPUExtent2D")] + [NativeName("Type.Name", "WGPUExtent2D")] + [NativeName("Name", "visibleRect")] + public Extent2D VisibleRect; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "doYuvToRgbConversionOnly")] + public bool DoYuvToRgbConversionOnly; + + [NativeName("Type", "const float *")] + [NativeName("Type.Name", "const float *")] + [NativeName("Name", "yuvToRgbConversionMatrix")] + public float* YuvToRgbConversionMatrix; + + [NativeName("Type", "const float *")] + [NativeName("Type.Name", "const float *")] + [NativeName("Name", "srcTransferFunctionParameters")] + public float* SrcTransferFunctionParameters; + + [NativeName("Type", "const float *")] + [NativeName("Type.Name", "const float *")] + [NativeName("Name", "dstTransferFunctionParameters")] + public float* DstTransferFunctionParameters; + + [NativeName("Type", "const float *")] + [NativeName("Type.Name", "const float *")] + [NativeName("Name", "gamutConversionMatrix")] + public float* GamutConversionMatrix; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureImpl.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureImpl.gen.cs new file mode 100644 index 0000000000..4624f7691c --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ExternalTextureImpl.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUExternalTextureImpl")] + public unsafe partial struct ExternalTextureImpl + { + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ImageCopyExternalTexture.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ImageCopyExternalTexture.gen.cs new file mode 100644 index 0000000000..63b4907c88 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/ImageCopyExternalTexture.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUImageCopyExternalTexture")] + public unsafe partial struct ImageCopyExternalTexture + { + public ImageCopyExternalTexture + ( + ChainedStruct* nextInChain = null, + ExternalTextureImpl* externalTexture = null, + Origin3D? origin = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (externalTexture is not null) + { + ExternalTexture = externalTexture; + } + + if (origin is not null) + { + Origin = origin.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUExternalTexture")] + [NativeName("Type.Name", "WGPUExternalTexture")] + [NativeName("Name", "externalTexture")] + public ExternalTextureImpl* ExternalTexture; + + [NativeName("Type", "WGPUOrigin3D")] + [NativeName("Type.Name", "WGPUOrigin3D")] + [NativeName("Name", "origin")] + public Origin3D Origin; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/PfnLoggingCallback.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/PfnLoggingCallback.gen.cs new file mode 100644 index 0000000000..4aaff56c4f --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/PfnLoggingCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + public unsafe readonly struct PfnLoggingCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnLoggingCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnLoggingCallback + ( + LoggingCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnLoggingCallback From(LoggingCallback proc) => new PfnLoggingCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnLoggingCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnLoggingCallback(nint pfn) + => new PfnLoggingCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnLoggingCallback(LoggingCallback proc) + => new PfnLoggingCallback(proc); + + public static explicit operator LoggingCallback(PfnLoggingCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnLoggingCallback pfn) => pfn.Handle; + public static implicit operator PfnLoggingCallback(delegate* unmanaged[Cdecl] ptr) => new PfnLoggingCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void LoggingCallback(LoggingType arg0, byte* arg1, void* arg2); +} + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/SurfaceDescriptorFromWindowsCoreWindow.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/SurfaceDescriptorFromWindowsCoreWindow.gen.cs new file mode 100644 index 0000000000..22c0c1d0e6 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/SurfaceDescriptorFromWindowsCoreWindow.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromWindowsCoreWindow")] + public unsafe partial struct SurfaceDescriptorFromWindowsCoreWindow + { + public SurfaceDescriptorFromWindowsCoreWindow + ( + ChainedStruct? chain = null, + void* coreWindow = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (coreWindow is not null) + { + CoreWindow = coreWindow; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "coreWindow")] + public void* CoreWindow; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/SurfaceDescriptorFromWindowsSwapChainPanel.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/SurfaceDescriptorFromWindowsSwapChainPanel.gen.cs new file mode 100644 index 0000000000..e757611386 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Dawn/Structs/SurfaceDescriptorFromWindowsSwapChainPanel.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.Dawn +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromWindowsSwapChainPanel")] + public unsafe partial struct SurfaceDescriptorFromWindowsSwapChainPanel + { + public SurfaceDescriptorFromWindowsSwapChainPanel + ( + ChainedStruct? chain = null, + void* swapChainPanel = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (swapChainPanel is not null) + { + SwapChainPanel = swapChainPanel; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "swapChainPanel")] + public void* SwapChainPanel; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Disposal/Silk.NET.WebGPU.Extensions.Disposal.csproj b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Disposal/Silk.NET.WebGPU.Extensions.Disposal.csproj new file mode 100644 index 0000000000..a93a700a60 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Disposal/Silk.NET.WebGPU.Extensions.Disposal.csproj @@ -0,0 +1,15 @@ + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0 + true + + + + + + + + + + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Disposal/WebGPUDisposal.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Disposal/WebGPUDisposal.cs new file mode 100644 index 0000000000..f1125fd78a --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.Disposal/WebGPUDisposal.cs @@ -0,0 +1,126 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using Silk.NET.WebGPU.Extensions.WGPU; + +namespace Silk.NET.WebGPU.Extensions.Disposal +{ + public unsafe class WebGPUDisposal + { + private readonly WebGPU _webGpu; + + private readonly Dawn.Dawn _dawn; + private readonly Wgpu _wgpu; + + public WebGPUDisposal(WebGPU webGpu) + { + _webGpu = webGpu; + + webGpu.TryGetDeviceExtension(null, out _dawn); + webGpu.TryGetDeviceExtension(null, out _wgpu); + } + + public void Dispose(TextureView* textureView) + { + _wgpu?.TextureViewDrop(textureView); + _dawn?.TextureViewRelease(textureView); + } + + public void Dispose(ShaderModule* shaderModule) + { + _wgpu?.ShaderModuleDrop(shaderModule); + _dawn?.ShaderModuleRelease(shaderModule); + } + + public void Dispose(RenderPipeline* renderPipeline) + { + _wgpu?.RenderPipelineDrop(renderPipeline); + _dawn?.RenderPipelineRelease(renderPipeline); + } + + public void Dispose(RenderBundle* renderBundle) + { + _wgpu?.RenderBundleDrop(renderBundle); + _dawn?.RenderBundleRelease(renderBundle); + } + + public void Dispose(PipelineLayout* pipelineLayout) + { + _wgpu?.PipelineLayoutDrop(pipelineLayout); + _dawn?.PipelineLayoutRelease(pipelineLayout); + } + + public void Dispose(Device* device) + { + _wgpu?.DeviceDrop(device); + _dawn?.DeviceRelease(device); + } + + public void Dispose(CommandEncoder* commandEncoder) + { + _wgpu?.CommandEncoderDrop(commandEncoder); + _dawn?.CommandEncoderRelease(commandEncoder); + } + + public void Dispose(CommandBuffer* commandBuffer) + { + _wgpu?.CommandBufferDrop(commandBuffer); + _dawn?.CommandBufferRelease(commandBuffer); + } + + public void Dispose(ComputePipeline* computePipeline) + { + _wgpu?.ComputePipelineDrop(computePipeline); + _dawn?.ComputePipelineRelease(computePipeline); + } + + public void Dispose(Adapter* adapter) + { + _wgpu?.AdapterDrop(adapter); + _dawn?.AdapterRelease(adapter); + } + + public void Dispose(BindGroup* bindGroup) + { + _wgpu?.BindGroupDrop(bindGroup); + _dawn?.BindGroupRelease(bindGroup); + } + + public void Dispose(BindGroupLayout* bindGroupLayout) + { + _wgpu?.BindGroupLayoutDrop(bindGroupLayout); + _dawn?.BindGroupLayoutRelease(bindGroupLayout); + } + + public void Dispose(Buffer* buffer) + { + _wgpu?.BufferDrop(buffer); + _dawn?.BufferRelease(buffer); + } + + public void Dispose(Surface* surface) + { + _wgpu?.SurfaceDrop(surface); + _dawn?.SurfaceRelease(surface); + } + + public void Dispose(Texture* texture) + { + _wgpu?.TextureDrop(texture); + _dawn?.TextureRelease(texture); + } + + public void Dispose(Sampler* sampler) + { + _wgpu?.SamplerDrop(sampler); + _dawn?.SamplerRelease(sampler); + } + + public void Dispose(QuerySet* querySet) + { + _wgpu?.QuerySetDrop(querySet); + _dawn?.QuerySetRelease(querySet); + } + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/LogLevel.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/LogLevel.gen.cs new file mode 100644 index 0000000000..a455aabaa6 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/LogLevel.gen.cs @@ -0,0 +1,33 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [Flags] + [NativeName("Name", "WGPULogLevel")] + public enum LogLevel : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPULogLevel_Off")] + Off = 0x0, + [NativeName("Name", "WGPULogLevel_Error")] + Error = 0x1, + [NativeName("Name", "WGPULogLevel_Warn")] + Warn = 0x2, + [NativeName("Name", "WGPULogLevel_Info")] + Info = 0x3, + [NativeName("Name", "WGPULogLevel_Debug")] + Debug = 0x4, + [NativeName("Name", "WGPULogLevel_Trace")] + Trace = 0x5, + [NativeName("Name", "WGPULogLevel_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/NativeFeature.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/NativeFeature.gen.cs new file mode 100644 index 0000000000..bc64cd0364 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/NativeFeature.gen.cs @@ -0,0 +1,26 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUNativeFeature")] + public enum NativeFeature : int + { + [NativeName("Name", "WGPUNativeFeature_PUSH_CONSTANTS")] + PushConstants = 0x60000001, + [NativeName("Name", "WGPUNativeFeature_TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES")] + TextureAdapterSpecificFormatFeatures = 0x60000002, + [NativeName("Name", "WGPUNativeFeature_MULTI_DRAW_INDIRECT")] + MultiDrawIndirect = 0x60000003, + [NativeName("Name", "WGPUNativeFeature_MULTI_DRAW_INDIRECT_COUNT")] + MultiDrawIndirectCount = 0x60000004, + [NativeName("Name", "WGPUNativeFeature_VERTEX_WRITABLE_STORAGE")] + VertexWritableStorage = 0x60000005, + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/NativeSType.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/NativeSType.gen.cs new file mode 100644 index 0000000000..49063edfb8 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Enums/NativeSType.gen.cs @@ -0,0 +1,30 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUNativeSType")] + public enum NativeSType : int + { + [NativeName("Name", "WGPUSType_DeviceExtras")] + STypeDeviceExtras = 0x60000001, + [NativeName("Name", "WGPUSType_AdapterExtras")] + STypeAdapterExtras = 0x60000002, + [NativeName("Name", "WGPUSType_RequiredLimitsExtras")] + STypeRequiredLimitsExtras = 0x60000003, + [NativeName("Name", "WGPUSType_PipelineLayoutExtras")] + STypePipelineLayoutExtras = 0x60000004, + [NativeName("Name", "WGPUSType_ShaderModuleGLSLDescriptor")] + STypeShaderModuleGlsldescriptor = 0x60000005, + [NativeName("Name", "WGPUSType_SupportedLimitsExtras")] + STypeSupportedLimitsExtras = 0x60000003, + [NativeName("Name", "WGPUNativeSType_Force32")] + NativeSTypeForce32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Silk.NET.WebGPU.Extensions.WGPU.csproj b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Silk.NET.WebGPU.Extensions.WGPU.csproj new file mode 100644 index 0000000000..cf00c6c62a --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Silk.NET.WebGPU.Extensions.WGPU.csproj @@ -0,0 +1,14 @@ + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0 + true + preview + + + + + + + + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/AdapterExtras.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/AdapterExtras.gen.cs new file mode 100644 index 0000000000..ab2057e66b --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/AdapterExtras.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUAdapterExtras")] + public unsafe partial struct AdapterExtras + { + public AdapterExtras + ( + ChainedStruct? chain = null, + BackendType? backend = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (backend is not null) + { + Backend = backend.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "WGPUBackendType")] + [NativeName("Type.Name", "WGPUBackendType")] + [NativeName("Name", "backend")] + public BackendType Backend; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/DeviceExtras.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/DeviceExtras.gen.cs new file mode 100644 index 0000000000..992f011355 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/DeviceExtras.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUDeviceExtras")] + public unsafe partial struct DeviceExtras + { + public DeviceExtras + ( + ChainedStruct? chain = null, + byte* tracePath = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (tracePath is not null) + { + TracePath = tracePath; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "tracePath")] + public byte* TracePath; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/GlobalReport.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/GlobalReport.gen.cs new file mode 100644 index 0000000000..f123458134 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/GlobalReport.gen.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUGlobalReport")] + public unsafe partial struct GlobalReport + { + public GlobalReport + ( + StorageReport? surfaces = null, + BackendType? backendType = null, + HubReport? vulkan = null, + HubReport? metal = null, + HubReport? dx12 = null, + HubReport? dx11 = null, + HubReport? gl = null + ) : this() + { + if (surfaces is not null) + { + Surfaces = surfaces.Value; + } + + if (backendType is not null) + { + BackendType = backendType.Value; + } + + if (vulkan is not null) + { + Vulkan = vulkan.Value; + } + + if (metal is not null) + { + Metal = metal.Value; + } + + if (dx12 is not null) + { + Dx12 = dx12.Value; + } + + if (dx11 is not null) + { + Dx11 = dx11.Value; + } + + if (gl is not null) + { + Gl = gl.Value; + } + } + + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "surfaces")] + public StorageReport Surfaces; + + [NativeName("Type", "WGPUBackendType")] + [NativeName("Type.Name", "WGPUBackendType")] + [NativeName("Name", "backendType")] + public BackendType BackendType; + + [NativeName("Type", "WGPUHubReport")] + [NativeName("Type.Name", "WGPUHubReport")] + [NativeName("Name", "vulkan")] + public HubReport Vulkan; + + [NativeName("Type", "WGPUHubReport")] + [NativeName("Type.Name", "WGPUHubReport")] + [NativeName("Name", "metal")] + public HubReport Metal; + + [NativeName("Type", "WGPUHubReport")] + [NativeName("Type.Name", "WGPUHubReport")] + [NativeName("Name", "dx12")] + public HubReport Dx12; + + [NativeName("Type", "WGPUHubReport")] + [NativeName("Type.Name", "WGPUHubReport")] + [NativeName("Name", "dx11")] + public HubReport Dx11; + + [NativeName("Type", "WGPUHubReport")] + [NativeName("Type.Name", "WGPUHubReport")] + [NativeName("Name", "gl")] + public HubReport Gl; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/HubReport.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/HubReport.gen.cs new file mode 100644 index 0000000000..7c9ce7c3a1 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/HubReport.gen.cs @@ -0,0 +1,193 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUHubReport")] + public unsafe partial struct HubReport + { + public HubReport + ( + StorageReport? adapters = null, + StorageReport? devices = null, + StorageReport? pipelineLayouts = null, + StorageReport? shaderModules = null, + StorageReport? bindGroupLayouts = null, + StorageReport? bindGroups = null, + StorageReport? commandBuffers = null, + StorageReport? renderBundles = null, + StorageReport? renderPipelines = null, + StorageReport? computePipelines = null, + StorageReport? querySets = null, + StorageReport? buffers = null, + StorageReport? textures = null, + StorageReport? textureViews = null, + StorageReport? samplers = null + ) : this() + { + if (adapters is not null) + { + Adapters = adapters.Value; + } + + if (devices is not null) + { + Devices = devices.Value; + } + + if (pipelineLayouts is not null) + { + PipelineLayouts = pipelineLayouts.Value; + } + + if (shaderModules is not null) + { + ShaderModules = shaderModules.Value; + } + + if (bindGroupLayouts is not null) + { + BindGroupLayouts = bindGroupLayouts.Value; + } + + if (bindGroups is not null) + { + BindGroups = bindGroups.Value; + } + + if (commandBuffers is not null) + { + CommandBuffers = commandBuffers.Value; + } + + if (renderBundles is not null) + { + RenderBundles = renderBundles.Value; + } + + if (renderPipelines is not null) + { + RenderPipelines = renderPipelines.Value; + } + + if (computePipelines is not null) + { + ComputePipelines = computePipelines.Value; + } + + if (querySets is not null) + { + QuerySets = querySets.Value; + } + + if (buffers is not null) + { + Buffers = buffers.Value; + } + + if (textures is not null) + { + Textures = textures.Value; + } + + if (textureViews is not null) + { + TextureViews = textureViews.Value; + } + + if (samplers is not null) + { + Samplers = samplers.Value; + } + } + + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "adapters")] + public StorageReport Adapters; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "devices")] + public StorageReport Devices; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "pipelineLayouts")] + public StorageReport PipelineLayouts; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "shaderModules")] + public StorageReport ShaderModules; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "bindGroupLayouts")] + public StorageReport BindGroupLayouts; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "bindGroups")] + public StorageReport BindGroups; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "commandBuffers")] + public StorageReport CommandBuffers; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "renderBundles")] + public StorageReport RenderBundles; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "renderPipelines")] + public StorageReport RenderPipelines; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "computePipelines")] + public StorageReport ComputePipelines; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "querySets")] + public StorageReport QuerySets; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "buffers")] + public StorageReport Buffers; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "textures")] + public StorageReport Textures; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "textureViews")] + public StorageReport TextureViews; + + [NativeName("Type", "WGPUStorageReport")] + [NativeName("Type.Name", "WGPUStorageReport")] + [NativeName("Name", "samplers")] + public StorageReport Samplers; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PfnLogCallback.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PfnLogCallback.gen.cs new file mode 100644 index 0000000000..dcebb8af27 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PfnLogCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + public unsafe readonly struct PfnLogCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnLogCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnLogCallback + ( + LogCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnLogCallback From(LogCallback proc) => new PfnLogCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnLogCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnLogCallback(nint pfn) + => new PfnLogCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnLogCallback(LogCallback proc) + => new PfnLogCallback(proc); + + public static explicit operator LogCallback(PfnLogCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnLogCallback pfn) => pfn.Handle; + public static implicit operator PfnLogCallback(delegate* unmanaged[Cdecl] ptr) => new PfnLogCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void LogCallback(LogLevel arg0, byte* arg1, void* arg2); +} + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PipelineLayoutExtras.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PipelineLayoutExtras.gen.cs new file mode 100644 index 0000000000..2f774426d8 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PipelineLayoutExtras.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUPipelineLayoutExtras")] + public unsafe partial struct PipelineLayoutExtras + { + public PipelineLayoutExtras + ( + ChainedStruct? chain = null, + uint? pushConstantRangeCount = null, + PushConstantRange* pushConstantRanges = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (pushConstantRangeCount is not null) + { + PushConstantRangeCount = pushConstantRangeCount.Value; + } + + if (pushConstantRanges is not null) + { + PushConstantRanges = pushConstantRanges; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "pushConstantRangeCount")] + public uint PushConstantRangeCount; + + [NativeName("Type", "WGPUPushConstantRange *")] + [NativeName("Type.Name", "WGPUPushConstantRange *")] + [NativeName("Name", "pushConstantRanges")] + public PushConstantRange* PushConstantRanges; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PushConstantRange.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PushConstantRange.gen.cs new file mode 100644 index 0000000000..c22ea453c7 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/PushConstantRange.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUPushConstantRange")] + public unsafe partial struct PushConstantRange + { + public PushConstantRange + ( + Silk.NET.WebGPU.ShaderStage? stages = null, + uint? start = null, + uint? end = null + ) : this() + { + if (stages is not null) + { + Stages = stages.Value; + } + + if (start is not null) + { + Start = start.Value; + } + + if (end is not null) + { + End = end.Value; + } + } + + + [NativeName("Type", "WGPUShaderStageFlags")] + [NativeName("Type.Name", "WGPUShaderStageFlags")] + [NativeName("Name", "stages")] + public Silk.NET.WebGPU.ShaderStage Stages; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "start")] + public uint Start; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "end")] + public uint End; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/RequiredLimitsExtras.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/RequiredLimitsExtras.gen.cs new file mode 100644 index 0000000000..20ff2b0423 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/RequiredLimitsExtras.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPURequiredLimitsExtras")] + public unsafe partial struct RequiredLimitsExtras + { + public RequiredLimitsExtras + ( + ChainedStruct? chain = null, + uint? maxPushConstantSize = null, + ulong? maxBufferSize = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (maxPushConstantSize is not null) + { + MaxPushConstantSize = maxPushConstantSize.Value; + } + + if (maxBufferSize is not null) + { + MaxBufferSize = maxBufferSize.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxPushConstantSize")] + public uint MaxPushConstantSize; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "maxBufferSize")] + public ulong MaxBufferSize; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/ShaderDefine.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/ShaderDefine.gen.cs new file mode 100644 index 0000000000..0274941ca1 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/ShaderDefine.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUShaderDefine")] + public unsafe partial struct ShaderDefine + { + public ShaderDefine + ( + byte* name = null, + byte* value = null + ) : this() + { + if (name is not null) + { + Name = name; + } + + if (value is not null) + { + Value = value; + } + } + + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "name")] + public byte* Name; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "value")] + public byte* Value; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/ShaderModuleGLSLDescriptor.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/ShaderModuleGLSLDescriptor.gen.cs new file mode 100644 index 0000000000..e01f7717c3 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/ShaderModuleGLSLDescriptor.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUShaderModuleGLSLDescriptor")] + public unsafe partial struct ShaderModuleGLSLDescriptor + { + public ShaderModuleGLSLDescriptor + ( + ChainedStruct? chain = null, + ShaderStage? stage = null, + byte* code = null, + uint? defineCount = null, + ShaderDefine* defines = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (stage is not null) + { + Stage = stage.Value; + } + + if (code is not null) + { + Code = code; + } + + if (defineCount is not null) + { + DefineCount = defineCount.Value; + } + + if (defines is not null) + { + Defines = defines; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "WGPUShaderStage")] + [NativeName("Type.Name", "WGPUShaderStage")] + [NativeName("Name", "stage")] + public ShaderStage Stage; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "code")] + public byte* Code; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "defineCount")] + public uint DefineCount; + + [NativeName("Type", "WGPUShaderDefine *")] + [NativeName("Type.Name", "WGPUShaderDefine *")] + [NativeName("Name", "defines")] + public ShaderDefine* Defines; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/StorageReport.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/StorageReport.gen.cs new file mode 100644 index 0000000000..2846e8b214 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/StorageReport.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUStorageReport")] + public unsafe partial struct StorageReport + { + public StorageReport + ( + nuint? numOccupied = null, + nuint? numVacant = null, + nuint? numError = null, + nuint? elementSize = null + ) : this() + { + if (numOccupied is not null) + { + NumOccupied = numOccupied.Value; + } + + if (numVacant is not null) + { + NumVacant = numVacant.Value; + } + + if (numError is not null) + { + NumError = numError.Value; + } + + if (elementSize is not null) + { + ElementSize = elementSize.Value; + } + } + + + [NativeName("Type", "size_t")] + [NativeName("Type.Name", "size_t")] + [NativeName("Name", "numOccupied")] + public nuint NumOccupied; + + [NativeName("Type", "size_t")] + [NativeName("Type.Name", "size_t")] + [NativeName("Name", "numVacant")] + public nuint NumVacant; + + [NativeName("Type", "size_t")] + [NativeName("Type.Name", "size_t")] + [NativeName("Name", "numError")] + public nuint NumError; + + [NativeName("Type", "size_t")] + [NativeName("Type.Name", "size_t")] + [NativeName("Name", "elementSize")] + public nuint ElementSize; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/SupportedLimitsExtras.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/SupportedLimitsExtras.gen.cs new file mode 100644 index 0000000000..3c62b68b0a --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/SupportedLimitsExtras.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUSupportedLimitsExtras")] + public unsafe partial struct SupportedLimitsExtras + { + public SupportedLimitsExtras + ( + ChainedStructOut? chain = null, + uint? maxPushConstantSize = null, + ulong? maxBufferSize = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (maxPushConstantSize is not null) + { + MaxPushConstantSize = maxPushConstantSize.Value; + } + + if (maxBufferSize is not null) + { + MaxBufferSize = maxBufferSize.Value; + } + } + + + [NativeName("Type", "WGPUChainedStructOut")] + [NativeName("Type.Name", "WGPUChainedStructOut")] + [NativeName("Name", "chain")] + public ChainedStructOut Chain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxPushConstantSize")] + public uint MaxPushConstantSize; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "maxBufferSize")] + public ulong MaxBufferSize; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/WrappedSubmissionIndex.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/WrappedSubmissionIndex.gen.cs new file mode 100644 index 0000000000..5c4d78a5f6 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Structs/WrappedSubmissionIndex.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [NativeName("Name", "WGPUWrappedSubmissionIndex")] + public unsafe partial struct WrappedSubmissionIndex + { + public WrappedSubmissionIndex + ( + Queue* queue = null, + ulong? submissionIndex = null + ) : this() + { + if (queue is not null) + { + Queue = queue; + } + + if (submissionIndex is not null) + { + SubmissionIndex = submissionIndex.Value; + } + } + + + [NativeName("Type", "WGPUQueue")] + [NativeName("Type.Name", "WGPUQueue")] + [NativeName("Name", "queue")] + public Queue* Queue; + + [NativeName("Type", "WGPUSubmissionIndex")] + [NativeName("Type.Name", "WGPUSubmissionIndex")] + [NativeName("Name", "submissionIndex")] + public ulong SubmissionIndex; + } +} diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Wgpu.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Wgpu.gen.cs new file mode 100644 index 0000000000..778e2750b8 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/Wgpu.gen.cs @@ -0,0 +1,499 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; +using Silk.NET.WebGPU; +using Extension = Silk.NET.Core.Attributes.ExtensionAttribute; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + [Extension("wgpu.h")] + public unsafe partial class Wgpu : NativeExtension + { + public const string ExtensionName = "wgpu.h"; + /// To be documented. + [NativeName("Src", "Line 142, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuGenerateReport")] + public unsafe partial void GenerateReport(GlobalReport* report); + + /// To be documented. + [NativeName("Src", "Line 142, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuGenerateReport")] + public partial void GenerateReport(ref GlobalReport report); + + /// To be documented. + [NativeName("Src", "Line 144, Column 21 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmitForIndex")] + public unsafe partial ulong QueueSubmitForIndex(Queue* queue, uint commandCount, CommandBuffer** commands); + + /// To be documented. + [NativeName("Src", "Line 144, Column 21 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmitForIndex")] + public unsafe partial ulong QueueSubmitForIndex(Queue* queue, uint commandCount, ref CommandBuffer* commands); + + /// To be documented. + [NativeName("Src", "Line 144, Column 21 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmitForIndex")] + public unsafe partial ulong QueueSubmitForIndex(ref Queue queue, uint commandCount, CommandBuffer** commands); + + /// To be documented. + [NativeName("Src", "Line 144, Column 21 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmitForIndex")] + public unsafe partial ulong QueueSubmitForIndex(ref Queue queue, uint commandCount, ref CommandBuffer* commands); + + /// To be documented. + [NativeName("Src", "Line 147, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePoll")] + public unsafe partial bool DevicePoll(Device* device, bool wait, [Flow(FlowDirection.In)] WrappedSubmissionIndex* wrappedSubmissionIndex); + + /// To be documented. + [NativeName("Src", "Line 147, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePoll")] + public unsafe partial bool DevicePoll(Device* device, bool wait, [Flow(FlowDirection.In)] in WrappedSubmissionIndex wrappedSubmissionIndex); + + /// To be documented. + [NativeName("Src", "Line 147, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePoll")] + public unsafe partial bool DevicePoll(ref Device device, bool wait, [Flow(FlowDirection.In)] WrappedSubmissionIndex* wrappedSubmissionIndex); + + /// To be documented. + [NativeName("Src", "Line 147, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePoll")] + public partial bool DevicePoll(ref Device device, bool wait, [Flow(FlowDirection.In)] in WrappedSubmissionIndex wrappedSubmissionIndex); + + /// To be documented. + [NativeName("Src", "Line 149, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSetLogCallback")] + public unsafe partial void SetLogCallback(PfnLogCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 149, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSetLogCallback")] + public partial void SetLogCallback(PfnLogCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 151, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSetLogLevel")] + public partial void SetLogLevel(LogLevel level); + + /// To be documented. + [NativeName("Src", "Line 153, Column 10 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuGetVersion")] + public partial uint GetVersion(); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(Surface* surface, Adapter* adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(Surface* surface, Adapter* adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(Surface* surface, ref Adapter adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(Surface* surface, ref Adapter adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(ref Surface surface, Adapter* adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(ref Surface surface, Adapter* adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(ref Surface surface, ref Adapter adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedFormats")] + public unsafe partial TextureFormat* SurfaceGetSupportedFormats(ref Surface surface, ref Adapter adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(Surface* surface, Adapter* adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(Surface* surface, Adapter* adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(Surface* surface, ref Adapter adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(Surface* surface, ref Adapter adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(ref Surface surface, Adapter* adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(ref Surface surface, Adapter* adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(ref Surface surface, ref Adapter adapter, nuint* count); + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetSupportedPresentModes")] + public unsafe partial PresentMode* SurfaceGetSupportedPresentModes(ref Surface surface, ref Adapter adapter, ref nuint count); + + /// To be documented. + [NativeName("Src", "Line 163, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPushConstants")] + public unsafe partial void RenderPassEncoderSetPushConstants(RenderPassEncoder* encoder, Silk.NET.WebGPU.ShaderStage stages, uint offset, uint sizeBytes, [Flow(FlowDirection.In)] void* data); + + /// To be documented. + [NativeName("Src", "Line 163, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPushConstants")] + public unsafe partial void RenderPassEncoderSetPushConstants(RenderPassEncoder* encoder, Silk.NET.WebGPU.ShaderStage stages, uint offset, uint sizeBytes, [Flow(FlowDirection.In)] in T0 data) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 163, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPushConstants")] + public unsafe partial void RenderPassEncoderSetPushConstants(ref RenderPassEncoder encoder, Silk.NET.WebGPU.ShaderStage stages, uint offset, uint sizeBytes, [Flow(FlowDirection.In)] void* data); + + /// To be documented. + [NativeName("Src", "Line 163, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPushConstants")] + public partial void RenderPassEncoderSetPushConstants(ref RenderPassEncoder encoder, Silk.NET.WebGPU.ShaderStage stages, uint offset, uint sizeBytes, [Flow(FlowDirection.In)] in T0 data) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 165, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirect")] + public unsafe partial void RenderPassEncoderMultiDrawIndirect(RenderPassEncoder* encoder, Buffer* buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 165, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirect")] + public unsafe partial void RenderPassEncoderMultiDrawIndirect(RenderPassEncoder* encoder, ref Buffer buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 165, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirect")] + public unsafe partial void RenderPassEncoderMultiDrawIndirect(ref RenderPassEncoder encoder, Buffer* buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 165, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirect")] + public partial void RenderPassEncoderMultiDrawIndirect(ref RenderPassEncoder encoder, ref Buffer buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 166, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirect")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirect(RenderPassEncoder* encoder, Buffer* buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 166, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirect")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirect(RenderPassEncoder* encoder, ref Buffer buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 166, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirect")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirect(ref RenderPassEncoder encoder, Buffer* buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 166, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirect")] + public partial void RenderPassEncoderMultiDrawIndexedIndirect(ref RenderPassEncoder encoder, ref Buffer buffer, ulong offset, uint count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndirectCount(RenderPassEncoder* encoder, Buffer* buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndirectCount(RenderPassEncoder* encoder, Buffer* buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndirectCount(RenderPassEncoder* encoder, ref Buffer buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndirectCount(RenderPassEncoder* encoder, ref Buffer buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndirectCount(ref RenderPassEncoder encoder, Buffer* buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndirectCount(ref RenderPassEncoder encoder, Buffer* buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndirectCount(ref RenderPassEncoder encoder, ref Buffer buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndirectCount")] + public partial void RenderPassEncoderMultiDrawIndirectCount(ref RenderPassEncoder encoder, ref Buffer buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirectCount(RenderPassEncoder* encoder, Buffer* buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirectCount(RenderPassEncoder* encoder, Buffer* buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirectCount(RenderPassEncoder* encoder, ref Buffer buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirectCount(RenderPassEncoder* encoder, ref Buffer buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirectCount(ref RenderPassEncoder encoder, Buffer* buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirectCount(ref RenderPassEncoder encoder, Buffer* buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public unsafe partial void RenderPassEncoderMultiDrawIndexedIndirectCount(ref RenderPassEncoder encoder, ref Buffer buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderMultiDrawIndexedIndirectCount")] + public partial void RenderPassEncoderMultiDrawIndexedIndirectCount(ref RenderPassEncoder encoder, ref Buffer buffer, ulong offset, ref Buffer count_buffer, ulong count_buffer_offset, uint max_count); + + /// To be documented. + [NativeName("Src", "Line 171, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterDrop")] + public unsafe partial void AdapterDrop(Adapter* adapter); + + /// To be documented. + [NativeName("Src", "Line 171, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterDrop")] + public partial void AdapterDrop(ref Adapter adapter); + + /// To be documented. + [NativeName("Src", "Line 172, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupDrop")] + public unsafe partial void BindGroupDrop(BindGroup* bindGroup); + + /// To be documented. + [NativeName("Src", "Line 172, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupDrop")] + public partial void BindGroupDrop(ref BindGroup bindGroup); + + /// To be documented. + [NativeName("Src", "Line 173, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutDrop")] + public unsafe partial void BindGroupLayoutDrop(BindGroupLayout* bindGroupLayout); + + /// To be documented. + [NativeName("Src", "Line 173, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutDrop")] + public partial void BindGroupLayoutDrop(ref BindGroupLayout bindGroupLayout); + + /// To be documented. + [NativeName("Src", "Line 174, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferDrop")] + public unsafe partial void BufferDrop(Buffer* buffer); + + /// To be documented. + [NativeName("Src", "Line 174, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferDrop")] + public partial void BufferDrop(ref Buffer buffer); + + /// To be documented. + [NativeName("Src", "Line 175, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferDrop")] + public unsafe partial void CommandBufferDrop(CommandBuffer* commandBuffer); + + /// To be documented. + [NativeName("Src", "Line 175, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferDrop")] + public partial void CommandBufferDrop(ref CommandBuffer commandBuffer); + + /// To be documented. + [NativeName("Src", "Line 176, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderDrop")] + public unsafe partial void CommandEncoderDrop(CommandEncoder* commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 176, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderDrop")] + public partial void CommandEncoderDrop(ref CommandEncoder commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 177, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineDrop")] + public unsafe partial void ComputePipelineDrop(ComputePipeline* computePipeline); + + /// To be documented. + [NativeName("Src", "Line 177, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineDrop")] + public partial void ComputePipelineDrop(ref ComputePipeline computePipeline); + + /// To be documented. + [NativeName("Src", "Line 178, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceDrop")] + public unsafe partial void DeviceDrop(Device* device); + + /// To be documented. + [NativeName("Src", "Line 178, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceDrop")] + public partial void DeviceDrop(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 179, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutDrop")] + public unsafe partial void PipelineLayoutDrop(PipelineLayout* pipelineLayout); + + /// To be documented. + [NativeName("Src", "Line 179, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutDrop")] + public partial void PipelineLayoutDrop(ref PipelineLayout pipelineLayout); + + /// To be documented. + [NativeName("Src", "Line 180, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetDrop")] + public unsafe partial void QuerySetDrop(QuerySet* querySet); + + /// To be documented. + [NativeName("Src", "Line 180, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetDrop")] + public partial void QuerySetDrop(ref QuerySet querySet); + + /// To be documented. + [NativeName("Src", "Line 181, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleDrop")] + public unsafe partial void RenderBundleDrop(RenderBundle* renderBundle); + + /// To be documented. + [NativeName("Src", "Line 181, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleDrop")] + public partial void RenderBundleDrop(ref RenderBundle renderBundle); + + /// To be documented. + [NativeName("Src", "Line 182, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineDrop")] + public unsafe partial void RenderPipelineDrop(RenderPipeline* renderPipeline); + + /// To be documented. + [NativeName("Src", "Line 182, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineDrop")] + public partial void RenderPipelineDrop(ref RenderPipeline renderPipeline); + + /// To be documented. + [NativeName("Src", "Line 183, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerDrop")] + public unsafe partial void SamplerDrop(Sampler* sampler); + + /// To be documented. + [NativeName("Src", "Line 183, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerDrop")] + public partial void SamplerDrop(ref Sampler sampler); + + /// To be documented. + [NativeName("Src", "Line 184, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleDrop")] + public unsafe partial void ShaderModuleDrop(ShaderModule* shaderModule); + + /// To be documented. + [NativeName("Src", "Line 184, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleDrop")] + public partial void ShaderModuleDrop(ref ShaderModule shaderModule); + + /// To be documented. + [NativeName("Src", "Line 185, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceDrop")] + public unsafe partial void SurfaceDrop(Surface* surface); + + /// To be documented. + [NativeName("Src", "Line 185, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceDrop")] + public partial void SurfaceDrop(ref Surface surface); + + /// To be documented. + [NativeName("Src", "Line 186, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureDrop")] + public unsafe partial void TextureDrop(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 186, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureDrop")] + public partial void TextureDrop(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 187, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewDrop")] + public unsafe partial void TextureViewDrop(TextureView* textureView); + + /// To be documented. + [NativeName("Src", "Line 187, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewDrop")] + public partial void TextureViewDrop(ref TextureView textureView); + + /// To be documented. + [NativeName("Src", "Line 191, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuFree")] + public unsafe partial void Free(void* ptr, nuint size, nuint align); + + /// To be documented. + [NativeName("Src", "Line 191, Column 6 in wgpu.h")] + [NativeApi(EntryPoint = "wgpuFree")] + public partial void Free(ref T0 ptr, nuint size, nuint align) where T0 : unmanaged; + + public Wgpu(INativeContext ctx) + : base(ctx) + { + } + } +} + diff --git a/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/WgpuOverloads.gen.cs b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/WgpuOverloads.gen.cs new file mode 100644 index 0000000000..085d0e55a8 --- /dev/null +++ b/src/WebGPU/Extensions/Silk.NET.WebGPU.Extensions.WGPU/WgpuOverloads.gen.cs @@ -0,0 +1,517 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU.Extensions.WGPU +{ + public static class WgpuOverloads + { + /// To be documented. + [NativeName("Src", "Line 142, Column 6 in wgpu.h")] + public static unsafe void GenerateReport(this Wgpu thisApi, Span report) + { + // SpanOverloader + thisApi.GenerateReport(ref report.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 144, Column 21 in wgpu.h")] + public static unsafe ulong QueueSubmitForIndex(this Wgpu thisApi, Span queue, uint commandCount, CommandBuffer** commands) + { + // SpanOverloader + return thisApi.QueueSubmitForIndex(ref queue.GetPinnableReference(), commandCount, commands); + } + + /// To be documented. + [NativeName("Src", "Line 144, Column 21 in wgpu.h")] + public static unsafe ulong QueueSubmitForIndex(this Wgpu thisApi, Span queue, uint commandCount, ref CommandBuffer* commands) + { + // SpanOverloader + return thisApi.QueueSubmitForIndex(ref queue.GetPinnableReference(), commandCount, ref commands); + } + + /// To be documented. + [NativeName("Src", "Line 147, Column 6 in wgpu.h")] + public static unsafe bool DevicePoll(this Wgpu thisApi, Device* device, bool wait, [Flow(FlowDirection.In)] ReadOnlySpan wrappedSubmissionIndex) + { + // SpanOverloader + return thisApi.DevicePoll(device, wait, in wrappedSubmissionIndex.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 147, Column 6 in wgpu.h")] + public static unsafe bool DevicePoll(this Wgpu thisApi, Span device, bool wait, [Flow(FlowDirection.In)] WrappedSubmissionIndex* wrappedSubmissionIndex) + { + // SpanOverloader + return thisApi.DevicePoll(ref device.GetPinnableReference(), wait, wrappedSubmissionIndex); + } + + /// To be documented. + [NativeName("Src", "Line 147, Column 6 in wgpu.h")] + public static unsafe bool DevicePoll(this Wgpu thisApi, Span device, bool wait, [Flow(FlowDirection.In)] ReadOnlySpan wrappedSubmissionIndex) + { + // SpanOverloader + return thisApi.DevicePoll(ref device.GetPinnableReference(), wait, in wrappedSubmissionIndex.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 149, Column 6 in wgpu.h")] + public static unsafe void SetLogCallback(this Wgpu thisApi, PfnLogCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.SetLogCallback(callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + public static unsafe TextureFormat* SurfaceGetSupportedFormats(this Wgpu thisApi, Surface* surface, Adapter* adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedFormats(surface, adapter, ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + public static unsafe TextureFormat* SurfaceGetSupportedFormats(this Wgpu thisApi, Surface* surface, Span adapter, nuint* count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedFormats(surface, ref adapter.GetPinnableReference(), count); + } + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + public static unsafe TextureFormat* SurfaceGetSupportedFormats(this Wgpu thisApi, Surface* surface, Span adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedFormats(surface, ref adapter.GetPinnableReference(), ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + public static unsafe TextureFormat* SurfaceGetSupportedFormats(this Wgpu thisApi, Span surface, Adapter* adapter, nuint* count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedFormats(ref surface.GetPinnableReference(), adapter, count); + } + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + public static unsafe TextureFormat* SurfaceGetSupportedFormats(this Wgpu thisApi, Span surface, Adapter* adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedFormats(ref surface.GetPinnableReference(), adapter, ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + public static unsafe TextureFormat* SurfaceGetSupportedFormats(this Wgpu thisApi, Span surface, Span adapter, nuint* count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedFormats(ref surface.GetPinnableReference(), ref adapter.GetPinnableReference(), count); + } + + /// To be documented. + [NativeName("Src", "Line 157, Column 27 in wgpu.h")] + public static unsafe TextureFormat* SurfaceGetSupportedFormats(this Wgpu thisApi, Span surface, Span adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedFormats(ref surface.GetPinnableReference(), ref adapter.GetPinnableReference(), ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + public static unsafe PresentMode* SurfaceGetSupportedPresentModes(this Wgpu thisApi, Surface* surface, Adapter* adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedPresentModes(surface, adapter, ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + public static unsafe PresentMode* SurfaceGetSupportedPresentModes(this Wgpu thisApi, Surface* surface, Span adapter, nuint* count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedPresentModes(surface, ref adapter.GetPinnableReference(), count); + } + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + public static unsafe PresentMode* SurfaceGetSupportedPresentModes(this Wgpu thisApi, Surface* surface, Span adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedPresentModes(surface, ref adapter.GetPinnableReference(), ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + public static unsafe PresentMode* SurfaceGetSupportedPresentModes(this Wgpu thisApi, Span surface, Adapter* adapter, nuint* count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedPresentModes(ref surface.GetPinnableReference(), adapter, count); + } + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + public static unsafe PresentMode* SurfaceGetSupportedPresentModes(this Wgpu thisApi, Span surface, Adapter* adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedPresentModes(ref surface.GetPinnableReference(), adapter, ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + public static unsafe PresentMode* SurfaceGetSupportedPresentModes(this Wgpu thisApi, Span surface, Span adapter, nuint* count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedPresentModes(ref surface.GetPinnableReference(), ref adapter.GetPinnableReference(), count); + } + + /// To be documented. + [NativeName("Src", "Line 161, Column 25 in wgpu.h")] + public static unsafe PresentMode* SurfaceGetSupportedPresentModes(this Wgpu thisApi, Span surface, Span adapter, Span count) + { + // SpanOverloader + return thisApi.SurfaceGetSupportedPresentModes(ref surface.GetPinnableReference(), ref adapter.GetPinnableReference(), ref count.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 163, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderSetPushConstants(this Wgpu thisApi, RenderPassEncoder* encoder, Silk.NET.WebGPU.ShaderStage stages, uint offset, uint sizeBytes, [Flow(FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged + { + // SpanOverloader + thisApi.RenderPassEncoderSetPushConstants(encoder, stages, offset, sizeBytes, in data.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 163, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderSetPushConstants(this Wgpu thisApi, Span encoder, Silk.NET.WebGPU.ShaderStage stages, uint offset, uint sizeBytes, [Flow(FlowDirection.In)] void* data) + { + // SpanOverloader + thisApi.RenderPassEncoderSetPushConstants(ref encoder.GetPinnableReference(), stages, offset, sizeBytes, data); + } + + /// To be documented. + [NativeName("Src", "Line 163, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderSetPushConstants(this Wgpu thisApi, Span encoder, Silk.NET.WebGPU.ShaderStage stages, uint offset, uint sizeBytes, [Flow(FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged + { + // SpanOverloader + thisApi.RenderPassEncoderSetPushConstants(ref encoder.GetPinnableReference(), stages, offset, sizeBytes, in data.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 165, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirect(this Wgpu thisApi, RenderPassEncoder* encoder, Span buffer, ulong offset, uint count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirect(encoder, ref buffer.GetPinnableReference(), offset, count); + } + + /// To be documented. + [NativeName("Src", "Line 165, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirect(this Wgpu thisApi, Span encoder, Buffer* buffer, ulong offset, uint count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirect(ref encoder.GetPinnableReference(), buffer, offset, count); + } + + /// To be documented. + [NativeName("Src", "Line 165, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirect(this Wgpu thisApi, Span encoder, Span buffer, ulong offset, uint count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirect(ref encoder.GetPinnableReference(), ref buffer.GetPinnableReference(), offset, count); + } + + /// To be documented. + [NativeName("Src", "Line 166, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirect(this Wgpu thisApi, RenderPassEncoder* encoder, Span buffer, ulong offset, uint count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirect(encoder, ref buffer.GetPinnableReference(), offset, count); + } + + /// To be documented. + [NativeName("Src", "Line 166, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirect(this Wgpu thisApi, Span encoder, Buffer* buffer, ulong offset, uint count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirect(ref encoder.GetPinnableReference(), buffer, offset, count); + } + + /// To be documented. + [NativeName("Src", "Line 166, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirect(this Wgpu thisApi, Span encoder, Span buffer, ulong offset, uint count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirect(ref encoder.GetPinnableReference(), ref buffer.GetPinnableReference(), offset, count); + } + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirectCount(this Wgpu thisApi, RenderPassEncoder* encoder, Buffer* buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirectCount(encoder, buffer, offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirectCount(this Wgpu thisApi, RenderPassEncoder* encoder, Span buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirectCount(encoder, ref buffer.GetPinnableReference(), offset, count_buffer, count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirectCount(this Wgpu thisApi, RenderPassEncoder* encoder, Span buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirectCount(encoder, ref buffer.GetPinnableReference(), offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirectCount(this Wgpu thisApi, Span encoder, Buffer* buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirectCount(ref encoder.GetPinnableReference(), buffer, offset, count_buffer, count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirectCount(this Wgpu thisApi, Span encoder, Buffer* buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirectCount(ref encoder.GetPinnableReference(), buffer, offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirectCount(this Wgpu thisApi, Span encoder, Span buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirectCount(ref encoder.GetPinnableReference(), ref buffer.GetPinnableReference(), offset, count_buffer, count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 168, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndirectCount(this Wgpu thisApi, Span encoder, Span buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndirectCount(ref encoder.GetPinnableReference(), ref buffer.GetPinnableReference(), offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirectCount(this Wgpu thisApi, RenderPassEncoder* encoder, Buffer* buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirectCount(encoder, buffer, offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirectCount(this Wgpu thisApi, RenderPassEncoder* encoder, Span buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirectCount(encoder, ref buffer.GetPinnableReference(), offset, count_buffer, count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirectCount(this Wgpu thisApi, RenderPassEncoder* encoder, Span buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirectCount(encoder, ref buffer.GetPinnableReference(), offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirectCount(this Wgpu thisApi, Span encoder, Buffer* buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirectCount(ref encoder.GetPinnableReference(), buffer, offset, count_buffer, count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirectCount(this Wgpu thisApi, Span encoder, Buffer* buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirectCount(ref encoder.GetPinnableReference(), buffer, offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirectCount(this Wgpu thisApi, Span encoder, Span buffer, ulong offset, Buffer* count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirectCount(ref encoder.GetPinnableReference(), ref buffer.GetPinnableReference(), offset, count_buffer, count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 169, Column 6 in wgpu.h")] + public static unsafe void RenderPassEncoderMultiDrawIndexedIndirectCount(this Wgpu thisApi, Span encoder, Span buffer, ulong offset, Span count_buffer, ulong count_buffer_offset, uint max_count) + { + // SpanOverloader + thisApi.RenderPassEncoderMultiDrawIndexedIndirectCount(ref encoder.GetPinnableReference(), ref buffer.GetPinnableReference(), offset, ref count_buffer.GetPinnableReference(), count_buffer_offset, max_count); + } + + /// To be documented. + [NativeName("Src", "Line 171, Column 6 in wgpu.h")] + public static unsafe void AdapterDrop(this Wgpu thisApi, Span adapter) + { + // SpanOverloader + thisApi.AdapterDrop(ref adapter.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 172, Column 6 in wgpu.h")] + public static unsafe void BindGroupDrop(this Wgpu thisApi, Span bindGroup) + { + // SpanOverloader + thisApi.BindGroupDrop(ref bindGroup.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 173, Column 6 in wgpu.h")] + public static unsafe void BindGroupLayoutDrop(this Wgpu thisApi, Span bindGroupLayout) + { + // SpanOverloader + thisApi.BindGroupLayoutDrop(ref bindGroupLayout.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 174, Column 6 in wgpu.h")] + public static unsafe void BufferDrop(this Wgpu thisApi, Span buffer) + { + // SpanOverloader + thisApi.BufferDrop(ref buffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 175, Column 6 in wgpu.h")] + public static unsafe void CommandBufferDrop(this Wgpu thisApi, Span commandBuffer) + { + // SpanOverloader + thisApi.CommandBufferDrop(ref commandBuffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 176, Column 6 in wgpu.h")] + public static unsafe void CommandEncoderDrop(this Wgpu thisApi, Span commandEncoder) + { + // SpanOverloader + thisApi.CommandEncoderDrop(ref commandEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 177, Column 6 in wgpu.h")] + public static unsafe void ComputePipelineDrop(this Wgpu thisApi, Span computePipeline) + { + // SpanOverloader + thisApi.ComputePipelineDrop(ref computePipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 178, Column 6 in wgpu.h")] + public static unsafe void DeviceDrop(this Wgpu thisApi, Span device) + { + // SpanOverloader + thisApi.DeviceDrop(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 179, Column 6 in wgpu.h")] + public static unsafe void PipelineLayoutDrop(this Wgpu thisApi, Span pipelineLayout) + { + // SpanOverloader + thisApi.PipelineLayoutDrop(ref pipelineLayout.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 180, Column 6 in wgpu.h")] + public static unsafe void QuerySetDrop(this Wgpu thisApi, Span querySet) + { + // SpanOverloader + thisApi.QuerySetDrop(ref querySet.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 181, Column 6 in wgpu.h")] + public static unsafe void RenderBundleDrop(this Wgpu thisApi, Span renderBundle) + { + // SpanOverloader + thisApi.RenderBundleDrop(ref renderBundle.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 182, Column 6 in wgpu.h")] + public static unsafe void RenderPipelineDrop(this Wgpu thisApi, Span renderPipeline) + { + // SpanOverloader + thisApi.RenderPipelineDrop(ref renderPipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 183, Column 6 in wgpu.h")] + public static unsafe void SamplerDrop(this Wgpu thisApi, Span sampler) + { + // SpanOverloader + thisApi.SamplerDrop(ref sampler.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 184, Column 6 in wgpu.h")] + public static unsafe void ShaderModuleDrop(this Wgpu thisApi, Span shaderModule) + { + // SpanOverloader + thisApi.ShaderModuleDrop(ref shaderModule.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 185, Column 6 in wgpu.h")] + public static unsafe void SurfaceDrop(this Wgpu thisApi, Span surface) + { + // SpanOverloader + thisApi.SurfaceDrop(ref surface.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 186, Column 6 in wgpu.h")] + public static unsafe void TextureDrop(this Wgpu thisApi, Span texture) + { + // SpanOverloader + thisApi.TextureDrop(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 187, Column 6 in wgpu.h")] + public static unsafe void TextureViewDrop(this Wgpu thisApi, Span textureView) + { + // SpanOverloader + thisApi.TextureViewDrop(ref textureView.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 191, Column 6 in wgpu.h")] + public static unsafe void Free(this Wgpu thisApi, Span ptr, nuint size, nuint align) where T0 : unmanaged + { + // SpanOverloader + thisApi.Free(ref ptr.GetPinnableReference(), size, align); + } + + } +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/AdapterType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/AdapterType.gen.cs new file mode 100644 index 0000000000..57361a9b6b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/AdapterType.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUAdapterType")] + public enum AdapterType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUAdapterType_DiscreteGPU")] + DiscreteGpu = 0x0, + [NativeName("Name", "WGPUAdapterType_IntegratedGPU")] + IntegratedGpu = 0x1, + [NativeName("Name", "WGPUAdapterType_CPU")] + Cpu = 0x2, + [NativeName("Name", "WGPUAdapterType_Unknown")] + Unknown = 0x3, + [NativeName("Name", "WGPUAdapterType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/AddressMode.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/AddressMode.gen.cs new file mode 100644 index 0000000000..867488402b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/AddressMode.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUAddressMode")] + public enum AddressMode : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUAddressMode_Repeat")] + Repeat = 0x0, + [NativeName("Name", "WGPUAddressMode_MirrorRepeat")] + MirrorRepeat = 0x1, + [NativeName("Name", "WGPUAddressMode_ClampToEdge")] + ClampToEdge = 0x2, + [NativeName("Name", "WGPUAddressMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/BackendType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/BackendType.gen.cs new file mode 100644 index 0000000000..36776c0884 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/BackendType.gen.cs @@ -0,0 +1,34 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBackendType")] + public enum BackendType : int + { + [NativeName("Name", "WGPUBackendType_Null")] + Null = 0x0, + [NativeName("Name", "WGPUBackendType_WebGPU")] + WebGpu = 0x1, + [NativeName("Name", "WGPUBackendType_D3D11")] + D3D11 = 0x2, + [NativeName("Name", "WGPUBackendType_D3D12")] + D3D12 = 0x3, + [NativeName("Name", "WGPUBackendType_Metal")] + Metal = 0x4, + [NativeName("Name", "WGPUBackendType_Vulkan")] + Vulkan = 0x5, + [NativeName("Name", "WGPUBackendType_OpenGL")] + OpenGL = 0x6, + [NativeName("Name", "WGPUBackendType_OpenGLES")] + OpenGles = 0x7, + [NativeName("Name", "WGPUBackendType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/BlendFactor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/BlendFactor.gen.cs new file mode 100644 index 0000000000..05010e158b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/BlendFactor.gen.cs @@ -0,0 +1,44 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBlendFactor")] + public enum BlendFactor : int + { + [NativeName("Name", "WGPUBlendFactor_Zero")] + Zero = 0x0, + [NativeName("Name", "WGPUBlendFactor_One")] + One = 0x1, + [NativeName("Name", "WGPUBlendFactor_Src")] + Src = 0x2, + [NativeName("Name", "WGPUBlendFactor_OneMinusSrc")] + OneMinusSrc = 0x3, + [NativeName("Name", "WGPUBlendFactor_SrcAlpha")] + SrcAlpha = 0x4, + [NativeName("Name", "WGPUBlendFactor_OneMinusSrcAlpha")] + OneMinusSrcAlpha = 0x5, + [NativeName("Name", "WGPUBlendFactor_Dst")] + Dst = 0x6, + [NativeName("Name", "WGPUBlendFactor_OneMinusDst")] + OneMinusDst = 0x7, + [NativeName("Name", "WGPUBlendFactor_DstAlpha")] + DstAlpha = 0x8, + [NativeName("Name", "WGPUBlendFactor_OneMinusDstAlpha")] + OneMinusDstAlpha = 0x9, + [NativeName("Name", "WGPUBlendFactor_SrcAlphaSaturated")] + SrcAlphaSaturated = 0xA, + [NativeName("Name", "WGPUBlendFactor_Constant")] + Constant = 0xB, + [NativeName("Name", "WGPUBlendFactor_OneMinusConstant")] + OneMinusConstant = 0xC, + [NativeName("Name", "WGPUBlendFactor_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/BlendOperation.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/BlendOperation.gen.cs new file mode 100644 index 0000000000..2bafc25fbd --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/BlendOperation.gen.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUBlendOperation")] + public enum BlendOperation : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUBlendOperation_Add")] + Add = 0x0, + [NativeName("Name", "WGPUBlendOperation_Subtract")] + Subtract = 0x1, + [NativeName("Name", "WGPUBlendOperation_ReverseSubtract")] + ReverseSubtract = 0x2, + [NativeName("Name", "WGPUBlendOperation_Min")] + Min = 0x3, + [NativeName("Name", "WGPUBlendOperation_Max")] + Max = 0x4, + [NativeName("Name", "WGPUBlendOperation_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/BufferBindingType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/BufferBindingType.gen.cs new file mode 100644 index 0000000000..218c8a5834 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/BufferBindingType.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUBufferBindingType")] + public enum BufferBindingType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUBufferBindingType_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUBufferBindingType_Uniform")] + Uniform = 0x1, + [NativeName("Name", "WGPUBufferBindingType_Storage")] + Storage = 0x2, + [NativeName("Name", "WGPUBufferBindingType_ReadOnlyStorage")] + ReadOnlyStorage = 0x3, + [NativeName("Name", "WGPUBufferBindingType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/BufferMapAsyncStatus.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/BufferMapAsyncStatus.gen.cs new file mode 100644 index 0000000000..0a9fbac29c --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/BufferMapAsyncStatus.gen.cs @@ -0,0 +1,33 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUBufferMapAsyncStatus")] + public enum BufferMapAsyncStatus : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUBufferMapAsyncStatus_Success")] + Success = 0x0, + [NativeName("Name", "WGPUBufferMapAsyncStatus_Error")] + Error = 0x1, + [NativeName("Name", "WGPUBufferMapAsyncStatus_Unknown")] + Unknown = 0x2, + [NativeName("Name", "WGPUBufferMapAsyncStatus_DeviceLost")] + DeviceLost = 0x3, + [NativeName("Name", "WGPUBufferMapAsyncStatus_DestroyedBeforeCallback")] + DestroyedBeforeCallback = 0x4, + [NativeName("Name", "WGPUBufferMapAsyncStatus_UnmappedBeforeCallback")] + UnmappedBeforeCallback = 0x5, + [NativeName("Name", "WGPUBufferMapAsyncStatus_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/BufferUsage.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/BufferUsage.gen.cs new file mode 100644 index 0000000000..650306c222 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/BufferUsage.gen.cs @@ -0,0 +1,41 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUBufferUsage")] + public enum BufferUsage : int + { + [NativeName("Name", "WGPUBufferUsage_None")] + None = 0x0, + [NativeName("Name", "WGPUBufferUsage_MapRead")] + MapRead = 0x1, + [NativeName("Name", "WGPUBufferUsage_MapWrite")] + MapWrite = 0x2, + [NativeName("Name", "WGPUBufferUsage_CopySrc")] + CopySrc = 0x4, + [NativeName("Name", "WGPUBufferUsage_CopyDst")] + CopyDst = 0x8, + [NativeName("Name", "WGPUBufferUsage_Index")] + Index = 0x10, + [NativeName("Name", "WGPUBufferUsage_Vertex")] + Vertex = 0x20, + [NativeName("Name", "WGPUBufferUsage_Uniform")] + Uniform = 0x40, + [NativeName("Name", "WGPUBufferUsage_Storage")] + Storage = 0x80, + [NativeName("Name", "WGPUBufferUsage_Indirect")] + Indirect = 0x100, + [NativeName("Name", "WGPUBufferUsage_QueryResolve")] + QueryResolve = 0x200, + [NativeName("Name", "WGPUBufferUsage_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/ColorWriteMask.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/ColorWriteMask.gen.cs new file mode 100644 index 0000000000..fe342c0535 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/ColorWriteMask.gen.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUColorWriteMask")] + public enum ColorWriteMask : int + { + [NativeName("Name", "WGPUColorWriteMask_None")] + None = 0x0, + [NativeName("Name", "WGPUColorWriteMask_Red")] + Red = 0x1, + [NativeName("Name", "WGPUColorWriteMask_Green")] + Green = 0x2, + [NativeName("Name", "WGPUColorWriteMask_Blue")] + Blue = 0x4, + [NativeName("Name", "WGPUColorWriteMask_Alpha")] + Alpha = 0x8, + [NativeName("Name", "WGPUColorWriteMask_All")] + All = 0xF, + [NativeName("Name", "WGPUColorWriteMask_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/CompareFunction.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/CompareFunction.gen.cs new file mode 100644 index 0000000000..30b255aa75 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/CompareFunction.gen.cs @@ -0,0 +1,36 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUCompareFunction")] + public enum CompareFunction : int + { + [NativeName("Name", "WGPUCompareFunction_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUCompareFunction_Never")] + Never = 0x1, + [NativeName("Name", "WGPUCompareFunction_Less")] + Less = 0x2, + [NativeName("Name", "WGPUCompareFunction_LessEqual")] + LessEqual = 0x3, + [NativeName("Name", "WGPUCompareFunction_Greater")] + Greater = 0x4, + [NativeName("Name", "WGPUCompareFunction_GreaterEqual")] + GreaterEqual = 0x5, + [NativeName("Name", "WGPUCompareFunction_Equal")] + Equal = 0x6, + [NativeName("Name", "WGPUCompareFunction_NotEqual")] + NotEqual = 0x7, + [NativeName("Name", "WGPUCompareFunction_Always")] + Always = 0x8, + [NativeName("Name", "WGPUCompareFunction_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/CompilationInfoRequestStatus.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/CompilationInfoRequestStatus.gen.cs new file mode 100644 index 0000000000..4ea28dd282 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/CompilationInfoRequestStatus.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUCompilationInfoRequestStatus")] + public enum CompilationInfoRequestStatus : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUCompilationInfoRequestStatus_Success")] + Success = 0x0, + [NativeName("Name", "WGPUCompilationInfoRequestStatus_Error")] + Error = 0x1, + [NativeName("Name", "WGPUCompilationInfoRequestStatus_DeviceLost")] + DeviceLost = 0x2, + [NativeName("Name", "WGPUCompilationInfoRequestStatus_Unknown")] + Unknown = 0x3, + [NativeName("Name", "WGPUCompilationInfoRequestStatus_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/CompilationMessageType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/CompilationMessageType.gen.cs new file mode 100644 index 0000000000..b902381914 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/CompilationMessageType.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUCompilationMessageType")] + public enum CompilationMessageType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUCompilationMessageType_Error")] + Error = 0x0, + [NativeName("Name", "WGPUCompilationMessageType_Warning")] + Warning = 0x1, + [NativeName("Name", "WGPUCompilationMessageType_Info")] + Info = 0x2, + [NativeName("Name", "WGPUCompilationMessageType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/ComputePassTimestampLocation.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/ComputePassTimestampLocation.gen.cs new file mode 100644 index 0000000000..b9f1e09cdd --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/ComputePassTimestampLocation.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUComputePassTimestampLocation")] + public enum ComputePassTimestampLocation : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUComputePassTimestampLocation_Beginning")] + Beginning = 0x0, + [NativeName("Name", "WGPUComputePassTimestampLocation_End")] + End = 0x1, + [NativeName("Name", "WGPUComputePassTimestampLocation_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/CreatePipelineAsyncStatus.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/CreatePipelineAsyncStatus.gen.cs new file mode 100644 index 0000000000..e4f31d546e --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/CreatePipelineAsyncStatus.gen.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUCreatePipelineAsyncStatus")] + public enum CreatePipelineAsyncStatus : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUCreatePipelineAsyncStatus_Success")] + Success = 0x0, + [NativeName("Name", "WGPUCreatePipelineAsyncStatus_Error")] + Error = 0x1, + [NativeName("Name", "WGPUCreatePipelineAsyncStatus_DeviceLost")] + DeviceLost = 0x2, + [NativeName("Name", "WGPUCreatePipelineAsyncStatus_DeviceDestroyed")] + DeviceDestroyed = 0x3, + [NativeName("Name", "WGPUCreatePipelineAsyncStatus_Unknown")] + Unknown = 0x4, + [NativeName("Name", "WGPUCreatePipelineAsyncStatus_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/CullMode.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/CullMode.gen.cs new file mode 100644 index 0000000000..5b8ff84ea2 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/CullMode.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUCullMode")] + public enum CullMode : int + { + [NativeName("Name", "WGPUCullMode_None")] + None = 0x0, + [NativeName("Name", "WGPUCullMode_Front")] + Front = 0x1, + [NativeName("Name", "WGPUCullMode_Back")] + Back = 0x2, + [NativeName("Name", "WGPUCullMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/DeviceLostReason.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/DeviceLostReason.gen.cs new file mode 100644 index 0000000000..935200108d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/DeviceLostReason.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUDeviceLostReason")] + public enum DeviceLostReason : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUDeviceLostReason_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUDeviceLostReason_Destroyed")] + Destroyed = 0x1, + [NativeName("Name", "WGPUDeviceLostReason_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/ErrorFilter.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/ErrorFilter.gen.cs new file mode 100644 index 0000000000..7caabcba53 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/ErrorFilter.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUErrorFilter")] + public enum ErrorFilter : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUErrorFilter_Validation")] + Validation = 0x0, + [NativeName("Name", "WGPUErrorFilter_OutOfMemory")] + OutOfMemory = 0x1, + [NativeName("Name", "WGPUErrorFilter_Internal")] + Internal = 0x2, + [NativeName("Name", "WGPUErrorFilter_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/ErrorType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/ErrorType.gen.cs new file mode 100644 index 0000000000..457045b569 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/ErrorType.gen.cs @@ -0,0 +1,33 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUErrorType")] + public enum ErrorType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUErrorType_NoError")] + NoError = 0x0, + [NativeName("Name", "WGPUErrorType_Validation")] + Validation = 0x1, + [NativeName("Name", "WGPUErrorType_OutOfMemory")] + OutOfMemory = 0x2, + [NativeName("Name", "WGPUErrorType_Internal")] + Internal = 0x3, + [NativeName("Name", "WGPUErrorType_Unknown")] + Unknown = 0x4, + [NativeName("Name", "WGPUErrorType_DeviceLost")] + DeviceLost = 0x5, + [NativeName("Name", "WGPUErrorType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/FeatureName.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/FeatureName.gen.cs new file mode 100644 index 0000000000..61abb06f8e --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/FeatureName.gen.cs @@ -0,0 +1,40 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUFeatureName")] + public enum FeatureName : int + { + [NativeName("Name", "WGPUFeatureName_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUFeatureName_DepthClipControl")] + DepthClipControl = 0x1, + [NativeName("Name", "WGPUFeatureName_Depth32FloatStencil8")] + Depth32floatStencil8 = 0x2, + [NativeName("Name", "WGPUFeatureName_TimestampQuery")] + TimestampQuery = 0x3, + [NativeName("Name", "WGPUFeatureName_PipelineStatisticsQuery")] + PipelineStatisticsQuery = 0x4, + [NativeName("Name", "WGPUFeatureName_TextureCompressionBC")] + TextureCompressionBC = 0x5, + [NativeName("Name", "WGPUFeatureName_TextureCompressionETC2")] + TextureCompressionEtc2 = 0x6, + [NativeName("Name", "WGPUFeatureName_TextureCompressionASTC")] + TextureCompressionAstc = 0x7, + [NativeName("Name", "WGPUFeatureName_IndirectFirstInstance")] + IndirectFirstInstance = 0x8, + [NativeName("Name", "WGPUFeatureName_ShaderF16")] + ShaderF16 = 0x9, + [NativeName("Name", "WGPUFeatureName_RG11B10UfloatRenderable")] + RG11B10UfloatRenderable = 0xA, + [NativeName("Name", "WGPUFeatureName_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/FilterMode.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/FilterMode.gen.cs new file mode 100644 index 0000000000..9ee5dcde33 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/FilterMode.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUFilterMode")] + public enum FilterMode : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUFilterMode_Nearest")] + Nearest = 0x0, + [NativeName("Name", "WGPUFilterMode_Linear")] + Linear = 0x1, + [NativeName("Name", "WGPUFilterMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/FrontFace.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/FrontFace.gen.cs new file mode 100644 index 0000000000..b073eb177b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/FrontFace.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUFrontFace")] + public enum FrontFace : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUFrontFace_CCW")] + Ccw = 0x0, + [NativeName("Name", "WGPUFrontFace_CW")] + CW = 0x1, + [NativeName("Name", "WGPUFrontFace_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/IndexFormat.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/IndexFormat.gen.cs new file mode 100644 index 0000000000..df673aeeff --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/IndexFormat.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUIndexFormat")] + public enum IndexFormat : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUIndexFormat_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUIndexFormat_Uint16")] + Uint16 = 0x1, + [NativeName("Name", "WGPUIndexFormat_Uint32")] + Uint32 = 0x2, + [NativeName("Name", "WGPUIndexFormat_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/LoadOp.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/LoadOp.gen.cs new file mode 100644 index 0000000000..c232f34161 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/LoadOp.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPULoadOp")] + public enum LoadOp : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPULoadOp_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPULoadOp_Clear")] + Clear = 0x1, + [NativeName("Name", "WGPULoadOp_Load")] + Load = 0x2, + [NativeName("Name", "WGPULoadOp_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/MapMode.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/MapMode.gen.cs new file mode 100644 index 0000000000..c5e5b25c80 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/MapMode.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUMapMode")] + public enum MapMode : int + { + [NativeName("Name", "WGPUMapMode_None")] + None = 0x0, + [NativeName("Name", "WGPUMapMode_Read")] + Read = 0x1, + [NativeName("Name", "WGPUMapMode_Write")] + Write = 0x2, + [NativeName("Name", "WGPUMapMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/MipmapFilterMode.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/MipmapFilterMode.gen.cs new file mode 100644 index 0000000000..873dd4e9a6 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/MipmapFilterMode.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUMipmapFilterMode")] + public enum MipmapFilterMode : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUMipmapFilterMode_Nearest")] + Nearest = 0x0, + [NativeName("Name", "WGPUMipmapFilterMode_Linear")] + Linear = 0x1, + [NativeName("Name", "WGPUMipmapFilterMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/PipelineStatisticName.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/PipelineStatisticName.gen.cs new file mode 100644 index 0000000000..1e2767b2c7 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/PipelineStatisticName.gen.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUPipelineStatisticName")] + public enum PipelineStatisticName : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUPipelineStatisticName_VertexShaderInvocations")] + VertexShaderInvocations = 0x0, + [NativeName("Name", "WGPUPipelineStatisticName_ClipperInvocations")] + ClipperInvocations = 0x1, + [NativeName("Name", "WGPUPipelineStatisticName_ClipperPrimitivesOut")] + ClipperPrimitivesOut = 0x2, + [NativeName("Name", "WGPUPipelineStatisticName_FragmentShaderInvocations")] + FragmentShaderInvocations = 0x3, + [NativeName("Name", "WGPUPipelineStatisticName_ComputeShaderInvocations")] + ComputeShaderInvocations = 0x4, + [NativeName("Name", "WGPUPipelineStatisticName_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/PowerPreference.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/PowerPreference.gen.cs new file mode 100644 index 0000000000..9d246727bf --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/PowerPreference.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUPowerPreference")] + public enum PowerPreference : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUPowerPreference_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUPowerPreference_LowPower")] + LowPower = 0x1, + [NativeName("Name", "WGPUPowerPreference_HighPerformance")] + HighPerformance = 0x2, + [NativeName("Name", "WGPUPowerPreference_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/PresentMode.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/PresentMode.gen.cs new file mode 100644 index 0000000000..064a977289 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/PresentMode.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUPresentMode")] + public enum PresentMode : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUPresentMode_Immediate")] + Immediate = 0x0, + [NativeName("Name", "WGPUPresentMode_Mailbox")] + Mailbox = 0x1, + [NativeName("Name", "WGPUPresentMode_Fifo")] + Fifo = 0x2, + [NativeName("Name", "WGPUPresentMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/PrimitiveTopology.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/PrimitiveTopology.gen.cs new file mode 100644 index 0000000000..5535bbae2f --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/PrimitiveTopology.gen.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUPrimitiveTopology")] + public enum PrimitiveTopology : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUPrimitiveTopology_PointList")] + PointList = 0x0, + [NativeName("Name", "WGPUPrimitiveTopology_LineList")] + LineList = 0x1, + [NativeName("Name", "WGPUPrimitiveTopology_LineStrip")] + LineStrip = 0x2, + [NativeName("Name", "WGPUPrimitiveTopology_TriangleList")] + TriangleList = 0x3, + [NativeName("Name", "WGPUPrimitiveTopology_TriangleStrip")] + TriangleStrip = 0x4, + [NativeName("Name", "WGPUPrimitiveTopology_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/QueryType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/QueryType.gen.cs new file mode 100644 index 0000000000..da6fc03193 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/QueryType.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUQueryType")] + public enum QueryType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUQueryType_Occlusion")] + Occlusion = 0x0, + [NativeName("Name", "WGPUQueryType_PipelineStatistics")] + PipelineStatistics = 0x1, + [NativeName("Name", "WGPUQueryType_Timestamp")] + Timestamp = 0x2, + [NativeName("Name", "WGPUQueryType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/QueueWorkDoneStatus.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/QueueWorkDoneStatus.gen.cs new file mode 100644 index 0000000000..678e6f27af --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/QueueWorkDoneStatus.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUQueueWorkDoneStatus")] + public enum QueueWorkDoneStatus : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUQueueWorkDoneStatus_Success")] + Success = 0x0, + [NativeName("Name", "WGPUQueueWorkDoneStatus_Error")] + Error = 0x1, + [NativeName("Name", "WGPUQueueWorkDoneStatus_Unknown")] + Unknown = 0x2, + [NativeName("Name", "WGPUQueueWorkDoneStatus_DeviceLost")] + DeviceLost = 0x3, + [NativeName("Name", "WGPUQueueWorkDoneStatus_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/RenderPassTimestampLocation.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/RenderPassTimestampLocation.gen.cs new file mode 100644 index 0000000000..dfaa93534d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/RenderPassTimestampLocation.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPURenderPassTimestampLocation")] + public enum RenderPassTimestampLocation : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPURenderPassTimestampLocation_Beginning")] + Beginning = 0x0, + [NativeName("Name", "WGPURenderPassTimestampLocation_End")] + End = 0x1, + [NativeName("Name", "WGPURenderPassTimestampLocation_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/RequestAdapterStatus.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/RequestAdapterStatus.gen.cs new file mode 100644 index 0000000000..9f9cdf7802 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/RequestAdapterStatus.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPURequestAdapterStatus")] + public enum RequestAdapterStatus : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPURequestAdapterStatus_Success")] + Success = 0x0, + [NativeName("Name", "WGPURequestAdapterStatus_Unavailable")] + Unavailable = 0x1, + [NativeName("Name", "WGPURequestAdapterStatus_Error")] + Error = 0x2, + [NativeName("Name", "WGPURequestAdapterStatus_Unknown")] + Unknown = 0x3, + [NativeName("Name", "WGPURequestAdapterStatus_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/RequestDeviceStatus.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/RequestDeviceStatus.gen.cs new file mode 100644 index 0000000000..ad2ad71f37 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/RequestDeviceStatus.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPURequestDeviceStatus")] + public enum RequestDeviceStatus : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPURequestDeviceStatus_Success")] + Success = 0x0, + [NativeName("Name", "WGPURequestDeviceStatus_Error")] + Error = 0x1, + [NativeName("Name", "WGPURequestDeviceStatus_Unknown")] + Unknown = 0x2, + [NativeName("Name", "WGPURequestDeviceStatus_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/SType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/SType.gen.cs new file mode 100644 index 0000000000..baa2955a56 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/SType.gen.cs @@ -0,0 +1,42 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSType")] + public enum SType : int + { + [NativeName("Name", "WGPUSType_Invalid")] + Invalid = 0x0, + [NativeName("Name", "WGPUSType_SurfaceDescriptorFromMetalLayer")] + SurfaceDescriptorFromMetalLayer = 0x1, + [NativeName("Name", "WGPUSType_SurfaceDescriptorFromWindowsHWND")] + SurfaceDescriptorFromWindowsHwnd = 0x2, + [NativeName("Name", "WGPUSType_SurfaceDescriptorFromXlibWindow")] + SurfaceDescriptorFromXlibWindow = 0x3, + [NativeName("Name", "WGPUSType_SurfaceDescriptorFromCanvasHTMLSelector")] + SurfaceDescriptorFromCanvasHtmlselector = 0x4, + [NativeName("Name", "WGPUSType_ShaderModuleSPIRVDescriptor")] + ShaderModuleSpirvdescriptor = 0x5, + [NativeName("Name", "WGPUSType_ShaderModuleWGSLDescriptor")] + ShaderModuleWgsldescriptor = 0x6, + [NativeName("Name", "WGPUSType_PrimitiveDepthClipControl")] + PrimitiveDepthClipControl = 0x7, + [NativeName("Name", "WGPUSType_SurfaceDescriptorFromWaylandSurface")] + SurfaceDescriptorFromWaylandSurface = 0x8, + [NativeName("Name", "WGPUSType_SurfaceDescriptorFromAndroidNativeWindow")] + SurfaceDescriptorFromAndroidNativeWindow = 0x9, + [NativeName("Name", "WGPUSType_SurfaceDescriptorFromXcbWindow")] + SurfaceDescriptorFromXcbWindow = 0xA, + [NativeName("Name", "WGPUSType_RenderPassDescriptorMaxDrawCount")] + RenderPassDescriptorMaxDrawCount = 0xF, + [NativeName("Name", "WGPUSType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/SamplerBindingType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/SamplerBindingType.gen.cs new file mode 100644 index 0000000000..0e55b2c9e4 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/SamplerBindingType.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUSamplerBindingType")] + public enum SamplerBindingType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUSamplerBindingType_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUSamplerBindingType_Filtering")] + Filtering = 0x1, + [NativeName("Name", "WGPUSamplerBindingType_NonFiltering")] + NonFiltering = 0x2, + [NativeName("Name", "WGPUSamplerBindingType_Comparison")] + Comparison = 0x3, + [NativeName("Name", "WGPUSamplerBindingType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/ShaderStage.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/ShaderStage.gen.cs new file mode 100644 index 0000000000..0113c69b51 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/ShaderStage.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUShaderStage")] + public enum ShaderStage : int + { + [NativeName("Name", "WGPUShaderStage_None")] + None = 0x0, + [NativeName("Name", "WGPUShaderStage_Vertex")] + Vertex = 0x1, + [NativeName("Name", "WGPUShaderStage_Fragment")] + Fragment = 0x2, + [NativeName("Name", "WGPUShaderStage_Compute")] + Compute = 0x4, + [NativeName("Name", "WGPUShaderStage_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/StencilOperation.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/StencilOperation.gen.cs new file mode 100644 index 0000000000..49684e0ec5 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/StencilOperation.gen.cs @@ -0,0 +1,34 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUStencilOperation")] + public enum StencilOperation : int + { + [NativeName("Name", "WGPUStencilOperation_Keep")] + Keep = 0x0, + [NativeName("Name", "WGPUStencilOperation_Zero")] + Zero = 0x1, + [NativeName("Name", "WGPUStencilOperation_Replace")] + Replace = 0x2, + [NativeName("Name", "WGPUStencilOperation_Invert")] + Invert = 0x3, + [NativeName("Name", "WGPUStencilOperation_IncrementClamp")] + IncrementClamp = 0x4, + [NativeName("Name", "WGPUStencilOperation_DecrementClamp")] + DecrementClamp = 0x5, + [NativeName("Name", "WGPUStencilOperation_IncrementWrap")] + IncrementWrap = 0x6, + [NativeName("Name", "WGPUStencilOperation_DecrementWrap")] + DecrementWrap = 0x7, + [NativeName("Name", "WGPUStencilOperation_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/StorageTextureAccess.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/StorageTextureAccess.gen.cs new file mode 100644 index 0000000000..92eb5f64d2 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/StorageTextureAccess.gen.cs @@ -0,0 +1,25 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUStorageTextureAccess")] + public enum StorageTextureAccess : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUStorageTextureAccess_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUStorageTextureAccess_WriteOnly")] + WriteOnly = 0x1, + [NativeName("Name", "WGPUStorageTextureAccess_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/StoreOp.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/StoreOp.gen.cs new file mode 100644 index 0000000000..354f95d422 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/StoreOp.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUStoreOp")] + public enum StoreOp : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUStoreOp_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUStoreOp_Store")] + Store = 0x1, + [NativeName("Name", "WGPUStoreOp_Discard")] + Discard = 0x2, + [NativeName("Name", "WGPUStoreOp_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/TextureAspect.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureAspect.gen.cs new file mode 100644 index 0000000000..475ad963a3 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureAspect.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUTextureAspect")] + public enum TextureAspect : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUTextureAspect_All")] + All = 0x0, + [NativeName("Name", "WGPUTextureAspect_StencilOnly")] + StencilOnly = 0x1, + [NativeName("Name", "WGPUTextureAspect_DepthOnly")] + DepthOnly = 0x2, + [NativeName("Name", "WGPUTextureAspect_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/TextureComponentType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureComponentType.gen.cs new file mode 100644 index 0000000000..a4bae840a6 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureComponentType.gen.cs @@ -0,0 +1,29 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUTextureComponentType")] + public enum TextureComponentType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUTextureComponentType_Float")] + Float = 0x0, + [NativeName("Name", "WGPUTextureComponentType_Sint")] + Sint = 0x1, + [NativeName("Name", "WGPUTextureComponentType_Uint")] + Uint = 0x2, + [NativeName("Name", "WGPUTextureComponentType_DepthComparison")] + DepthComparison = 0x3, + [NativeName("Name", "WGPUTextureComponentType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/TextureDimension.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureDimension.gen.cs new file mode 100644 index 0000000000..f488b11b5e --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureDimension.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUTextureDimension")] + public enum TextureDimension : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUTextureDimension_1D")] + TextureDimension1D = 0x0, + [NativeName("Name", "WGPUTextureDimension_2D")] + TextureDimension2D = 0x1, + [NativeName("Name", "WGPUTextureDimension_3D")] + TextureDimension3D = 0x2, + [NativeName("Name", "WGPUTextureDimension_Force32")] + TextureDimensionForce32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/TextureFormat.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureFormat.gen.cs new file mode 100644 index 0000000000..33f9c4ce71 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureFormat.gen.cs @@ -0,0 +1,208 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureFormat")] + public enum TextureFormat : int + { + [NativeName("Name", "WGPUTextureFormat_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUTextureFormat_R8Unorm")] + R8Unorm = 0x1, + [NativeName("Name", "WGPUTextureFormat_R8Snorm")] + R8Snorm = 0x2, + [NativeName("Name", "WGPUTextureFormat_R8Uint")] + R8Uint = 0x3, + [NativeName("Name", "WGPUTextureFormat_R8Sint")] + R8Sint = 0x4, + [NativeName("Name", "WGPUTextureFormat_R16Uint")] + R16Uint = 0x5, + [NativeName("Name", "WGPUTextureFormat_R16Sint")] + R16Sint = 0x6, + [NativeName("Name", "WGPUTextureFormat_R16Float")] + R16float = 0x7, + [NativeName("Name", "WGPUTextureFormat_RG8Unorm")] + RG8Unorm = 0x8, + [NativeName("Name", "WGPUTextureFormat_RG8Snorm")] + RG8Snorm = 0x9, + [NativeName("Name", "WGPUTextureFormat_RG8Uint")] + RG8Uint = 0xA, + [NativeName("Name", "WGPUTextureFormat_RG8Sint")] + RG8Sint = 0xB, + [NativeName("Name", "WGPUTextureFormat_R32Float")] + R32float = 0xC, + [NativeName("Name", "WGPUTextureFormat_R32Uint")] + R32Uint = 0xD, + [NativeName("Name", "WGPUTextureFormat_R32Sint")] + R32Sint = 0xE, + [NativeName("Name", "WGPUTextureFormat_RG16Uint")] + RG16Uint = 0xF, + [NativeName("Name", "WGPUTextureFormat_RG16Sint")] + RG16Sint = 0x10, + [NativeName("Name", "WGPUTextureFormat_RG16Float")] + RG16float = 0x11, + [NativeName("Name", "WGPUTextureFormat_RGBA8Unorm")] + Rgba8Unorm = 0x12, + [NativeName("Name", "WGPUTextureFormat_RGBA8UnormSrgb")] + Rgba8UnormSrgb = 0x13, + [NativeName("Name", "WGPUTextureFormat_RGBA8Snorm")] + Rgba8Snorm = 0x14, + [NativeName("Name", "WGPUTextureFormat_RGBA8Uint")] + Rgba8Uint = 0x15, + [NativeName("Name", "WGPUTextureFormat_RGBA8Sint")] + Rgba8Sint = 0x16, + [NativeName("Name", "WGPUTextureFormat_BGRA8Unorm")] + Bgra8Unorm = 0x17, + [NativeName("Name", "WGPUTextureFormat_BGRA8UnormSrgb")] + Bgra8UnormSrgb = 0x18, + [NativeName("Name", "WGPUTextureFormat_RGB10A2Unorm")] + Rgb10A2Unorm = 0x19, + [NativeName("Name", "WGPUTextureFormat_RG11B10Ufloat")] + RG11B10Ufloat = 0x1A, + [NativeName("Name", "WGPUTextureFormat_RGB9E5Ufloat")] + Rgb9E5Ufloat = 0x1B, + [NativeName("Name", "WGPUTextureFormat_RG32Float")] + RG32float = 0x1C, + [NativeName("Name", "WGPUTextureFormat_RG32Uint")] + RG32Uint = 0x1D, + [NativeName("Name", "WGPUTextureFormat_RG32Sint")] + RG32Sint = 0x1E, + [NativeName("Name", "WGPUTextureFormat_RGBA16Uint")] + Rgba16Uint = 0x1F, + [NativeName("Name", "WGPUTextureFormat_RGBA16Sint")] + Rgba16Sint = 0x20, + [NativeName("Name", "WGPUTextureFormat_RGBA16Float")] + Rgba16float = 0x21, + [NativeName("Name", "WGPUTextureFormat_RGBA32Float")] + Rgba32float = 0x22, + [NativeName("Name", "WGPUTextureFormat_RGBA32Uint")] + Rgba32Uint = 0x23, + [NativeName("Name", "WGPUTextureFormat_RGBA32Sint")] + Rgba32Sint = 0x24, + [NativeName("Name", "WGPUTextureFormat_Stencil8")] + Stencil8 = 0x25, + [NativeName("Name", "WGPUTextureFormat_Depth16Unorm")] + Depth16Unorm = 0x26, + [NativeName("Name", "WGPUTextureFormat_Depth24Plus")] + Depth24Plus = 0x27, + [NativeName("Name", "WGPUTextureFormat_Depth24PlusStencil8")] + Depth24PlusStencil8 = 0x28, + [NativeName("Name", "WGPUTextureFormat_Depth32Float")] + Depth32float = 0x29, + [NativeName("Name", "WGPUTextureFormat_Depth32FloatStencil8")] + Depth32floatStencil8 = 0x2A, + [NativeName("Name", "WGPUTextureFormat_BC1RGBAUnorm")] + BC1Rgbaunorm = 0x2B, + [NativeName("Name", "WGPUTextureFormat_BC1RGBAUnormSrgb")] + BC1RgbaunormSrgb = 0x2C, + [NativeName("Name", "WGPUTextureFormat_BC2RGBAUnorm")] + BC2Rgbaunorm = 0x2D, + [NativeName("Name", "WGPUTextureFormat_BC2RGBAUnormSrgb")] + BC2RgbaunormSrgb = 0x2E, + [NativeName("Name", "WGPUTextureFormat_BC3RGBAUnorm")] + BC3Rgbaunorm = 0x2F, + [NativeName("Name", "WGPUTextureFormat_BC3RGBAUnormSrgb")] + BC3RgbaunormSrgb = 0x30, + [NativeName("Name", "WGPUTextureFormat_BC4RUnorm")] + BC4RUnorm = 0x31, + [NativeName("Name", "WGPUTextureFormat_BC4RSnorm")] + BC4RSnorm = 0x32, + [NativeName("Name", "WGPUTextureFormat_BC5RGUnorm")] + BC5Rgunorm = 0x33, + [NativeName("Name", "WGPUTextureFormat_BC5RGSnorm")] + BC5Rgsnorm = 0x34, + [NativeName("Name", "WGPUTextureFormat_BC6HRGBUfloat")] + BC6Hrgbufloat = 0x35, + [NativeName("Name", "WGPUTextureFormat_BC6HRGBFloat")] + BC6Hrgbfloat = 0x36, + [NativeName("Name", "WGPUTextureFormat_BC7RGBAUnorm")] + BC7Rgbaunorm = 0x37, + [NativeName("Name", "WGPUTextureFormat_BC7RGBAUnormSrgb")] + BC7RgbaunormSrgb = 0x38, + [NativeName("Name", "WGPUTextureFormat_ETC2RGB8Unorm")] + Etc2Rgb8Unorm = 0x39, + [NativeName("Name", "WGPUTextureFormat_ETC2RGB8UnormSrgb")] + Etc2Rgb8UnormSrgb = 0x3A, + [NativeName("Name", "WGPUTextureFormat_ETC2RGB8A1Unorm")] + Etc2Rgb8A1Unorm = 0x3B, + [NativeName("Name", "WGPUTextureFormat_ETC2RGB8A1UnormSrgb")] + Etc2Rgb8A1UnormSrgb = 0x3C, + [NativeName("Name", "WGPUTextureFormat_ETC2RGBA8Unorm")] + Etc2Rgba8Unorm = 0x3D, + [NativeName("Name", "WGPUTextureFormat_ETC2RGBA8UnormSrgb")] + Etc2Rgba8UnormSrgb = 0x3E, + [NativeName("Name", "WGPUTextureFormat_EACR11Unorm")] + Eacr11Unorm = 0x3F, + [NativeName("Name", "WGPUTextureFormat_EACR11Snorm")] + Eacr11Snorm = 0x40, + [NativeName("Name", "WGPUTextureFormat_EACRG11Unorm")] + Eacrg11Unorm = 0x41, + [NativeName("Name", "WGPUTextureFormat_EACRG11Snorm")] + Eacrg11Snorm = 0x42, + [NativeName("Name", "WGPUTextureFormat_ASTC4x4Unorm")] + Astc4x4Unorm = 0x43, + [NativeName("Name", "WGPUTextureFormat_ASTC4x4UnormSrgb")] + Astc4x4UnormSrgb = 0x44, + [NativeName("Name", "WGPUTextureFormat_ASTC5x4Unorm")] + Astc5x4Unorm = 0x45, + [NativeName("Name", "WGPUTextureFormat_ASTC5x4UnormSrgb")] + Astc5x4UnormSrgb = 0x46, + [NativeName("Name", "WGPUTextureFormat_ASTC5x5Unorm")] + Astc5x5Unorm = 0x47, + [NativeName("Name", "WGPUTextureFormat_ASTC5x5UnormSrgb")] + Astc5x5UnormSrgb = 0x48, + [NativeName("Name", "WGPUTextureFormat_ASTC6x5Unorm")] + Astc6x5Unorm = 0x49, + [NativeName("Name", "WGPUTextureFormat_ASTC6x5UnormSrgb")] + Astc6x5UnormSrgb = 0x4A, + [NativeName("Name", "WGPUTextureFormat_ASTC6x6Unorm")] + Astc6x6Unorm = 0x4B, + [NativeName("Name", "WGPUTextureFormat_ASTC6x6UnormSrgb")] + Astc6x6UnormSrgb = 0x4C, + [NativeName("Name", "WGPUTextureFormat_ASTC8x5Unorm")] + Astc8x5Unorm = 0x4D, + [NativeName("Name", "WGPUTextureFormat_ASTC8x5UnormSrgb")] + Astc8x5UnormSrgb = 0x4E, + [NativeName("Name", "WGPUTextureFormat_ASTC8x6Unorm")] + Astc8x6Unorm = 0x4F, + [NativeName("Name", "WGPUTextureFormat_ASTC8x6UnormSrgb")] + Astc8x6UnormSrgb = 0x50, + [NativeName("Name", "WGPUTextureFormat_ASTC8x8Unorm")] + Astc8x8Unorm = 0x51, + [NativeName("Name", "WGPUTextureFormat_ASTC8x8UnormSrgb")] + Astc8x8UnormSrgb = 0x52, + [NativeName("Name", "WGPUTextureFormat_ASTC10x5Unorm")] + Astc10x5Unorm = 0x53, + [NativeName("Name", "WGPUTextureFormat_ASTC10x5UnormSrgb")] + Astc10x5UnormSrgb = 0x54, + [NativeName("Name", "WGPUTextureFormat_ASTC10x6Unorm")] + Astc10x6Unorm = 0x55, + [NativeName("Name", "WGPUTextureFormat_ASTC10x6UnormSrgb")] + Astc10x6UnormSrgb = 0x56, + [NativeName("Name", "WGPUTextureFormat_ASTC10x8Unorm")] + Astc10x8Unorm = 0x57, + [NativeName("Name", "WGPUTextureFormat_ASTC10x8UnormSrgb")] + Astc10x8UnormSrgb = 0x58, + [NativeName("Name", "WGPUTextureFormat_ASTC10x10Unorm")] + Astc10x10Unorm = 0x59, + [NativeName("Name", "WGPUTextureFormat_ASTC10x10UnormSrgb")] + Astc10x10UnormSrgb = 0x5A, + [NativeName("Name", "WGPUTextureFormat_ASTC12x10Unorm")] + Astc12x10Unorm = 0x5B, + [NativeName("Name", "WGPUTextureFormat_ASTC12x10UnormSrgb")] + Astc12x10UnormSrgb = 0x5C, + [NativeName("Name", "WGPUTextureFormat_ASTC12x12Unorm")] + Astc12x12Unorm = 0x5D, + [NativeName("Name", "WGPUTextureFormat_ASTC12x12UnormSrgb")] + Astc12x12UnormSrgb = 0x5E, + [NativeName("Name", "WGPUTextureFormat_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/TextureSampleType.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureSampleType.gen.cs new file mode 100644 index 0000000000..447848381b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureSampleType.gen.cs @@ -0,0 +1,33 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUTextureSampleType")] + public enum TextureSampleType : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUTextureSampleType_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUTextureSampleType_Float")] + Float = 0x1, + [NativeName("Name", "WGPUTextureSampleType_UnfilterableFloat")] + UnfilterableFloat = 0x2, + [NativeName("Name", "WGPUTextureSampleType_Depth")] + Depth = 0x3, + [NativeName("Name", "WGPUTextureSampleType_Sint")] + Sint = 0x4, + [NativeName("Name", "WGPUTextureSampleType_Uint")] + Uint = 0x5, + [NativeName("Name", "WGPUTextureSampleType_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/TextureUsage.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureUsage.gen.cs new file mode 100644 index 0000000000..a7f7f6accb --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureUsage.gen.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUTextureUsage")] + public enum TextureUsage : int + { + [NativeName("Name", "WGPUTextureUsage_None")] + None = 0x0, + [NativeName("Name", "WGPUTextureUsage_CopySrc")] + CopySrc = 0x1, + [NativeName("Name", "WGPUTextureUsage_CopyDst")] + CopyDst = 0x2, + [NativeName("Name", "WGPUTextureUsage_TextureBinding")] + TextureBinding = 0x4, + [NativeName("Name", "WGPUTextureUsage_StorageBinding")] + StorageBinding = 0x8, + [NativeName("Name", "WGPUTextureUsage_RenderAttachment")] + RenderAttachment = 0x10, + [NativeName("Name", "WGPUTextureUsage_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/TextureViewDimension.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureViewDimension.gen.cs new file mode 100644 index 0000000000..177ded821e --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/TextureViewDimension.gen.cs @@ -0,0 +1,32 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureViewDimension")] + public enum TextureViewDimension : int + { + [NativeName("Name", "WGPUTextureViewDimension_Undefined")] + TextureViewDimensionUndefined = 0x0, + [NativeName("Name", "WGPUTextureViewDimension_1D")] + TextureViewDimension1D = 0x1, + [NativeName("Name", "WGPUTextureViewDimension_2D")] + TextureViewDimension2D = 0x2, + [NativeName("Name", "WGPUTextureViewDimension_2DArray")] + TextureViewDimension2DArray = 0x3, + [NativeName("Name", "WGPUTextureViewDimension_Cube")] + TextureViewDimensionCube = 0x4, + [NativeName("Name", "WGPUTextureViewDimension_CubeArray")] + TextureViewDimensionCubeArray = 0x5, + [NativeName("Name", "WGPUTextureViewDimension_3D")] + TextureViewDimension3D = 0x6, + [NativeName("Name", "WGPUTextureViewDimension_Force32")] + TextureViewDimensionForce32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/VertexFormat.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/VertexFormat.gen.cs new file mode 100644 index 0000000000..9eb4919dab --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/VertexFormat.gen.cs @@ -0,0 +1,80 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUVertexFormat")] + public enum VertexFormat : int + { + [NativeName("Name", "WGPUVertexFormat_Undefined")] + Undefined = 0x0, + [NativeName("Name", "WGPUVertexFormat_Uint8x2")] + Uint8x2 = 0x1, + [NativeName("Name", "WGPUVertexFormat_Uint8x4")] + Uint8x4 = 0x2, + [NativeName("Name", "WGPUVertexFormat_Sint8x2")] + Sint8x2 = 0x3, + [NativeName("Name", "WGPUVertexFormat_Sint8x4")] + Sint8x4 = 0x4, + [NativeName("Name", "WGPUVertexFormat_Unorm8x2")] + Unorm8x2 = 0x5, + [NativeName("Name", "WGPUVertexFormat_Unorm8x4")] + Unorm8x4 = 0x6, + [NativeName("Name", "WGPUVertexFormat_Snorm8x2")] + Snorm8x2 = 0x7, + [NativeName("Name", "WGPUVertexFormat_Snorm8x4")] + Snorm8x4 = 0x8, + [NativeName("Name", "WGPUVertexFormat_Uint16x2")] + Uint16x2 = 0x9, + [NativeName("Name", "WGPUVertexFormat_Uint16x4")] + Uint16x4 = 0xA, + [NativeName("Name", "WGPUVertexFormat_Sint16x2")] + Sint16x2 = 0xB, + [NativeName("Name", "WGPUVertexFormat_Sint16x4")] + Sint16x4 = 0xC, + [NativeName("Name", "WGPUVertexFormat_Unorm16x2")] + Unorm16x2 = 0xD, + [NativeName("Name", "WGPUVertexFormat_Unorm16x4")] + Unorm16x4 = 0xE, + [NativeName("Name", "WGPUVertexFormat_Snorm16x2")] + Snorm16x2 = 0xF, + [NativeName("Name", "WGPUVertexFormat_Snorm16x4")] + Snorm16x4 = 0x10, + [NativeName("Name", "WGPUVertexFormat_Float16x2")] + Float16x2 = 0x11, + [NativeName("Name", "WGPUVertexFormat_Float16x4")] + Float16x4 = 0x12, + [NativeName("Name", "WGPUVertexFormat_Float32")] + Float32 = 0x13, + [NativeName("Name", "WGPUVertexFormat_Float32x2")] + Float32x2 = 0x14, + [NativeName("Name", "WGPUVertexFormat_Float32x3")] + Float32x3 = 0x15, + [NativeName("Name", "WGPUVertexFormat_Float32x4")] + Float32x4 = 0x16, + [NativeName("Name", "WGPUVertexFormat_Uint32")] + Uint32 = 0x17, + [NativeName("Name", "WGPUVertexFormat_Uint32x2")] + Uint32x2 = 0x18, + [NativeName("Name", "WGPUVertexFormat_Uint32x3")] + Uint32x3 = 0x19, + [NativeName("Name", "WGPUVertexFormat_Uint32x4")] + Uint32x4 = 0x1A, + [NativeName("Name", "WGPUVertexFormat_Sint32")] + Sint32 = 0x1B, + [NativeName("Name", "WGPUVertexFormat_Sint32x2")] + Sint32x2 = 0x1C, + [NativeName("Name", "WGPUVertexFormat_Sint32x3")] + Sint32x3 = 0x1D, + [NativeName("Name", "WGPUVertexFormat_Sint32x4")] + Sint32x4 = 0x1E, + [NativeName("Name", "WGPUVertexFormat_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Enums/VertexStepMode.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Enums/VertexStepMode.gen.cs new file mode 100644 index 0000000000..32398632a2 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Enums/VertexStepMode.gen.cs @@ -0,0 +1,27 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using Silk.NET.Core.Attributes; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [Flags] + [NativeName("Name", "WGPUVertexStepMode")] + public enum VertexStepMode : int + { + [NativeName("Name", "")] + None = 0, + [NativeName("Name", "WGPUVertexStepMode_Vertex")] + Vertex = 0x0, + [NativeName("Name", "WGPUVertexStepMode_Instance")] + Instance = 0x1, + [NativeName("Name", "WGPUVertexStepMode_VertexBufferNotUsed")] + VertexBufferNotUsed = 0x2, + [NativeName("Name", "WGPUVertexStepMode_Force32")] + Force32 = 0x7FFFFFFF, + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Silk.NET.WebGPU.csproj b/src/WebGPU/Silk.NET.WebGPU/Silk.NET.WebGPU.csproj new file mode 100644 index 0000000000..222c98e1d4 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Silk.NET.WebGPU.csproj @@ -0,0 +1,13 @@ + + + + netstandard2.0;netstandard2.1;netcoreapp3.1;net5.0 + true + preview + + + + + + + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Adapter.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Adapter.gen.cs new file mode 100644 index 0000000000..2aa7704835 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Adapter.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUAdapterImpl")] + public unsafe partial struct Adapter + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/AdapterProperties.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/AdapterProperties.gen.cs new file mode 100644 index 0000000000..c24878876d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/AdapterProperties.gen.cs @@ -0,0 +1,127 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUAdapterProperties")] + public unsafe partial struct AdapterProperties + { + public AdapterProperties + ( + ChainedStructOut* nextInChain = null, + uint? vendorID = null, + byte* vendorName = null, + byte* architecture = null, + uint? deviceID = null, + byte* name = null, + byte* driverDescription = null, + AdapterType? adapterType = null, + BackendType? backendType = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (vendorID is not null) + { + VendorID = vendorID.Value; + } + + if (vendorName is not null) + { + VendorName = vendorName; + } + + if (architecture is not null) + { + Architecture = architecture; + } + + if (deviceID is not null) + { + DeviceID = deviceID.Value; + } + + if (name is not null) + { + Name = name; + } + + if (driverDescription is not null) + { + DriverDescription = driverDescription; + } + + if (adapterType is not null) + { + AdapterType = adapterType.Value; + } + + if (backendType is not null) + { + BackendType = backendType.Value; + } + } + + + [NativeName("Type", "WGPUChainedStructOut *")] + [NativeName("Type.Name", "WGPUChainedStructOut *")] + [NativeName("Name", "nextInChain")] + public ChainedStructOut* NextInChain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "vendorID")] + public uint VendorID; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "vendorName")] + public byte* VendorName; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "architecture")] + public byte* Architecture; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "deviceID")] + public uint DeviceID; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "name")] + public byte* Name; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "driverDescription")] + public byte* DriverDescription; + + [NativeName("Type", "WGPUAdapterType")] + [NativeName("Type.Name", "WGPUAdapterType")] + [NativeName("Name", "adapterType")] + public AdapterType AdapterType; + + [NativeName("Type", "WGPUBackendType")] + [NativeName("Type.Name", "WGPUBackendType")] + [NativeName("Name", "backendType")] + public BackendType BackendType; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroup.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroup.gen.cs new file mode 100644 index 0000000000..1d416f6041 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroup.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBindGroupImpl")] + public unsafe partial struct BindGroup + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupDescriptor.gen.cs new file mode 100644 index 0000000000..382636a7ad --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupDescriptor.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBindGroupDescriptor")] + public unsafe partial struct BindGroupDescriptor + { + public BindGroupDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + BindGroupLayout* layout = null, + uint? entryCount = null, + BindGroupEntry* entries = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (layout is not null) + { + Layout = layout; + } + + if (entryCount is not null) + { + EntryCount = entryCount.Value; + } + + if (entries is not null) + { + Entries = entries; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUBindGroupLayout")] + [NativeName("Type.Name", "WGPUBindGroupLayout")] + [NativeName("Name", "layout")] + public BindGroupLayout* Layout; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "entryCount")] + public uint EntryCount; + + [NativeName("Type", "const WGPUBindGroupEntry *")] + [NativeName("Type.Name", "const WGPUBindGroupEntry *")] + [NativeName("Name", "entries")] + public BindGroupEntry* Entries; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupEntry.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupEntry.gen.cs new file mode 100644 index 0000000000..d535a71d50 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupEntry.gen.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBindGroupEntry")] + public unsafe partial struct BindGroupEntry + { + public BindGroupEntry + ( + ChainedStruct* nextInChain = null, + uint? binding = null, + Buffer* buffer = null, + ulong? offset = null, + ulong? size = null, + Sampler* sampler = null, + TextureView* textureView = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (binding is not null) + { + Binding = binding.Value; + } + + if (buffer is not null) + { + Buffer = buffer; + } + + if (offset is not null) + { + Offset = offset.Value; + } + + if (size is not null) + { + Size = size.Value; + } + + if (sampler is not null) + { + Sampler = sampler; + } + + if (textureView is not null) + { + TextureView = textureView; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "binding")] + public uint Binding; + + [NativeName("Type", "WGPUBuffer")] + [NativeName("Type.Name", "WGPUBuffer")] + [NativeName("Name", "buffer")] + public Buffer* Buffer; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "offset")] + public ulong Offset; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "size")] + public ulong Size; + + [NativeName("Type", "WGPUSampler")] + [NativeName("Type.Name", "WGPUSampler")] + [NativeName("Name", "sampler")] + public Sampler* Sampler; + + [NativeName("Type", "WGPUTextureView")] + [NativeName("Type.Name", "WGPUTextureView")] + [NativeName("Name", "textureView")] + public TextureView* TextureView; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayout.gen.cs new file mode 100644 index 0000000000..c6d96fdddc --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayout.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBindGroupLayoutImpl")] + public unsafe partial struct BindGroupLayout + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayoutDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayoutDescriptor.gen.cs new file mode 100644 index 0000000000..7252b2a4b8 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayoutDescriptor.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBindGroupLayoutDescriptor")] + public unsafe partial struct BindGroupLayoutDescriptor + { + public BindGroupLayoutDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + uint? entryCount = null, + BindGroupLayoutEntry* entries = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (entryCount is not null) + { + EntryCount = entryCount.Value; + } + + if (entries is not null) + { + Entries = entries; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "entryCount")] + public uint EntryCount; + + [NativeName("Type", "const WGPUBindGroupLayoutEntry *")] + [NativeName("Type.Name", "const WGPUBindGroupLayoutEntry *")] + [NativeName("Name", "entries")] + public BindGroupLayoutEntry* Entries; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayoutEntry.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayoutEntry.gen.cs new file mode 100644 index 0000000000..65cdcdec40 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BindGroupLayoutEntry.gen.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBindGroupLayoutEntry")] + public unsafe partial struct BindGroupLayoutEntry + { + public BindGroupLayoutEntry + ( + ChainedStruct* nextInChain = null, + uint? binding = null, + Silk.NET.WebGPU.ShaderStage? visibility = null, + BufferBindingLayout? buffer = null, + SamplerBindingLayout? sampler = null, + TextureBindingLayout? texture = null, + StorageTextureBindingLayout? storageTexture = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (binding is not null) + { + Binding = binding.Value; + } + + if (visibility is not null) + { + Visibility = visibility.Value; + } + + if (buffer is not null) + { + Buffer = buffer.Value; + } + + if (sampler is not null) + { + Sampler = sampler.Value; + } + + if (texture is not null) + { + Texture = texture.Value; + } + + if (storageTexture is not null) + { + StorageTexture = storageTexture.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "binding")] + public uint Binding; + + [NativeName("Type", "WGPUShaderStageFlags")] + [NativeName("Type.Name", "WGPUShaderStageFlags")] + [NativeName("Name", "visibility")] + public Silk.NET.WebGPU.ShaderStage Visibility; + + [NativeName("Type", "WGPUBufferBindingLayout")] + [NativeName("Type.Name", "WGPUBufferBindingLayout")] + [NativeName("Name", "buffer")] + public BufferBindingLayout Buffer; + + [NativeName("Type", "WGPUSamplerBindingLayout")] + [NativeName("Type.Name", "WGPUSamplerBindingLayout")] + [NativeName("Name", "sampler")] + public SamplerBindingLayout Sampler; + + [NativeName("Type", "WGPUTextureBindingLayout")] + [NativeName("Type.Name", "WGPUTextureBindingLayout")] + [NativeName("Name", "texture")] + public TextureBindingLayout Texture; + + [NativeName("Type", "WGPUStorageTextureBindingLayout")] + [NativeName("Type.Name", "WGPUStorageTextureBindingLayout")] + [NativeName("Name", "storageTexture")] + public StorageTextureBindingLayout StorageTexture; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BlendComponent.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BlendComponent.gen.cs new file mode 100644 index 0000000000..113de4c355 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BlendComponent.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBlendComponent")] + public unsafe partial struct BlendComponent + { + public BlendComponent + ( + BlendOperation? operation = null, + BlendFactor? srcFactor = null, + BlendFactor? dstFactor = null + ) : this() + { + if (operation is not null) + { + Operation = operation.Value; + } + + if (srcFactor is not null) + { + SrcFactor = srcFactor.Value; + } + + if (dstFactor is not null) + { + DstFactor = dstFactor.Value; + } + } + + + [NativeName("Type", "WGPUBlendOperation")] + [NativeName("Type.Name", "WGPUBlendOperation")] + [NativeName("Name", "operation")] + public BlendOperation Operation; + + [NativeName("Type", "WGPUBlendFactor")] + [NativeName("Type.Name", "WGPUBlendFactor")] + [NativeName("Name", "srcFactor")] + public BlendFactor SrcFactor; + + [NativeName("Type", "WGPUBlendFactor")] + [NativeName("Type.Name", "WGPUBlendFactor")] + [NativeName("Name", "dstFactor")] + public BlendFactor DstFactor; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BlendState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BlendState.gen.cs new file mode 100644 index 0000000000..72ad07c5b6 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BlendState.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBlendState")] + public unsafe partial struct BlendState + { + public BlendState + ( + BlendComponent? color = null, + BlendComponent? alpha = null + ) : this() + { + if (color is not null) + { + Color = color.Value; + } + + if (alpha is not null) + { + Alpha = alpha.Value; + } + } + + + [NativeName("Type", "WGPUBlendComponent")] + [NativeName("Type.Name", "WGPUBlendComponent")] + [NativeName("Name", "color")] + public BlendComponent Color; + + [NativeName("Type", "WGPUBlendComponent")] + [NativeName("Type.Name", "WGPUBlendComponent")] + [NativeName("Name", "alpha")] + public BlendComponent Alpha; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Buffer.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Buffer.gen.cs new file mode 100644 index 0000000000..6dade211f2 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Buffer.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBufferImpl")] + public unsafe partial struct Buffer + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BufferBindingLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BufferBindingLayout.gen.cs new file mode 100644 index 0000000000..5ac5236aaa --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BufferBindingLayout.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBufferBindingLayout")] + public unsafe partial struct BufferBindingLayout + { + public BufferBindingLayout + ( + ChainedStruct* nextInChain = null, + BufferBindingType? type = null, + bool? hasDynamicOffset = null, + ulong? minBindingSize = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (type is not null) + { + Type = type.Value; + } + + if (hasDynamicOffset is not null) + { + HasDynamicOffset = hasDynamicOffset.Value; + } + + if (minBindingSize is not null) + { + MinBindingSize = minBindingSize.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUBufferBindingType")] + [NativeName("Type.Name", "WGPUBufferBindingType")] + [NativeName("Name", "type")] + public BufferBindingType Type; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "hasDynamicOffset")] + public bool HasDynamicOffset; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "minBindingSize")] + public ulong MinBindingSize; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/BufferDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/BufferDescriptor.gen.cs new file mode 100644 index 0000000000..0c133073b5 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/BufferDescriptor.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUBufferDescriptor")] + public unsafe partial struct BufferDescriptor + { + public BufferDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + Silk.NET.WebGPU.BufferUsage? usage = null, + ulong? size = null, + bool? mappedAtCreation = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (usage is not null) + { + Usage = usage.Value; + } + + if (size is not null) + { + Size = size.Value; + } + + if (mappedAtCreation is not null) + { + MappedAtCreation = mappedAtCreation.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUBufferUsageFlags")] + [NativeName("Type.Name", "WGPUBufferUsageFlags")] + [NativeName("Name", "usage")] + public Silk.NET.WebGPU.BufferUsage Usage; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "size")] + public ulong Size; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "mappedAtCreation")] + public bool MappedAtCreation; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ChainedStruct.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ChainedStruct.gen.cs new file mode 100644 index 0000000000..9f6f848737 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ChainedStruct.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUChainedStruct")] + public unsafe partial struct ChainedStruct + { + public ChainedStruct + ( + ChainedStruct* next = null, + SType? sType = null + ) : this() + { + if (next is not null) + { + Next = next; + } + + if (sType is not null) + { + SType = sType.Value; + } + } + + + [NativeName("Type", "const struct WGPUChainedStruct *")] + [NativeName("Type.Name", "const struct WGPUChainedStruct *")] + [NativeName("Name", "next")] + public ChainedStruct* Next; + + [NativeName("Type", "WGPUSType")] + [NativeName("Type.Name", "WGPUSType")] + [NativeName("Name", "sType")] + public SType SType; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ChainedStructOut.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ChainedStructOut.gen.cs new file mode 100644 index 0000000000..b1ced8572c --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ChainedStructOut.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUChainedStructOut")] + public unsafe partial struct ChainedStructOut + { + public ChainedStructOut + ( + ChainedStructOut* next = null, + SType? sType = null + ) : this() + { + if (next is not null) + { + Next = next; + } + + if (sType is not null) + { + SType = sType.Value; + } + } + + + [NativeName("Type", "struct WGPUChainedStructOut *")] + [NativeName("Type.Name", "struct WGPUChainedStructOut *")] + [NativeName("Name", "next")] + public ChainedStructOut* Next; + + [NativeName("Type", "WGPUSType")] + [NativeName("Type.Name", "WGPUSType")] + [NativeName("Name", "sType")] + public SType SType; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Color.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Color.gen.cs new file mode 100644 index 0000000000..57cf9218bb --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Color.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUColor")] + public unsafe partial struct Color + { + public Color + ( + double? r = null, + double? g = null, + double? b = null, + double? a = null + ) : this() + { + if (r is not null) + { + R = r.Value; + } + + if (g is not null) + { + G = g.Value; + } + + if (b is not null) + { + B = b.Value; + } + + if (a is not null) + { + A = a.Value; + } + } + + + [NativeName("Type", "double")] + [NativeName("Type.Name", "double")] + [NativeName("Name", "r")] + public double R; + + [NativeName("Type", "double")] + [NativeName("Type.Name", "double")] + [NativeName("Name", "g")] + public double G; + + [NativeName("Type", "double")] + [NativeName("Type.Name", "double")] + [NativeName("Name", "b")] + public double B; + + [NativeName("Type", "double")] + [NativeName("Type.Name", "double")] + [NativeName("Name", "a")] + public double A; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ColorTargetState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ColorTargetState.gen.cs new file mode 100644 index 0000000000..9ac7c5e3bb --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ColorTargetState.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUColorTargetState")] + public unsafe partial struct ColorTargetState + { + public ColorTargetState + ( + ChainedStruct* nextInChain = null, + TextureFormat? format = null, + BlendState* blend = null, + Silk.NET.WebGPU.ColorWriteMask? writeMask = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (format is not null) + { + Format = format.Value; + } + + if (blend is not null) + { + Blend = blend; + } + + if (writeMask is not null) + { + WriteMask = writeMask.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUTextureFormat")] + [NativeName("Type.Name", "WGPUTextureFormat")] + [NativeName("Name", "format")] + public TextureFormat Format; + + [NativeName("Type", "const WGPUBlendState *")] + [NativeName("Type.Name", "const WGPUBlendState *")] + [NativeName("Name", "blend")] + public BlendState* Blend; + + [NativeName("Type", "WGPUColorWriteMaskFlags")] + [NativeName("Type.Name", "WGPUColorWriteMaskFlags")] + [NativeName("Name", "writeMask")] + public Silk.NET.WebGPU.ColorWriteMask WriteMask; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/CommandBuffer.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandBuffer.gen.cs new file mode 100644 index 0000000000..8af72708a9 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandBuffer.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUCommandBufferImpl")] + public unsafe partial struct CommandBuffer + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/CommandBufferDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandBufferDescriptor.gen.cs new file mode 100644 index 0000000000..34943fbc01 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandBufferDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUCommandBufferDescriptor")] + public unsafe partial struct CommandBufferDescriptor + { + public CommandBufferDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/CommandEncoder.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandEncoder.gen.cs new file mode 100644 index 0000000000..7480fb870d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandEncoder.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUCommandEncoderImpl")] + public unsafe partial struct CommandEncoder + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/CommandEncoderDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandEncoderDescriptor.gen.cs new file mode 100644 index 0000000000..3071c1ce81 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/CommandEncoderDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUCommandEncoderDescriptor")] + public unsafe partial struct CommandEncoderDescriptor + { + public CommandEncoderDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/CompilationInfo.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/CompilationInfo.gen.cs new file mode 100644 index 0000000000..860764f494 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/CompilationInfo.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUCompilationInfo")] + public unsafe partial struct CompilationInfo + { + public CompilationInfo + ( + ChainedStruct* nextInChain = null, + uint? messageCount = null, + CompilationMessage* messages = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (messageCount is not null) + { + MessageCount = messageCount.Value; + } + + if (messages is not null) + { + Messages = messages; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "messageCount")] + public uint MessageCount; + + [NativeName("Type", "const WGPUCompilationMessage *")] + [NativeName("Type.Name", "const WGPUCompilationMessage *")] + [NativeName("Name", "messages")] + public CompilationMessage* Messages; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/CompilationMessage.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/CompilationMessage.gen.cs new file mode 100644 index 0000000000..8b17ad60d1 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/CompilationMessage.gen.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUCompilationMessage")] + public unsafe partial struct CompilationMessage + { + public CompilationMessage + ( + ChainedStruct* nextInChain = null, + byte* message = null, + CompilationMessageType? type = null, + ulong? lineNum = null, + ulong? linePos = null, + ulong? offset = null, + ulong? length = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (message is not null) + { + Message = message; + } + + if (type is not null) + { + Type = type.Value; + } + + if (lineNum is not null) + { + LineNum = lineNum.Value; + } + + if (linePos is not null) + { + LinePos = linePos.Value; + } + + if (offset is not null) + { + Offset = offset.Value; + } + + if (length is not null) + { + Length = length.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "message")] + public byte* Message; + + [NativeName("Type", "WGPUCompilationMessageType")] + [NativeName("Type.Name", "WGPUCompilationMessageType")] + [NativeName("Name", "type")] + public CompilationMessageType Type; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "lineNum")] + public ulong LineNum; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "linePos")] + public ulong LinePos; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "offset")] + public ulong Offset; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "length")] + public ulong Length; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassDescriptor.gen.cs new file mode 100644 index 0000000000..b233aee7f4 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassDescriptor.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUComputePassDescriptor")] + public unsafe partial struct ComputePassDescriptor + { + public ComputePassDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + uint? timestampWriteCount = null, + ComputePassTimestampWrite* timestampWrites = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (timestampWriteCount is not null) + { + TimestampWriteCount = timestampWriteCount.Value; + } + + if (timestampWrites is not null) + { + TimestampWrites = timestampWrites; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "timestampWriteCount")] + public uint TimestampWriteCount; + + [NativeName("Type", "const WGPUComputePassTimestampWrite *")] + [NativeName("Type.Name", "const WGPUComputePassTimestampWrite *")] + [NativeName("Name", "timestampWrites")] + public ComputePassTimestampWrite* TimestampWrites; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassEncoder.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassEncoder.gen.cs new file mode 100644 index 0000000000..b51d3ab27a --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassEncoder.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUComputePassEncoderImpl")] + public unsafe partial struct ComputePassEncoder + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassTimestampWrite.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassTimestampWrite.gen.cs new file mode 100644 index 0000000000..a3a8608fe3 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePassTimestampWrite.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUComputePassTimestampWrite")] + public unsafe partial struct ComputePassTimestampWrite + { + public ComputePassTimestampWrite + ( + QuerySet* querySet = null, + uint? queryIndex = null, + ComputePassTimestampLocation? location = null + ) : this() + { + if (querySet is not null) + { + QuerySet = querySet; + } + + if (queryIndex is not null) + { + QueryIndex = queryIndex.Value; + } + + if (location is not null) + { + Location = location.Value; + } + } + + + [NativeName("Type", "WGPUQuerySet")] + [NativeName("Type.Name", "WGPUQuerySet")] + [NativeName("Name", "querySet")] + public QuerySet* QuerySet; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "queryIndex")] + public uint QueryIndex; + + [NativeName("Type", "WGPUComputePassTimestampLocation")] + [NativeName("Type.Name", "WGPUComputePassTimestampLocation")] + [NativeName("Name", "location")] + public ComputePassTimestampLocation Location; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePipeline.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePipeline.gen.cs new file mode 100644 index 0000000000..db6c295711 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePipeline.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUComputePipelineImpl")] + public unsafe partial struct ComputePipeline + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePipelineDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePipelineDescriptor.gen.cs new file mode 100644 index 0000000000..66674ae33f --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ComputePipelineDescriptor.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUComputePipelineDescriptor")] + public unsafe partial struct ComputePipelineDescriptor + { + public ComputePipelineDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + PipelineLayout* layout = null, + ProgrammableStageDescriptor? compute = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (layout is not null) + { + Layout = layout; + } + + if (compute is not null) + { + Compute = compute.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUPipelineLayout")] + [NativeName("Type.Name", "WGPUPipelineLayout")] + [NativeName("Name", "layout")] + public PipelineLayout* Layout; + + [NativeName("Type", "WGPUProgrammableStageDescriptor")] + [NativeName("Type.Name", "WGPUProgrammableStageDescriptor")] + [NativeName("Name", "compute")] + public ProgrammableStageDescriptor Compute; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ConstantEntry.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ConstantEntry.gen.cs new file mode 100644 index 0000000000..d4bf6ad8a7 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ConstantEntry.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUConstantEntry")] + public unsafe partial struct ConstantEntry + { + public ConstantEntry + ( + ChainedStruct* nextInChain = null, + byte* key = null, + double? value = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (key is not null) + { + Key = key; + } + + if (value is not null) + { + Value = value.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "key")] + public byte* Key; + + [NativeName("Type", "double")] + [NativeName("Type.Name", "double")] + [NativeName("Name", "value")] + public double Value; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/DepthStencilState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/DepthStencilState.gen.cs new file mode 100644 index 0000000000..267c1cd276 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/DepthStencilState.gen.cs @@ -0,0 +1,149 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUDepthStencilState")] + public unsafe partial struct DepthStencilState + { + public DepthStencilState + ( + ChainedStruct* nextInChain = null, + TextureFormat? format = null, + bool? depthWriteEnabled = null, + CompareFunction? depthCompare = null, + StencilFaceState? stencilFront = null, + StencilFaceState? stencilBack = null, + uint? stencilReadMask = null, + uint? stencilWriteMask = null, + int? depthBias = null, + float? depthBiasSlopeScale = null, + float? depthBiasClamp = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (format is not null) + { + Format = format.Value; + } + + if (depthWriteEnabled is not null) + { + DepthWriteEnabled = depthWriteEnabled.Value; + } + + if (depthCompare is not null) + { + DepthCompare = depthCompare.Value; + } + + if (stencilFront is not null) + { + StencilFront = stencilFront.Value; + } + + if (stencilBack is not null) + { + StencilBack = stencilBack.Value; + } + + if (stencilReadMask is not null) + { + StencilReadMask = stencilReadMask.Value; + } + + if (stencilWriteMask is not null) + { + StencilWriteMask = stencilWriteMask.Value; + } + + if (depthBias is not null) + { + DepthBias = depthBias.Value; + } + + if (depthBiasSlopeScale is not null) + { + DepthBiasSlopeScale = depthBiasSlopeScale.Value; + } + + if (depthBiasClamp is not null) + { + DepthBiasClamp = depthBiasClamp.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUTextureFormat")] + [NativeName("Type.Name", "WGPUTextureFormat")] + [NativeName("Name", "format")] + public TextureFormat Format; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "depthWriteEnabled")] + public bool DepthWriteEnabled; + + [NativeName("Type", "WGPUCompareFunction")] + [NativeName("Type.Name", "WGPUCompareFunction")] + [NativeName("Name", "depthCompare")] + public CompareFunction DepthCompare; + + [NativeName("Type", "WGPUStencilFaceState")] + [NativeName("Type.Name", "WGPUStencilFaceState")] + [NativeName("Name", "stencilFront")] + public StencilFaceState StencilFront; + + [NativeName("Type", "WGPUStencilFaceState")] + [NativeName("Type.Name", "WGPUStencilFaceState")] + [NativeName("Name", "stencilBack")] + public StencilFaceState StencilBack; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "stencilReadMask")] + public uint StencilReadMask; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "stencilWriteMask")] + public uint StencilWriteMask; + + [NativeName("Type", "int32_t")] + [NativeName("Type.Name", "int32_t")] + [NativeName("Name", "depthBias")] + public int DepthBias; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "depthBiasSlopeScale")] + public float DepthBiasSlopeScale; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "depthBiasClamp")] + public float DepthBiasClamp; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Device.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Device.gen.cs new file mode 100644 index 0000000000..f58d0c9dca --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Device.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUDeviceImpl")] + public unsafe partial struct Device + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/DeviceDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/DeviceDescriptor.gen.cs new file mode 100644 index 0000000000..3f395f95ab --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/DeviceDescriptor.gen.cs @@ -0,0 +1,94 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUDeviceDescriptor")] + public unsafe partial struct DeviceDescriptor + { + public DeviceDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + uint? requiredFeaturesCount = null, + FeatureName* requiredFeatures = null, + RequiredLimits* requiredLimits = null, + QueueDescriptor? defaultQueue = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (requiredFeaturesCount is not null) + { + RequiredFeaturesCount = requiredFeaturesCount.Value; + } + + if (requiredFeatures is not null) + { + RequiredFeatures = requiredFeatures; + } + + if (requiredLimits is not null) + { + RequiredLimits = requiredLimits; + } + + if (defaultQueue is not null) + { + DefaultQueue = defaultQueue.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "requiredFeaturesCount")] + public uint RequiredFeaturesCount; + + [NativeName("Type", "const WGPUFeatureName *")] + [NativeName("Type.Name", "const WGPUFeatureName *")] + [NativeName("Name", "requiredFeatures")] + public FeatureName* RequiredFeatures; + + [NativeName("Type", "const WGPURequiredLimits *")] + [NativeName("Type.Name", "const WGPURequiredLimits *")] + [NativeName("Name", "requiredLimits")] + public RequiredLimits* RequiredLimits; + + [NativeName("Type", "WGPUQueueDescriptor")] + [NativeName("Type.Name", "WGPUQueueDescriptor")] + [NativeName("Name", "defaultQueue")] + public QueueDescriptor DefaultQueue; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Extent3D.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Extent3D.gen.cs new file mode 100644 index 0000000000..18bc0b7e48 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Extent3D.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUExtent3D")] + public unsafe partial struct Extent3D + { + public Extent3D + ( + uint? width = null, + uint? height = null, + uint? depthOrArrayLayers = null + ) : this() + { + if (width is not null) + { + Width = width.Value; + } + + if (height is not null) + { + Height = height.Value; + } + + if (depthOrArrayLayers is not null) + { + DepthOrArrayLayers = depthOrArrayLayers.Value; + } + } + + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "width")] + public uint Width; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "height")] + public uint Height; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "depthOrArrayLayers")] + public uint DepthOrArrayLayers; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/FragmentState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/FragmentState.gen.cs new file mode 100644 index 0000000000..34cace6265 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/FragmentState.gen.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUFragmentState")] + public unsafe partial struct FragmentState + { + public FragmentState + ( + ChainedStruct* nextInChain = null, + ShaderModule* module = null, + byte* entryPoint = null, + uint? constantCount = null, + ConstantEntry* constants = null, + uint? targetCount = null, + ColorTargetState* targets = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (module is not null) + { + Module = module; + } + + if (entryPoint is not null) + { + EntryPoint = entryPoint; + } + + if (constantCount is not null) + { + ConstantCount = constantCount.Value; + } + + if (constants is not null) + { + Constants = constants; + } + + if (targetCount is not null) + { + TargetCount = targetCount.Value; + } + + if (targets is not null) + { + Targets = targets; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUShaderModule")] + [NativeName("Type.Name", "WGPUShaderModule")] + [NativeName("Name", "module")] + public ShaderModule* Module; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "entryPoint")] + public byte* EntryPoint; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "constantCount")] + public uint ConstantCount; + + [NativeName("Type", "const WGPUConstantEntry *")] + [NativeName("Type.Name", "const WGPUConstantEntry *")] + [NativeName("Name", "constants")] + public ConstantEntry* Constants; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "targetCount")] + public uint TargetCount; + + [NativeName("Type", "const WGPUColorTargetState *")] + [NativeName("Type.Name", "const WGPUColorTargetState *")] + [NativeName("Name", "targets")] + public ColorTargetState* Targets; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ImageCopyBuffer.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ImageCopyBuffer.gen.cs new file mode 100644 index 0000000000..a06ef6015b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ImageCopyBuffer.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUImageCopyBuffer")] + public unsafe partial struct ImageCopyBuffer + { + public ImageCopyBuffer + ( + ChainedStruct* nextInChain = null, + TextureDataLayout? layout = null, + Buffer* buffer = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (layout is not null) + { + Layout = layout.Value; + } + + if (buffer is not null) + { + Buffer = buffer; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUTextureDataLayout")] + [NativeName("Type.Name", "WGPUTextureDataLayout")] + [NativeName("Name", "layout")] + public TextureDataLayout Layout; + + [NativeName("Type", "WGPUBuffer")] + [NativeName("Type.Name", "WGPUBuffer")] + [NativeName("Name", "buffer")] + public Buffer* Buffer; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ImageCopyTexture.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ImageCopyTexture.gen.cs new file mode 100644 index 0000000000..f68b6a8d43 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ImageCopyTexture.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUImageCopyTexture")] + public unsafe partial struct ImageCopyTexture + { + public ImageCopyTexture + ( + ChainedStruct* nextInChain = null, + Texture* texture = null, + uint? mipLevel = null, + Origin3D? origin = null, + TextureAspect? aspect = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (texture is not null) + { + Texture = texture; + } + + if (mipLevel is not null) + { + MipLevel = mipLevel.Value; + } + + if (origin is not null) + { + Origin = origin.Value; + } + + if (aspect is not null) + { + Aspect = aspect.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUTexture")] + [NativeName("Type.Name", "WGPUTexture")] + [NativeName("Name", "texture")] + public Texture* Texture; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "mipLevel")] + public uint MipLevel; + + [NativeName("Type", "WGPUOrigin3D")] + [NativeName("Type.Name", "WGPUOrigin3D")] + [NativeName("Name", "origin")] + public Origin3D Origin; + + [NativeName("Type", "WGPUTextureAspect")] + [NativeName("Type.Name", "WGPUTextureAspect")] + [NativeName("Name", "aspect")] + public TextureAspect Aspect; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Instance.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Instance.gen.cs new file mode 100644 index 0000000000..410dad0118 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Instance.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUInstanceImpl")] + public unsafe partial struct Instance + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/InstanceDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/InstanceDescriptor.gen.cs new file mode 100644 index 0000000000..e219bb3b16 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/InstanceDescriptor.gen.cs @@ -0,0 +1,39 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUInstanceDescriptor")] + public unsafe partial struct InstanceDescriptor + { + public InstanceDescriptor + ( + ChainedStruct* nextInChain = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Limits.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Limits.gen.cs new file mode 100644 index 0000000000..427ce95577 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Limits.gen.cs @@ -0,0 +1,358 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPULimits")] + public unsafe partial struct Limits + { + public Limits + ( + uint? maxTextureDimension1D = null, + uint? maxTextureDimension2D = null, + uint? maxTextureDimension3D = null, + uint? maxTextureArrayLayers = null, + uint? maxBindGroups = null, + uint? maxBindingsPerBindGroup = null, + uint? maxDynamicUniformBuffersPerPipelineLayout = null, + uint? maxDynamicStorageBuffersPerPipelineLayout = null, + uint? maxSampledTexturesPerShaderStage = null, + uint? maxSamplersPerShaderStage = null, + uint? maxStorageBuffersPerShaderStage = null, + uint? maxStorageTexturesPerShaderStage = null, + uint? maxUniformBuffersPerShaderStage = null, + ulong? maxUniformBufferBindingSize = null, + ulong? maxStorageBufferBindingSize = null, + uint? minUniformBufferOffsetAlignment = null, + uint? minStorageBufferOffsetAlignment = null, + uint? maxVertexBuffers = null, + ulong? maxBufferSize = null, + uint? maxVertexAttributes = null, + uint? maxVertexBufferArrayStride = null, + uint? maxInterStageShaderComponents = null, + uint? maxInterStageShaderVariables = null, + uint? maxColorAttachments = null, + uint? maxComputeWorkgroupStorageSize = null, + uint? maxComputeInvocationsPerWorkgroup = null, + uint? maxComputeWorkgroupSizeX = null, + uint? maxComputeWorkgroupSizeY = null, + uint? maxComputeWorkgroupSizeZ = null, + uint? maxComputeWorkgroupsPerDimension = null + ) : this() + { + if (maxTextureDimension1D is not null) + { + MaxTextureDimension1D = maxTextureDimension1D.Value; + } + + if (maxTextureDimension2D is not null) + { + MaxTextureDimension2D = maxTextureDimension2D.Value; + } + + if (maxTextureDimension3D is not null) + { + MaxTextureDimension3D = maxTextureDimension3D.Value; + } + + if (maxTextureArrayLayers is not null) + { + MaxTextureArrayLayers = maxTextureArrayLayers.Value; + } + + if (maxBindGroups is not null) + { + MaxBindGroups = maxBindGroups.Value; + } + + if (maxBindingsPerBindGroup is not null) + { + MaxBindingsPerBindGroup = maxBindingsPerBindGroup.Value; + } + + if (maxDynamicUniformBuffersPerPipelineLayout is not null) + { + MaxDynamicUniformBuffersPerPipelineLayout = maxDynamicUniformBuffersPerPipelineLayout.Value; + } + + if (maxDynamicStorageBuffersPerPipelineLayout is not null) + { + MaxDynamicStorageBuffersPerPipelineLayout = maxDynamicStorageBuffersPerPipelineLayout.Value; + } + + if (maxSampledTexturesPerShaderStage is not null) + { + MaxSampledTexturesPerShaderStage = maxSampledTexturesPerShaderStage.Value; + } + + if (maxSamplersPerShaderStage is not null) + { + MaxSamplersPerShaderStage = maxSamplersPerShaderStage.Value; + } + + if (maxStorageBuffersPerShaderStage is not null) + { + MaxStorageBuffersPerShaderStage = maxStorageBuffersPerShaderStage.Value; + } + + if (maxStorageTexturesPerShaderStage is not null) + { + MaxStorageTexturesPerShaderStage = maxStorageTexturesPerShaderStage.Value; + } + + if (maxUniformBuffersPerShaderStage is not null) + { + MaxUniformBuffersPerShaderStage = maxUniformBuffersPerShaderStage.Value; + } + + if (maxUniformBufferBindingSize is not null) + { + MaxUniformBufferBindingSize = maxUniformBufferBindingSize.Value; + } + + if (maxStorageBufferBindingSize is not null) + { + MaxStorageBufferBindingSize = maxStorageBufferBindingSize.Value; + } + + if (minUniformBufferOffsetAlignment is not null) + { + MinUniformBufferOffsetAlignment = minUniformBufferOffsetAlignment.Value; + } + + if (minStorageBufferOffsetAlignment is not null) + { + MinStorageBufferOffsetAlignment = minStorageBufferOffsetAlignment.Value; + } + + if (maxVertexBuffers is not null) + { + MaxVertexBuffers = maxVertexBuffers.Value; + } + + if (maxBufferSize is not null) + { + MaxBufferSize = maxBufferSize.Value; + } + + if (maxVertexAttributes is not null) + { + MaxVertexAttributes = maxVertexAttributes.Value; + } + + if (maxVertexBufferArrayStride is not null) + { + MaxVertexBufferArrayStride = maxVertexBufferArrayStride.Value; + } + + if (maxInterStageShaderComponents is not null) + { + MaxInterStageShaderComponents = maxInterStageShaderComponents.Value; + } + + if (maxInterStageShaderVariables is not null) + { + MaxInterStageShaderVariables = maxInterStageShaderVariables.Value; + } + + if (maxColorAttachments is not null) + { + MaxColorAttachments = maxColorAttachments.Value; + } + + if (maxComputeWorkgroupStorageSize is not null) + { + MaxComputeWorkgroupStorageSize = maxComputeWorkgroupStorageSize.Value; + } + + if (maxComputeInvocationsPerWorkgroup is not null) + { + MaxComputeInvocationsPerWorkgroup = maxComputeInvocationsPerWorkgroup.Value; + } + + if (maxComputeWorkgroupSizeX is not null) + { + MaxComputeWorkgroupSizeX = maxComputeWorkgroupSizeX.Value; + } + + if (maxComputeWorkgroupSizeY is not null) + { + MaxComputeWorkgroupSizeY = maxComputeWorkgroupSizeY.Value; + } + + if (maxComputeWorkgroupSizeZ is not null) + { + MaxComputeWorkgroupSizeZ = maxComputeWorkgroupSizeZ.Value; + } + + if (maxComputeWorkgroupsPerDimension is not null) + { + MaxComputeWorkgroupsPerDimension = maxComputeWorkgroupsPerDimension.Value; + } + } + + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxTextureDimension1D")] + public uint MaxTextureDimension1D; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxTextureDimension2D")] + public uint MaxTextureDimension2D; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxTextureDimension3D")] + public uint MaxTextureDimension3D; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxTextureArrayLayers")] + public uint MaxTextureArrayLayers; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxBindGroups")] + public uint MaxBindGroups; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxBindingsPerBindGroup")] + public uint MaxBindingsPerBindGroup; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxDynamicUniformBuffersPerPipelineLayout")] + public uint MaxDynamicUniformBuffersPerPipelineLayout; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxDynamicStorageBuffersPerPipelineLayout")] + public uint MaxDynamicStorageBuffersPerPipelineLayout; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxSampledTexturesPerShaderStage")] + public uint MaxSampledTexturesPerShaderStage; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxSamplersPerShaderStage")] + public uint MaxSamplersPerShaderStage; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxStorageBuffersPerShaderStage")] + public uint MaxStorageBuffersPerShaderStage; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxStorageTexturesPerShaderStage")] + public uint MaxStorageTexturesPerShaderStage; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxUniformBuffersPerShaderStage")] + public uint MaxUniformBuffersPerShaderStage; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "maxUniformBufferBindingSize")] + public ulong MaxUniformBufferBindingSize; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "maxStorageBufferBindingSize")] + public ulong MaxStorageBufferBindingSize; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "minUniformBufferOffsetAlignment")] + public uint MinUniformBufferOffsetAlignment; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "minStorageBufferOffsetAlignment")] + public uint MinStorageBufferOffsetAlignment; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxVertexBuffers")] + public uint MaxVertexBuffers; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "maxBufferSize")] + public ulong MaxBufferSize; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxVertexAttributes")] + public uint MaxVertexAttributes; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxVertexBufferArrayStride")] + public uint MaxVertexBufferArrayStride; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxInterStageShaderComponents")] + public uint MaxInterStageShaderComponents; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxInterStageShaderVariables")] + public uint MaxInterStageShaderVariables; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxColorAttachments")] + public uint MaxColorAttachments; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxComputeWorkgroupStorageSize")] + public uint MaxComputeWorkgroupStorageSize; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxComputeInvocationsPerWorkgroup")] + public uint MaxComputeInvocationsPerWorkgroup; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxComputeWorkgroupSizeX")] + public uint MaxComputeWorkgroupSizeX; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxComputeWorkgroupSizeY")] + public uint MaxComputeWorkgroupSizeY; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxComputeWorkgroupSizeZ")] + public uint MaxComputeWorkgroupSizeZ; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "maxComputeWorkgroupsPerDimension")] + public uint MaxComputeWorkgroupsPerDimension; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/MultisampleState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/MultisampleState.gen.cs new file mode 100644 index 0000000000..22f11b9f29 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/MultisampleState.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUMultisampleState")] + public unsafe partial struct MultisampleState + { + public MultisampleState + ( + ChainedStruct* nextInChain = null, + uint? count = null, + uint? mask = null, + bool? alphaToCoverageEnabled = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (count is not null) + { + Count = count.Value; + } + + if (mask is not null) + { + Mask = mask.Value; + } + + if (alphaToCoverageEnabled is not null) + { + AlphaToCoverageEnabled = alphaToCoverageEnabled.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "count")] + public uint Count; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "mask")] + public uint Mask; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "alphaToCoverageEnabled")] + public bool AlphaToCoverageEnabled; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Origin3D.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Origin3D.gen.cs new file mode 100644 index 0000000000..4113e9ebb9 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Origin3D.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUOrigin3D")] + public unsafe partial struct Origin3D + { + public Origin3D + ( + uint? x = null, + uint? y = null, + uint? z = null + ) : this() + { + if (x is not null) + { + X = x.Value; + } + + if (y is not null) + { + Y = y.Value; + } + + if (z is not null) + { + Z = z.Value; + } + } + + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "x")] + public uint X; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "y")] + public uint Y; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "z")] + public uint Z; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnBufferMapCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnBufferMapCallback.gen.cs new file mode 100644 index 0000000000..e56096e78d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnBufferMapCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnBufferMapCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnBufferMapCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnBufferMapCallback + ( + BufferMapCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnBufferMapCallback From(BufferMapCallback proc) => new PfnBufferMapCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnBufferMapCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnBufferMapCallback(nint pfn) + => new PfnBufferMapCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnBufferMapCallback(BufferMapCallback proc) + => new PfnBufferMapCallback(proc); + + public static explicit operator BufferMapCallback(PfnBufferMapCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnBufferMapCallback pfn) => pfn.Handle; + public static implicit operator PfnBufferMapCallback(delegate* unmanaged[Cdecl] ptr) => new PfnBufferMapCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void BufferMapCallback(BufferMapAsyncStatus arg0, void* arg1); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCompilationInfoCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCompilationInfoCallback.gen.cs new file mode 100644 index 0000000000..f6df8e2b2b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCompilationInfoCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnCompilationInfoCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnCompilationInfoCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnCompilationInfoCallback + ( + CompilationInfoCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnCompilationInfoCallback From(CompilationInfoCallback proc) => new PfnCompilationInfoCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnCompilationInfoCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnCompilationInfoCallback(nint pfn) + => new PfnCompilationInfoCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnCompilationInfoCallback(CompilationInfoCallback proc) + => new PfnCompilationInfoCallback(proc); + + public static explicit operator CompilationInfoCallback(PfnCompilationInfoCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnCompilationInfoCallback pfn) => pfn.Handle; + public static implicit operator PfnCompilationInfoCallback(delegate* unmanaged[Cdecl] ptr) => new PfnCompilationInfoCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void CompilationInfoCallback(CompilationInfoRequestStatus arg0, CompilationInfo* arg1, void* arg2); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCreateComputePipelineAsyncCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCreateComputePipelineAsyncCallback.gen.cs new file mode 100644 index 0000000000..01b3b633d5 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCreateComputePipelineAsyncCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnCreateComputePipelineAsyncCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnCreateComputePipelineAsyncCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnCreateComputePipelineAsyncCallback + ( + CreateComputePipelineAsyncCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnCreateComputePipelineAsyncCallback From(CreateComputePipelineAsyncCallback proc) => new PfnCreateComputePipelineAsyncCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnCreateComputePipelineAsyncCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnCreateComputePipelineAsyncCallback(nint pfn) + => new PfnCreateComputePipelineAsyncCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnCreateComputePipelineAsyncCallback(CreateComputePipelineAsyncCallback proc) + => new PfnCreateComputePipelineAsyncCallback(proc); + + public static explicit operator CreateComputePipelineAsyncCallback(PfnCreateComputePipelineAsyncCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnCreateComputePipelineAsyncCallback pfn) => pfn.Handle; + public static implicit operator PfnCreateComputePipelineAsyncCallback(delegate* unmanaged[Cdecl] ptr) => new PfnCreateComputePipelineAsyncCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void CreateComputePipelineAsyncCallback(CreatePipelineAsyncStatus arg0, ComputePipeline* arg1, byte* arg2, void* arg3); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCreateRenderPipelineAsyncCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCreateRenderPipelineAsyncCallback.gen.cs new file mode 100644 index 0000000000..388377e929 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnCreateRenderPipelineAsyncCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnCreateRenderPipelineAsyncCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnCreateRenderPipelineAsyncCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnCreateRenderPipelineAsyncCallback + ( + CreateRenderPipelineAsyncCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnCreateRenderPipelineAsyncCallback From(CreateRenderPipelineAsyncCallback proc) => new PfnCreateRenderPipelineAsyncCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnCreateRenderPipelineAsyncCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnCreateRenderPipelineAsyncCallback(nint pfn) + => new PfnCreateRenderPipelineAsyncCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnCreateRenderPipelineAsyncCallback(CreateRenderPipelineAsyncCallback proc) + => new PfnCreateRenderPipelineAsyncCallback(proc); + + public static explicit operator CreateRenderPipelineAsyncCallback(PfnCreateRenderPipelineAsyncCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnCreateRenderPipelineAsyncCallback pfn) => pfn.Handle; + public static implicit operator PfnCreateRenderPipelineAsyncCallback(delegate* unmanaged[Cdecl] ptr) => new PfnCreateRenderPipelineAsyncCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void CreateRenderPipelineAsyncCallback(CreatePipelineAsyncStatus arg0, RenderPipeline* arg1, byte* arg2, void* arg3); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnDeviceLostCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnDeviceLostCallback.gen.cs new file mode 100644 index 0000000000..29e4faa7b7 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnDeviceLostCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnDeviceLostCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnDeviceLostCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnDeviceLostCallback + ( + DeviceLostCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnDeviceLostCallback From(DeviceLostCallback proc) => new PfnDeviceLostCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnDeviceLostCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnDeviceLostCallback(nint pfn) + => new PfnDeviceLostCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnDeviceLostCallback(DeviceLostCallback proc) + => new PfnDeviceLostCallback(proc); + + public static explicit operator DeviceLostCallback(PfnDeviceLostCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnDeviceLostCallback pfn) => pfn.Handle; + public static implicit operator PfnDeviceLostCallback(delegate* unmanaged[Cdecl] ptr) => new PfnDeviceLostCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void DeviceLostCallback(DeviceLostReason arg0, byte* arg1, void* arg2); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnErrorCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnErrorCallback.gen.cs new file mode 100644 index 0000000000..2175574fba --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnErrorCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnErrorCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnErrorCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnErrorCallback + ( + ErrorCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnErrorCallback From(ErrorCallback proc) => new PfnErrorCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnErrorCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnErrorCallback(nint pfn) + => new PfnErrorCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnErrorCallback(ErrorCallback proc) + => new PfnErrorCallback(proc); + + public static explicit operator ErrorCallback(PfnErrorCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnErrorCallback pfn) => pfn.Handle; + public static implicit operator PfnErrorCallback(delegate* unmanaged[Cdecl] ptr) => new PfnErrorCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void ErrorCallback(ErrorType arg0, byte* arg1, void* arg2); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnProc.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnProc.gen.cs new file mode 100644 index 0000000000..d84534081d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnProc.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnProc : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnProc + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnProc + ( + Proc proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnProc From(Proc proc) => new PfnProc(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnProc pfn) => (nint) pfn.Handle; + public static explicit operator PfnProc(nint pfn) + => new PfnProc((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnProc(Proc proc) + => new PfnProc(proc); + + public static explicit operator Proc(PfnProc pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnProc pfn) => pfn.Handle; + public static implicit operator PfnProc(delegate* unmanaged[Cdecl] ptr) => new PfnProc(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public delegate void Proc(); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnQueueWorkDoneCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnQueueWorkDoneCallback.gen.cs new file mode 100644 index 0000000000..3fc3987744 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnQueueWorkDoneCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnQueueWorkDoneCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnQueueWorkDoneCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnQueueWorkDoneCallback + ( + QueueWorkDoneCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnQueueWorkDoneCallback From(QueueWorkDoneCallback proc) => new PfnQueueWorkDoneCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnQueueWorkDoneCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnQueueWorkDoneCallback(nint pfn) + => new PfnQueueWorkDoneCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnQueueWorkDoneCallback(QueueWorkDoneCallback proc) + => new PfnQueueWorkDoneCallback(proc); + + public static explicit operator QueueWorkDoneCallback(PfnQueueWorkDoneCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnQueueWorkDoneCallback pfn) => pfn.Handle; + public static implicit operator PfnQueueWorkDoneCallback(delegate* unmanaged[Cdecl] ptr) => new PfnQueueWorkDoneCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void QueueWorkDoneCallback(QueueWorkDoneStatus arg0, void* arg1); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnRequestAdapterCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnRequestAdapterCallback.gen.cs new file mode 100644 index 0000000000..bccdb93d83 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnRequestAdapterCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnRequestAdapterCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnRequestAdapterCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnRequestAdapterCallback + ( + RequestAdapterCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnRequestAdapterCallback From(RequestAdapterCallback proc) => new PfnRequestAdapterCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnRequestAdapterCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnRequestAdapterCallback(nint pfn) + => new PfnRequestAdapterCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnRequestAdapterCallback(RequestAdapterCallback proc) + => new PfnRequestAdapterCallback(proc); + + public static explicit operator RequestAdapterCallback(PfnRequestAdapterCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnRequestAdapterCallback pfn) => pfn.Handle; + public static implicit operator PfnRequestAdapterCallback(delegate* unmanaged[Cdecl] ptr) => new PfnRequestAdapterCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RequestAdapterCallback(RequestAdapterStatus arg0, Adapter* arg1, byte* arg2, void* arg3); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PfnRequestDeviceCallback.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnRequestDeviceCallback.gen.cs new file mode 100644 index 0000000000..0b5ec9ebf7 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PfnRequestDeviceCallback.gen.cs @@ -0,0 +1,53 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe readonly struct PfnRequestDeviceCallback : IDisposable + { + private readonly void* _handle; + public delegate* unmanaged[Cdecl] Handle => (delegate* unmanaged[Cdecl]) _handle; + public PfnRequestDeviceCallback + ( + delegate* unmanaged[Cdecl] ptr + ) => _handle = ptr; + + public PfnRequestDeviceCallback + ( + RequestDeviceCallback proc + ) => _handle = (void*) SilkMarshal.DelegateToPtr(proc); + + public static PfnRequestDeviceCallback From(RequestDeviceCallback proc) => new PfnRequestDeviceCallback(proc); + public void Dispose() => SilkMarshal.Free((nint) _handle); + + public static implicit operator nint(PfnRequestDeviceCallback pfn) => (nint) pfn.Handle; + public static explicit operator PfnRequestDeviceCallback(nint pfn) + => new PfnRequestDeviceCallback((delegate* unmanaged[Cdecl]) pfn); + + public static implicit operator PfnRequestDeviceCallback(RequestDeviceCallback proc) + => new PfnRequestDeviceCallback(proc); + + public static explicit operator RequestDeviceCallback(PfnRequestDeviceCallback pfn) + => SilkMarshal.PtrToDelegate(pfn); + + public static implicit operator delegate* unmanaged[Cdecl](PfnRequestDeviceCallback pfn) => pfn.Handle; + public static implicit operator PfnRequestDeviceCallback(delegate* unmanaged[Cdecl] ptr) => new PfnRequestDeviceCallback(ptr); + } + + [UnmanagedFunctionPointer(CallingConvention.Cdecl)] + public unsafe delegate void RequestDeviceCallback(RequestDeviceStatus arg0, Device* arg1, byte* arg2, void* arg3); +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PipelineLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PipelineLayout.gen.cs new file mode 100644 index 0000000000..657a5eb768 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PipelineLayout.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUPipelineLayoutImpl")] + public unsafe partial struct PipelineLayout + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PipelineLayoutDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PipelineLayoutDescriptor.gen.cs new file mode 100644 index 0000000000..1aa8f4059f --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PipelineLayoutDescriptor.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUPipelineLayoutDescriptor")] + public unsafe partial struct PipelineLayoutDescriptor + { + public PipelineLayoutDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + uint? bindGroupLayoutCount = null, + BindGroupLayout** bindGroupLayouts = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (bindGroupLayoutCount is not null) + { + BindGroupLayoutCount = bindGroupLayoutCount.Value; + } + + if (bindGroupLayouts is not null) + { + BindGroupLayouts = bindGroupLayouts; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "bindGroupLayoutCount")] + public uint BindGroupLayoutCount; + + [NativeName("Type", "const WGPUBindGroupLayout *")] + [NativeName("Type.Name", "const WGPUBindGroupLayout *")] + [NativeName("Name", "bindGroupLayouts")] + public BindGroupLayout** BindGroupLayouts; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PrimitiveDepthClipControl.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PrimitiveDepthClipControl.gen.cs new file mode 100644 index 0000000000..84ac2b63a9 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PrimitiveDepthClipControl.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUPrimitiveDepthClipControl")] + public unsafe partial struct PrimitiveDepthClipControl + { + public PrimitiveDepthClipControl + ( + ChainedStruct? chain = null, + bool? unclippedDepth = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (unclippedDepth is not null) + { + UnclippedDepth = unclippedDepth.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "unclippedDepth")] + public bool UnclippedDepth; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/PrimitiveState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/PrimitiveState.gen.cs new file mode 100644 index 0000000000..9c568544f9 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/PrimitiveState.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUPrimitiveState")] + public unsafe partial struct PrimitiveState + { + public PrimitiveState + ( + ChainedStruct* nextInChain = null, + PrimitiveTopology? topology = null, + IndexFormat? stripIndexFormat = null, + FrontFace? frontFace = null, + CullMode? cullMode = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (topology is not null) + { + Topology = topology.Value; + } + + if (stripIndexFormat is not null) + { + StripIndexFormat = stripIndexFormat.Value; + } + + if (frontFace is not null) + { + FrontFace = frontFace.Value; + } + + if (cullMode is not null) + { + CullMode = cullMode.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUPrimitiveTopology")] + [NativeName("Type.Name", "WGPUPrimitiveTopology")] + [NativeName("Name", "topology")] + public PrimitiveTopology Topology; + + [NativeName("Type", "WGPUIndexFormat")] + [NativeName("Type.Name", "WGPUIndexFormat")] + [NativeName("Name", "stripIndexFormat")] + public IndexFormat StripIndexFormat; + + [NativeName("Type", "WGPUFrontFace")] + [NativeName("Type.Name", "WGPUFrontFace")] + [NativeName("Name", "frontFace")] + public FrontFace FrontFace; + + [NativeName("Type", "WGPUCullMode")] + [NativeName("Type.Name", "WGPUCullMode")] + [NativeName("Name", "cullMode")] + public CullMode CullMode; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ProgrammableStageDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ProgrammableStageDescriptor.gen.cs new file mode 100644 index 0000000000..84f72ea883 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ProgrammableStageDescriptor.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUProgrammableStageDescriptor")] + public unsafe partial struct ProgrammableStageDescriptor + { + public ProgrammableStageDescriptor + ( + ChainedStruct* nextInChain = null, + ShaderModule* module = null, + byte* entryPoint = null, + uint? constantCount = null, + ConstantEntry* constants = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (module is not null) + { + Module = module; + } + + if (entryPoint is not null) + { + EntryPoint = entryPoint; + } + + if (constantCount is not null) + { + ConstantCount = constantCount.Value; + } + + if (constants is not null) + { + Constants = constants; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUShaderModule")] + [NativeName("Type.Name", "WGPUShaderModule")] + [NativeName("Name", "module")] + public ShaderModule* Module; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "entryPoint")] + public byte* EntryPoint; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "constantCount")] + public uint ConstantCount; + + [NativeName("Type", "const WGPUConstantEntry *")] + [NativeName("Type.Name", "const WGPUConstantEntry *")] + [NativeName("Name", "constants")] + public ConstantEntry* Constants; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/QuerySet.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/QuerySet.gen.cs new file mode 100644 index 0000000000..9f3f14c719 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/QuerySet.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUQuerySetImpl")] + public unsafe partial struct QuerySet + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/QuerySetDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/QuerySetDescriptor.gen.cs new file mode 100644 index 0000000000..bce5f795d8 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/QuerySetDescriptor.gen.cs @@ -0,0 +1,94 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUQuerySetDescriptor")] + public unsafe partial struct QuerySetDescriptor + { + public QuerySetDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + QueryType? type = null, + uint? count = null, + PipelineStatisticName* pipelineStatistics = null, + uint? pipelineStatisticsCount = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (type is not null) + { + Type = type.Value; + } + + if (count is not null) + { + Count = count.Value; + } + + if (pipelineStatistics is not null) + { + PipelineStatistics = pipelineStatistics; + } + + if (pipelineStatisticsCount is not null) + { + PipelineStatisticsCount = pipelineStatisticsCount.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUQueryType")] + [NativeName("Type.Name", "WGPUQueryType")] + [NativeName("Name", "type")] + public QueryType Type; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "count")] + public uint Count; + + [NativeName("Type", "const WGPUPipelineStatisticName *")] + [NativeName("Type.Name", "const WGPUPipelineStatisticName *")] + [NativeName("Name", "pipelineStatistics")] + public PipelineStatisticName* PipelineStatistics; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "pipelineStatisticsCount")] + public uint PipelineStatisticsCount; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Queue.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Queue.gen.cs new file mode 100644 index 0000000000..9adb6e8a76 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Queue.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUQueueImpl")] + public unsafe partial struct Queue + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/QueueDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/QueueDescriptor.gen.cs new file mode 100644 index 0000000000..2c3c442177 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/QueueDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUQueueDescriptor")] + public unsafe partial struct QueueDescriptor + { + public QueueDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundle.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundle.gen.cs new file mode 100644 index 0000000000..f8fe458d1a --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundle.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderBundleImpl")] + public unsafe partial struct RenderBundle + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleDescriptor.gen.cs new file mode 100644 index 0000000000..191ade66d3 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderBundleDescriptor")] + public unsafe partial struct RenderBundleDescriptor + { + public RenderBundleDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleEncoder.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleEncoder.gen.cs new file mode 100644 index 0000000000..ad6832dc42 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleEncoder.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderBundleEncoderImpl")] + public unsafe partial struct RenderBundleEncoder + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleEncoderDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleEncoderDescriptor.gen.cs new file mode 100644 index 0000000000..b7b3755dd3 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderBundleEncoderDescriptor.gen.cs @@ -0,0 +1,116 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderBundleEncoderDescriptor")] + public unsafe partial struct RenderBundleEncoderDescriptor + { + public RenderBundleEncoderDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + uint? colorFormatsCount = null, + TextureFormat* colorFormats = null, + TextureFormat? depthStencilFormat = null, + uint? sampleCount = null, + bool? depthReadOnly = null, + bool? stencilReadOnly = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (colorFormatsCount is not null) + { + ColorFormatsCount = colorFormatsCount.Value; + } + + if (colorFormats is not null) + { + ColorFormats = colorFormats; + } + + if (depthStencilFormat is not null) + { + DepthStencilFormat = depthStencilFormat.Value; + } + + if (sampleCount is not null) + { + SampleCount = sampleCount.Value; + } + + if (depthReadOnly is not null) + { + DepthReadOnly = depthReadOnly.Value; + } + + if (stencilReadOnly is not null) + { + StencilReadOnly = stencilReadOnly.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "colorFormatsCount")] + public uint ColorFormatsCount; + + [NativeName("Type", "const WGPUTextureFormat *")] + [NativeName("Type.Name", "const WGPUTextureFormat *")] + [NativeName("Name", "colorFormats")] + public TextureFormat* ColorFormats; + + [NativeName("Type", "WGPUTextureFormat")] + [NativeName("Type.Name", "WGPUTextureFormat")] + [NativeName("Name", "depthStencilFormat")] + public TextureFormat DepthStencilFormat; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "sampleCount")] + public uint SampleCount; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "depthReadOnly")] + public bool DepthReadOnly; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "stencilReadOnly")] + public bool StencilReadOnly; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassColorAttachment.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassColorAttachment.gen.cs new file mode 100644 index 0000000000..8c62db3995 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassColorAttachment.gen.cs @@ -0,0 +1,83 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPassColorAttachment")] + public unsafe partial struct RenderPassColorAttachment + { + public RenderPassColorAttachment + ( + TextureView* view = null, + TextureView* resolveTarget = null, + LoadOp? loadOp = null, + StoreOp? storeOp = null, + Color? clearValue = null + ) : this() + { + if (view is not null) + { + View = view; + } + + if (resolveTarget is not null) + { + ResolveTarget = resolveTarget; + } + + if (loadOp is not null) + { + LoadOp = loadOp.Value; + } + + if (storeOp is not null) + { + StoreOp = storeOp.Value; + } + + if (clearValue is not null) + { + ClearValue = clearValue.Value; + } + } + + + [NativeName("Type", "WGPUTextureView")] + [NativeName("Type.Name", "WGPUTextureView")] + [NativeName("Name", "view")] + public TextureView* View; + + [NativeName("Type", "WGPUTextureView")] + [NativeName("Type.Name", "WGPUTextureView")] + [NativeName("Name", "resolveTarget")] + public TextureView* ResolveTarget; + + [NativeName("Type", "WGPULoadOp")] + [NativeName("Type.Name", "WGPULoadOp")] + [NativeName("Name", "loadOp")] + public LoadOp LoadOp; + + [NativeName("Type", "WGPUStoreOp")] + [NativeName("Type.Name", "WGPUStoreOp")] + [NativeName("Name", "storeOp")] + public StoreOp StoreOp; + + [NativeName("Type", "WGPUColor")] + [NativeName("Type.Name", "WGPUColor")] + [NativeName("Name", "clearValue")] + public Color ClearValue; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDepthStencilAttachment.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDepthStencilAttachment.gen.cs new file mode 100644 index 0000000000..cf81d1ca1b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDepthStencilAttachment.gen.cs @@ -0,0 +1,127 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPassDepthStencilAttachment")] + public unsafe partial struct RenderPassDepthStencilAttachment + { + public RenderPassDepthStencilAttachment + ( + TextureView* view = null, + LoadOp? depthLoadOp = null, + StoreOp? depthStoreOp = null, + float? depthClearValue = null, + bool? depthReadOnly = null, + LoadOp? stencilLoadOp = null, + StoreOp? stencilStoreOp = null, + uint? stencilClearValue = null, + bool? stencilReadOnly = null + ) : this() + { + if (view is not null) + { + View = view; + } + + if (depthLoadOp is not null) + { + DepthLoadOp = depthLoadOp.Value; + } + + if (depthStoreOp is not null) + { + DepthStoreOp = depthStoreOp.Value; + } + + if (depthClearValue is not null) + { + DepthClearValue = depthClearValue.Value; + } + + if (depthReadOnly is not null) + { + DepthReadOnly = depthReadOnly.Value; + } + + if (stencilLoadOp is not null) + { + StencilLoadOp = stencilLoadOp.Value; + } + + if (stencilStoreOp is not null) + { + StencilStoreOp = stencilStoreOp.Value; + } + + if (stencilClearValue is not null) + { + StencilClearValue = stencilClearValue.Value; + } + + if (stencilReadOnly is not null) + { + StencilReadOnly = stencilReadOnly.Value; + } + } + + + [NativeName("Type", "WGPUTextureView")] + [NativeName("Type.Name", "WGPUTextureView")] + [NativeName("Name", "view")] + public TextureView* View; + + [NativeName("Type", "WGPULoadOp")] + [NativeName("Type.Name", "WGPULoadOp")] + [NativeName("Name", "depthLoadOp")] + public LoadOp DepthLoadOp; + + [NativeName("Type", "WGPUStoreOp")] + [NativeName("Type.Name", "WGPUStoreOp")] + [NativeName("Name", "depthStoreOp")] + public StoreOp DepthStoreOp; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "depthClearValue")] + public float DepthClearValue; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "depthReadOnly")] + public bool DepthReadOnly; + + [NativeName("Type", "WGPULoadOp")] + [NativeName("Type.Name", "WGPULoadOp")] + [NativeName("Name", "stencilLoadOp")] + public LoadOp StencilLoadOp; + + [NativeName("Type", "WGPUStoreOp")] + [NativeName("Type.Name", "WGPUStoreOp")] + [NativeName("Name", "stencilStoreOp")] + public StoreOp StencilStoreOp; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "stencilClearValue")] + public uint StencilClearValue; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "stencilReadOnly")] + public bool StencilReadOnly; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDescriptor.gen.cs new file mode 100644 index 0000000000..256621c8b9 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDescriptor.gen.cs @@ -0,0 +1,116 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPassDescriptor")] + public unsafe partial struct RenderPassDescriptor + { + public RenderPassDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + uint? colorAttachmentCount = null, + RenderPassColorAttachment* colorAttachments = null, + RenderPassDepthStencilAttachment* depthStencilAttachment = null, + QuerySet* occlusionQuerySet = null, + uint? timestampWriteCount = null, + RenderPassTimestampWrite* timestampWrites = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (colorAttachmentCount is not null) + { + ColorAttachmentCount = colorAttachmentCount.Value; + } + + if (colorAttachments is not null) + { + ColorAttachments = colorAttachments; + } + + if (depthStencilAttachment is not null) + { + DepthStencilAttachment = depthStencilAttachment; + } + + if (occlusionQuerySet is not null) + { + OcclusionQuerySet = occlusionQuerySet; + } + + if (timestampWriteCount is not null) + { + TimestampWriteCount = timestampWriteCount.Value; + } + + if (timestampWrites is not null) + { + TimestampWrites = timestampWrites; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "colorAttachmentCount")] + public uint ColorAttachmentCount; + + [NativeName("Type", "const WGPURenderPassColorAttachment *")] + [NativeName("Type.Name", "const WGPURenderPassColorAttachment *")] + [NativeName("Name", "colorAttachments")] + public RenderPassColorAttachment* ColorAttachments; + + [NativeName("Type", "const WGPURenderPassDepthStencilAttachment *")] + [NativeName("Type.Name", "const WGPURenderPassDepthStencilAttachment *")] + [NativeName("Name", "depthStencilAttachment")] + public RenderPassDepthStencilAttachment* DepthStencilAttachment; + + [NativeName("Type", "WGPUQuerySet")] + [NativeName("Type.Name", "WGPUQuerySet")] + [NativeName("Name", "occlusionQuerySet")] + public QuerySet* OcclusionQuerySet; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "timestampWriteCount")] + public uint TimestampWriteCount; + + [NativeName("Type", "const WGPURenderPassTimestampWrite *")] + [NativeName("Type.Name", "const WGPURenderPassTimestampWrite *")] + [NativeName("Name", "timestampWrites")] + public RenderPassTimestampWrite* TimestampWrites; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDescriptorMaxDrawCount.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDescriptorMaxDrawCount.gen.cs new file mode 100644 index 0000000000..ec04262662 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassDescriptorMaxDrawCount.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPassDescriptorMaxDrawCount")] + public unsafe partial struct RenderPassDescriptorMaxDrawCount + { + public RenderPassDescriptorMaxDrawCount + ( + ChainedStruct? chain = null, + ulong? maxDrawCount = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (maxDrawCount is not null) + { + MaxDrawCount = maxDrawCount.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "maxDrawCount")] + public ulong MaxDrawCount; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassEncoder.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassEncoder.gen.cs new file mode 100644 index 0000000000..f44cd6c92c --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassEncoder.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPassEncoderImpl")] + public unsafe partial struct RenderPassEncoder + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassTimestampWrite.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassTimestampWrite.gen.cs new file mode 100644 index 0000000000..1c3917e12b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPassTimestampWrite.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPassTimestampWrite")] + public unsafe partial struct RenderPassTimestampWrite + { + public RenderPassTimestampWrite + ( + QuerySet* querySet = null, + uint? queryIndex = null, + RenderPassTimestampLocation? location = null + ) : this() + { + if (querySet is not null) + { + QuerySet = querySet; + } + + if (queryIndex is not null) + { + QueryIndex = queryIndex.Value; + } + + if (location is not null) + { + Location = location.Value; + } + } + + + [NativeName("Type", "WGPUQuerySet")] + [NativeName("Type.Name", "WGPUQuerySet")] + [NativeName("Name", "querySet")] + public QuerySet* QuerySet; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "queryIndex")] + public uint QueryIndex; + + [NativeName("Type", "WGPURenderPassTimestampLocation")] + [NativeName("Type.Name", "WGPURenderPassTimestampLocation")] + [NativeName("Name", "location")] + public RenderPassTimestampLocation Location; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPipeline.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPipeline.gen.cs new file mode 100644 index 0000000000..b15853acf0 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPipeline.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPipelineImpl")] + public unsafe partial struct RenderPipeline + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPipelineDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPipelineDescriptor.gen.cs new file mode 100644 index 0000000000..0c2638f583 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RenderPipelineDescriptor.gen.cs @@ -0,0 +1,116 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURenderPipelineDescriptor")] + public unsafe partial struct RenderPipelineDescriptor + { + public RenderPipelineDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + PipelineLayout* layout = null, + VertexState? vertex = null, + PrimitiveState? primitive = null, + DepthStencilState* depthStencil = null, + MultisampleState? multisample = null, + FragmentState* fragment = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (layout is not null) + { + Layout = layout; + } + + if (vertex is not null) + { + Vertex = vertex.Value; + } + + if (primitive is not null) + { + Primitive = primitive.Value; + } + + if (depthStencil is not null) + { + DepthStencil = depthStencil; + } + + if (multisample is not null) + { + Multisample = multisample.Value; + } + + if (fragment is not null) + { + Fragment = fragment; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUPipelineLayout")] + [NativeName("Type.Name", "WGPUPipelineLayout")] + [NativeName("Name", "layout")] + public PipelineLayout* Layout; + + [NativeName("Type", "WGPUVertexState")] + [NativeName("Type.Name", "WGPUVertexState")] + [NativeName("Name", "vertex")] + public VertexState Vertex; + + [NativeName("Type", "WGPUPrimitiveState")] + [NativeName("Type.Name", "WGPUPrimitiveState")] + [NativeName("Name", "primitive")] + public PrimitiveState Primitive; + + [NativeName("Type", "const WGPUDepthStencilState *")] + [NativeName("Type.Name", "const WGPUDepthStencilState *")] + [NativeName("Name", "depthStencil")] + public DepthStencilState* DepthStencil; + + [NativeName("Type", "WGPUMultisampleState")] + [NativeName("Type.Name", "WGPUMultisampleState")] + [NativeName("Name", "multisample")] + public MultisampleState Multisample; + + [NativeName("Type", "const WGPUFragmentState *")] + [NativeName("Type.Name", "const WGPUFragmentState *")] + [NativeName("Name", "fragment")] + public FragmentState* Fragment; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RequestAdapterOptions.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RequestAdapterOptions.gen.cs new file mode 100644 index 0000000000..0bfb5819e5 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RequestAdapterOptions.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURequestAdapterOptions")] + public unsafe partial struct RequestAdapterOptions + { + public RequestAdapterOptions + ( + ChainedStruct* nextInChain = null, + Surface* compatibleSurface = null, + PowerPreference? powerPreference = null, + bool? forceFallbackAdapter = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (compatibleSurface is not null) + { + CompatibleSurface = compatibleSurface; + } + + if (powerPreference is not null) + { + PowerPreference = powerPreference.Value; + } + + if (forceFallbackAdapter is not null) + { + ForceFallbackAdapter = forceFallbackAdapter.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUSurface")] + [NativeName("Type.Name", "WGPUSurface")] + [NativeName("Name", "compatibleSurface")] + public Surface* CompatibleSurface; + + [NativeName("Type", "WGPUPowerPreference")] + [NativeName("Type.Name", "WGPUPowerPreference")] + [NativeName("Name", "powerPreference")] + public PowerPreference PowerPreference; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "forceFallbackAdapter")] + public bool ForceFallbackAdapter; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/RequiredLimits.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/RequiredLimits.gen.cs new file mode 100644 index 0000000000..77a07114f9 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/RequiredLimits.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPURequiredLimits")] + public unsafe partial struct RequiredLimits + { + public RequiredLimits + ( + ChainedStruct* nextInChain = null, + Limits? limits = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (limits is not null) + { + Limits = limits.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPULimits")] + [NativeName("Type.Name", "WGPULimits")] + [NativeName("Name", "limits")] + public Limits Limits; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Sampler.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Sampler.gen.cs new file mode 100644 index 0000000000..c1d8b8ef28 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Sampler.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSamplerImpl")] + public unsafe partial struct Sampler + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SamplerBindingLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SamplerBindingLayout.gen.cs new file mode 100644 index 0000000000..10325929c8 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SamplerBindingLayout.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSamplerBindingLayout")] + public unsafe partial struct SamplerBindingLayout + { + public SamplerBindingLayout + ( + ChainedStruct* nextInChain = null, + SamplerBindingType? type = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (type is not null) + { + Type = type.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUSamplerBindingType")] + [NativeName("Type.Name", "WGPUSamplerBindingType")] + [NativeName("Name", "type")] + public SamplerBindingType Type; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SamplerDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SamplerDescriptor.gen.cs new file mode 100644 index 0000000000..71825d957d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SamplerDescriptor.gen.cs @@ -0,0 +1,160 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSamplerDescriptor")] + public unsafe partial struct SamplerDescriptor + { + public SamplerDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + AddressMode? addressModeU = null, + AddressMode? addressModeV = null, + AddressMode? addressModeW = null, + FilterMode? magFilter = null, + FilterMode? minFilter = null, + MipmapFilterMode? mipmapFilter = null, + float? lodMinClamp = null, + float? lodMaxClamp = null, + CompareFunction? compare = null, + ushort? maxAnisotropy = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (addressModeU is not null) + { + AddressModeU = addressModeU.Value; + } + + if (addressModeV is not null) + { + AddressModeV = addressModeV.Value; + } + + if (addressModeW is not null) + { + AddressModeW = addressModeW.Value; + } + + if (magFilter is not null) + { + MagFilter = magFilter.Value; + } + + if (minFilter is not null) + { + MinFilter = minFilter.Value; + } + + if (mipmapFilter is not null) + { + MipmapFilter = mipmapFilter.Value; + } + + if (lodMinClamp is not null) + { + LodMinClamp = lodMinClamp.Value; + } + + if (lodMaxClamp is not null) + { + LodMaxClamp = lodMaxClamp.Value; + } + + if (compare is not null) + { + Compare = compare.Value; + } + + if (maxAnisotropy is not null) + { + MaxAnisotropy = maxAnisotropy.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUAddressMode")] + [NativeName("Type.Name", "WGPUAddressMode")] + [NativeName("Name", "addressModeU")] + public AddressMode AddressModeU; + + [NativeName("Type", "WGPUAddressMode")] + [NativeName("Type.Name", "WGPUAddressMode")] + [NativeName("Name", "addressModeV")] + public AddressMode AddressModeV; + + [NativeName("Type", "WGPUAddressMode")] + [NativeName("Type.Name", "WGPUAddressMode")] + [NativeName("Name", "addressModeW")] + public AddressMode AddressModeW; + + [NativeName("Type", "WGPUFilterMode")] + [NativeName("Type.Name", "WGPUFilterMode")] + [NativeName("Name", "magFilter")] + public FilterMode MagFilter; + + [NativeName("Type", "WGPUFilterMode")] + [NativeName("Type.Name", "WGPUFilterMode")] + [NativeName("Name", "minFilter")] + public FilterMode MinFilter; + + [NativeName("Type", "WGPUMipmapFilterMode")] + [NativeName("Type.Name", "WGPUMipmapFilterMode")] + [NativeName("Name", "mipmapFilter")] + public MipmapFilterMode MipmapFilter; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "lodMinClamp")] + public float LodMinClamp; + + [NativeName("Type", "float")] + [NativeName("Type.Name", "float")] + [NativeName("Name", "lodMaxClamp")] + public float LodMaxClamp; + + [NativeName("Type", "WGPUCompareFunction")] + [NativeName("Type.Name", "WGPUCompareFunction")] + [NativeName("Name", "compare")] + public CompareFunction Compare; + + [NativeName("Type", "uint16_t")] + [NativeName("Type.Name", "uint16_t")] + [NativeName("Name", "maxAnisotropy")] + public ushort MaxAnisotropy; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModule.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModule.gen.cs new file mode 100644 index 0000000000..9f0a8dfaa3 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModule.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUShaderModuleImpl")] + public unsafe partial struct ShaderModule + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleCompilationHint.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleCompilationHint.gen.cs new file mode 100644 index 0000000000..144e9b5ce9 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleCompilationHint.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUShaderModuleCompilationHint")] + public unsafe partial struct ShaderModuleCompilationHint + { + public ShaderModuleCompilationHint + ( + ChainedStruct* nextInChain = null, + byte* entryPoint = null, + PipelineLayout* layout = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (entryPoint is not null) + { + EntryPoint = entryPoint; + } + + if (layout is not null) + { + Layout = layout; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "entryPoint")] + public byte* EntryPoint; + + [NativeName("Type", "WGPUPipelineLayout")] + [NativeName("Type.Name", "WGPUPipelineLayout")] + [NativeName("Name", "layout")] + public PipelineLayout* Layout; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleDescriptor.gen.cs new file mode 100644 index 0000000000..017a054c10 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleDescriptor.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUShaderModuleDescriptor")] + public unsafe partial struct ShaderModuleDescriptor + { + public ShaderModuleDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + uint? hintCount = null, + ShaderModuleCompilationHint* hints = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (hintCount is not null) + { + HintCount = hintCount.Value; + } + + if (hints is not null) + { + Hints = hints; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "hintCount")] + public uint HintCount; + + [NativeName("Type", "const WGPUShaderModuleCompilationHint *")] + [NativeName("Type.Name", "const WGPUShaderModuleCompilationHint *")] + [NativeName("Name", "hints")] + public ShaderModuleCompilationHint* Hints; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleSPIRVDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleSPIRVDescriptor.gen.cs new file mode 100644 index 0000000000..ea01841ede --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleSPIRVDescriptor.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUShaderModuleSPIRVDescriptor")] + public unsafe partial struct ShaderModuleSPIRVDescriptor + { + public ShaderModuleSPIRVDescriptor + ( + ChainedStruct? chain = null, + uint? codeSize = null, + uint* code = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (codeSize is not null) + { + CodeSize = codeSize.Value; + } + + if (code is not null) + { + Code = code; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "codeSize")] + public uint CodeSize; + + [NativeName("Type", "const uint32_t *")] + [NativeName("Type.Name", "const uint32_t *")] + [NativeName("Name", "code")] + public uint* Code; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleWGSLDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleWGSLDescriptor.gen.cs new file mode 100644 index 0000000000..440a8ecf78 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/ShaderModuleWGSLDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUShaderModuleWGSLDescriptor")] + public unsafe partial struct ShaderModuleWGSLDescriptor + { + public ShaderModuleWGSLDescriptor + ( + ChainedStruct? chain = null, + byte* code = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (code is not null) + { + Code = code; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "code")] + public byte* Code; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/StencilFaceState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/StencilFaceState.gen.cs new file mode 100644 index 0000000000..c53d725b0f --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/StencilFaceState.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUStencilFaceState")] + public unsafe partial struct StencilFaceState + { + public StencilFaceState + ( + CompareFunction? compare = null, + StencilOperation? failOp = null, + StencilOperation? depthFailOp = null, + StencilOperation? passOp = null + ) : this() + { + if (compare is not null) + { + Compare = compare.Value; + } + + if (failOp is not null) + { + FailOp = failOp.Value; + } + + if (depthFailOp is not null) + { + DepthFailOp = depthFailOp.Value; + } + + if (passOp is not null) + { + PassOp = passOp.Value; + } + } + + + [NativeName("Type", "WGPUCompareFunction")] + [NativeName("Type.Name", "WGPUCompareFunction")] + [NativeName("Name", "compare")] + public CompareFunction Compare; + + [NativeName("Type", "WGPUStencilOperation")] + [NativeName("Type.Name", "WGPUStencilOperation")] + [NativeName("Name", "failOp")] + public StencilOperation FailOp; + + [NativeName("Type", "WGPUStencilOperation")] + [NativeName("Type.Name", "WGPUStencilOperation")] + [NativeName("Name", "depthFailOp")] + public StencilOperation DepthFailOp; + + [NativeName("Type", "WGPUStencilOperation")] + [NativeName("Type.Name", "WGPUStencilOperation")] + [NativeName("Name", "passOp")] + public StencilOperation PassOp; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/StorageTextureBindingLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/StorageTextureBindingLayout.gen.cs new file mode 100644 index 0000000000..2bfe564170 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/StorageTextureBindingLayout.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUStorageTextureBindingLayout")] + public unsafe partial struct StorageTextureBindingLayout + { + public StorageTextureBindingLayout + ( + ChainedStruct* nextInChain = null, + StorageTextureAccess? access = null, + TextureFormat? format = null, + TextureViewDimension? viewDimension = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (access is not null) + { + Access = access.Value; + } + + if (format is not null) + { + Format = format.Value; + } + + if (viewDimension is not null) + { + ViewDimension = viewDimension.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUStorageTextureAccess")] + [NativeName("Type.Name", "WGPUStorageTextureAccess")] + [NativeName("Name", "access")] + public StorageTextureAccess Access; + + [NativeName("Type", "WGPUTextureFormat")] + [NativeName("Type.Name", "WGPUTextureFormat")] + [NativeName("Name", "format")] + public TextureFormat Format; + + [NativeName("Type", "WGPUTextureViewDimension")] + [NativeName("Type.Name", "WGPUTextureViewDimension")] + [NativeName("Name", "viewDimension")] + public TextureViewDimension ViewDimension; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SupportedLimits.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SupportedLimits.gen.cs new file mode 100644 index 0000000000..58605b4e03 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SupportedLimits.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSupportedLimits")] + public unsafe partial struct SupportedLimits + { + public SupportedLimits + ( + ChainedStructOut* nextInChain = null, + Limits? limits = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (limits is not null) + { + Limits = limits.Value; + } + } + + + [NativeName("Type", "WGPUChainedStructOut *")] + [NativeName("Type.Name", "WGPUChainedStructOut *")] + [NativeName("Name", "nextInChain")] + public ChainedStructOut* NextInChain; + + [NativeName("Type", "WGPULimits")] + [NativeName("Type.Name", "WGPULimits")] + [NativeName("Name", "limits")] + public Limits Limits; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Surface.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Surface.gen.cs new file mode 100644 index 0000000000..8ab0188914 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Surface.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceImpl")] + public unsafe partial struct Surface + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptor.gen.cs new file mode 100644 index 0000000000..29e0bd719f --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptor.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptor")] + public unsafe partial struct SurfaceDescriptor + { + public SurfaceDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromAndroidNativeWindow.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromAndroidNativeWindow.gen.cs new file mode 100644 index 0000000000..a510579de4 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromAndroidNativeWindow.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromAndroidNativeWindow")] + public unsafe partial struct SurfaceDescriptorFromAndroidNativeWindow + { + public SurfaceDescriptorFromAndroidNativeWindow + ( + ChainedStruct? chain = null, + void* window = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (window is not null) + { + Window = window; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "window")] + public void* Window; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromCanvasHTMLSelector.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromCanvasHTMLSelector.gen.cs new file mode 100644 index 0000000000..a1472202d2 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromCanvasHTMLSelector.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromCanvasHTMLSelector")] + public unsafe partial struct SurfaceDescriptorFromCanvasHTMLSelector + { + public SurfaceDescriptorFromCanvasHTMLSelector + ( + ChainedStruct? chain = null, + byte* selector = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (selector is not null) + { + Selector = selector; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "selector")] + public byte* Selector; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromMetalLayer.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromMetalLayer.gen.cs new file mode 100644 index 0000000000..566434da23 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromMetalLayer.gen.cs @@ -0,0 +1,50 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromMetalLayer")] + public unsafe partial struct SurfaceDescriptorFromMetalLayer + { + public SurfaceDescriptorFromMetalLayer + ( + ChainedStruct? chain = null, + void* layer = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (layer is not null) + { + Layer = layer; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "layer")] + public void* Layer; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromWaylandSurface.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromWaylandSurface.gen.cs new file mode 100644 index 0000000000..f7160b3eeb --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromWaylandSurface.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromWaylandSurface")] + public unsafe partial struct SurfaceDescriptorFromWaylandSurface + { + public SurfaceDescriptorFromWaylandSurface + ( + ChainedStruct? chain = null, + void* display = null, + void* surface = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (display is not null) + { + Display = display; + } + + if (surface is not null) + { + Surface = surface; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "display")] + public void* Display; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "surface")] + public void* Surface; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromWindowsHWND.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromWindowsHWND.gen.cs new file mode 100644 index 0000000000..2f022b444e --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromWindowsHWND.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromWindowsHWND")] + public unsafe partial struct SurfaceDescriptorFromWindowsHWND + { + public SurfaceDescriptorFromWindowsHWND + ( + ChainedStruct? chain = null, + void* hinstance = null, + void* hwnd = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (hinstance is not null) + { + Hinstance = hinstance; + } + + if (hwnd is not null) + { + Hwnd = hwnd; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "hinstance")] + public void* Hinstance; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "hwnd")] + public void* Hwnd; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromXcbWindow.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromXcbWindow.gen.cs new file mode 100644 index 0000000000..45b7976bbf --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromXcbWindow.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromXcbWindow")] + public unsafe partial struct SurfaceDescriptorFromXcbWindow + { + public SurfaceDescriptorFromXcbWindow + ( + ChainedStruct? chain = null, + void* connection = null, + uint? window = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (connection is not null) + { + Connection = connection; + } + + if (window is not null) + { + Window = window.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "connection")] + public void* Connection; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "window")] + public uint Window; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromXlibWindow.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromXlibWindow.gen.cs new file mode 100644 index 0000000000..0fbc4a4683 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SurfaceDescriptorFromXlibWindow.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSurfaceDescriptorFromXlibWindow")] + public unsafe partial struct SurfaceDescriptorFromXlibWindow + { + public SurfaceDescriptorFromXlibWindow + ( + ChainedStruct? chain = null, + void* display = null, + uint? window = null + ) : this() + { + if (chain is not null) + { + Chain = chain.Value; + } + + if (display is not null) + { + Display = display; + } + + if (window is not null) + { + Window = window.Value; + } + } + + + [NativeName("Type", "WGPUChainedStruct")] + [NativeName("Type.Name", "WGPUChainedStruct")] + [NativeName("Name", "chain")] + public ChainedStruct Chain; + + [NativeName("Type", "void *")] + [NativeName("Type.Name", "void *")] + [NativeName("Name", "display")] + public void* Display; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "window")] + public uint Window; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SwapChain.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SwapChain.gen.cs new file mode 100644 index 0000000000..0cd44d06c0 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SwapChain.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSwapChainImpl")] + public unsafe partial struct SwapChain + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/SwapChainDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/SwapChainDescriptor.gen.cs new file mode 100644 index 0000000000..836d1dfe5b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/SwapChainDescriptor.gen.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUSwapChainDescriptor")] + public unsafe partial struct SwapChainDescriptor + { + public SwapChainDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + Silk.NET.WebGPU.TextureUsage? usage = null, + TextureFormat? format = null, + uint? width = null, + uint? height = null, + PresentMode? presentMode = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (usage is not null) + { + Usage = usage.Value; + } + + if (format is not null) + { + Format = format.Value; + } + + if (width is not null) + { + Width = width.Value; + } + + if (height is not null) + { + Height = height.Value; + } + + if (presentMode is not null) + { + PresentMode = presentMode.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUTextureUsageFlags")] + [NativeName("Type.Name", "WGPUTextureUsageFlags")] + [NativeName("Name", "usage")] + public Silk.NET.WebGPU.TextureUsage Usage; + + [NativeName("Type", "WGPUTextureFormat")] + [NativeName("Type.Name", "WGPUTextureFormat")] + [NativeName("Name", "format")] + public TextureFormat Format; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "width")] + public uint Width; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "height")] + public uint Height; + + [NativeName("Type", "WGPUPresentMode")] + [NativeName("Type.Name", "WGPUPresentMode")] + [NativeName("Name", "presentMode")] + public PresentMode PresentMode; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/Texture.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/Texture.gen.cs new file mode 100644 index 0000000000..4ac90aca7e --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/Texture.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureImpl")] + public unsafe partial struct Texture + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/TextureBindingLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureBindingLayout.gen.cs new file mode 100644 index 0000000000..5a72a3b828 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureBindingLayout.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureBindingLayout")] + public unsafe partial struct TextureBindingLayout + { + public TextureBindingLayout + ( + ChainedStruct* nextInChain = null, + TextureSampleType? sampleType = null, + TextureViewDimension? viewDimension = null, + bool? multisampled = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (sampleType is not null) + { + SampleType = sampleType.Value; + } + + if (viewDimension is not null) + { + ViewDimension = viewDimension.Value; + } + + if (multisampled is not null) + { + Multisampled = multisampled.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUTextureSampleType")] + [NativeName("Type.Name", "WGPUTextureSampleType")] + [NativeName("Name", "sampleType")] + public TextureSampleType SampleType; + + [NativeName("Type", "WGPUTextureViewDimension")] + [NativeName("Type.Name", "WGPUTextureViewDimension")] + [NativeName("Name", "viewDimension")] + public TextureViewDimension ViewDimension; + + [NativeName("Type", "bool")] + [NativeName("Type.Name", "bool")] + [NativeName("Name", "multisampled")] + public bool Multisampled; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/TextureDataLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureDataLayout.gen.cs new file mode 100644 index 0000000000..50faf95aa7 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureDataLayout.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureDataLayout")] + public unsafe partial struct TextureDataLayout + { + public TextureDataLayout + ( + ChainedStruct* nextInChain = null, + ulong? offset = null, + uint? bytesPerRow = null, + uint? rowsPerImage = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (offset is not null) + { + Offset = offset.Value; + } + + if (bytesPerRow is not null) + { + BytesPerRow = bytesPerRow.Value; + } + + if (rowsPerImage is not null) + { + RowsPerImage = rowsPerImage.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "offset")] + public ulong Offset; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "bytesPerRow")] + public uint BytesPerRow; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "rowsPerImage")] + public uint RowsPerImage; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/TextureDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureDescriptor.gen.cs new file mode 100644 index 0000000000..149a1165b2 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureDescriptor.gen.cs @@ -0,0 +1,138 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureDescriptor")] + public unsafe partial struct TextureDescriptor + { + public TextureDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + Silk.NET.WebGPU.TextureUsage? usage = null, + TextureDimension? dimension = null, + Extent3D? size = null, + TextureFormat? format = null, + uint? mipLevelCount = null, + uint? sampleCount = null, + uint? viewFormatCount = null, + TextureFormat* viewFormats = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (usage is not null) + { + Usage = usage.Value; + } + + if (dimension is not null) + { + Dimension = dimension.Value; + } + + if (size is not null) + { + Size = size.Value; + } + + if (format is not null) + { + Format = format.Value; + } + + if (mipLevelCount is not null) + { + MipLevelCount = mipLevelCount.Value; + } + + if (sampleCount is not null) + { + SampleCount = sampleCount.Value; + } + + if (viewFormatCount is not null) + { + ViewFormatCount = viewFormatCount.Value; + } + + if (viewFormats is not null) + { + ViewFormats = viewFormats; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUTextureUsageFlags")] + [NativeName("Type.Name", "WGPUTextureUsageFlags")] + [NativeName("Name", "usage")] + public Silk.NET.WebGPU.TextureUsage Usage; + + [NativeName("Type", "WGPUTextureDimension")] + [NativeName("Type.Name", "WGPUTextureDimension")] + [NativeName("Name", "dimension")] + public TextureDimension Dimension; + + [NativeName("Type", "WGPUExtent3D")] + [NativeName("Type.Name", "WGPUExtent3D")] + [NativeName("Name", "size")] + public Extent3D Size; + + [NativeName("Type", "WGPUTextureFormat")] + [NativeName("Type.Name", "WGPUTextureFormat")] + [NativeName("Name", "format")] + public TextureFormat Format; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "mipLevelCount")] + public uint MipLevelCount; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "sampleCount")] + public uint SampleCount; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "viewFormatCount")] + public uint ViewFormatCount; + + [NativeName("Type", "const WGPUTextureFormat *")] + [NativeName("Type.Name", "const WGPUTextureFormat *")] + [NativeName("Name", "viewFormats")] + public TextureFormat* ViewFormats; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/TextureView.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureView.gen.cs new file mode 100644 index 0000000000..2632024678 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureView.gen.cs @@ -0,0 +1,23 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureViewImpl")] + public unsafe partial struct TextureView + { + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/TextureViewDescriptor.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureViewDescriptor.gen.cs new file mode 100644 index 0000000000..5b6fb84d50 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/TextureViewDescriptor.gen.cs @@ -0,0 +1,127 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUTextureViewDescriptor")] + public unsafe partial struct TextureViewDescriptor + { + public TextureViewDescriptor + ( + ChainedStruct* nextInChain = null, + byte* label = null, + TextureFormat? format = null, + TextureViewDimension? dimension = null, + uint? baseMipLevel = null, + uint? mipLevelCount = null, + uint? baseArrayLayer = null, + uint? arrayLayerCount = null, + TextureAspect? aspect = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (label is not null) + { + Label = label; + } + + if (format is not null) + { + Format = format.Value; + } + + if (dimension is not null) + { + Dimension = dimension.Value; + } + + if (baseMipLevel is not null) + { + BaseMipLevel = baseMipLevel.Value; + } + + if (mipLevelCount is not null) + { + MipLevelCount = mipLevelCount.Value; + } + + if (baseArrayLayer is not null) + { + BaseArrayLayer = baseArrayLayer.Value; + } + + if (arrayLayerCount is not null) + { + ArrayLayerCount = arrayLayerCount.Value; + } + + if (aspect is not null) + { + Aspect = aspect.Value; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "label")] + public byte* Label; + + [NativeName("Type", "WGPUTextureFormat")] + [NativeName("Type.Name", "WGPUTextureFormat")] + [NativeName("Name", "format")] + public TextureFormat Format; + + [NativeName("Type", "WGPUTextureViewDimension")] + [NativeName("Type.Name", "WGPUTextureViewDimension")] + [NativeName("Name", "dimension")] + public TextureViewDimension Dimension; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "baseMipLevel")] + public uint BaseMipLevel; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "mipLevelCount")] + public uint MipLevelCount; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "baseArrayLayer")] + public uint BaseArrayLayer; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "arrayLayerCount")] + public uint ArrayLayerCount; + + [NativeName("Type", "WGPUTextureAspect")] + [NativeName("Type.Name", "WGPUTextureAspect")] + [NativeName("Name", "aspect")] + public TextureAspect Aspect; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/VertexAttribute.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/VertexAttribute.gen.cs new file mode 100644 index 0000000000..c8f5b4113b --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/VertexAttribute.gen.cs @@ -0,0 +1,61 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUVertexAttribute")] + public unsafe partial struct VertexAttribute + { + public VertexAttribute + ( + VertexFormat? format = null, + ulong? offset = null, + uint? shaderLocation = null + ) : this() + { + if (format is not null) + { + Format = format.Value; + } + + if (offset is not null) + { + Offset = offset.Value; + } + + if (shaderLocation is not null) + { + ShaderLocation = shaderLocation.Value; + } + } + + + [NativeName("Type", "WGPUVertexFormat")] + [NativeName("Type.Name", "WGPUVertexFormat")] + [NativeName("Name", "format")] + public VertexFormat Format; + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "offset")] + public ulong Offset; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "shaderLocation")] + public uint ShaderLocation; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/VertexBufferLayout.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/VertexBufferLayout.gen.cs new file mode 100644 index 0000000000..1118d786a6 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/VertexBufferLayout.gen.cs @@ -0,0 +1,72 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUVertexBufferLayout")] + public unsafe partial struct VertexBufferLayout + { + public VertexBufferLayout + ( + ulong? arrayStride = null, + VertexStepMode? stepMode = null, + uint? attributeCount = null, + VertexAttribute* attributes = null + ) : this() + { + if (arrayStride is not null) + { + ArrayStride = arrayStride.Value; + } + + if (stepMode is not null) + { + StepMode = stepMode.Value; + } + + if (attributeCount is not null) + { + AttributeCount = attributeCount.Value; + } + + if (attributes is not null) + { + Attributes = attributes; + } + } + + + [NativeName("Type", "uint64_t")] + [NativeName("Type.Name", "uint64_t")] + [NativeName("Name", "arrayStride")] + public ulong ArrayStride; + + [NativeName("Type", "WGPUVertexStepMode")] + [NativeName("Type.Name", "WGPUVertexStepMode")] + [NativeName("Name", "stepMode")] + public VertexStepMode StepMode; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "attributeCount")] + public uint AttributeCount; + + [NativeName("Type", "const WGPUVertexAttribute *")] + [NativeName("Type.Name", "const WGPUVertexAttribute *")] + [NativeName("Name", "attributes")] + public VertexAttribute* Attributes; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/Structs/VertexState.gen.cs b/src/WebGPU/Silk.NET.WebGPU/Structs/VertexState.gen.cs new file mode 100644 index 0000000000..bd1280902d --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/Structs/VertexState.gen.cs @@ -0,0 +1,105 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + + +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + [NativeName("Name", "WGPUVertexState")] + public unsafe partial struct VertexState + { + public VertexState + ( + ChainedStruct* nextInChain = null, + ShaderModule* module = null, + byte* entryPoint = null, + uint? constantCount = null, + ConstantEntry* constants = null, + uint? bufferCount = null, + VertexBufferLayout* buffers = null + ) : this() + { + if (nextInChain is not null) + { + NextInChain = nextInChain; + } + + if (module is not null) + { + Module = module; + } + + if (entryPoint is not null) + { + EntryPoint = entryPoint; + } + + if (constantCount is not null) + { + ConstantCount = constantCount.Value; + } + + if (constants is not null) + { + Constants = constants; + } + + if (bufferCount is not null) + { + BufferCount = bufferCount.Value; + } + + if (buffers is not null) + { + Buffers = buffers; + } + } + + + [NativeName("Type", "const WGPUChainedStruct *")] + [NativeName("Type.Name", "const WGPUChainedStruct *")] + [NativeName("Name", "nextInChain")] + public ChainedStruct* NextInChain; + + [NativeName("Type", "WGPUShaderModule")] + [NativeName("Type.Name", "WGPUShaderModule")] + [NativeName("Name", "module")] + public ShaderModule* Module; + + [NativeName("Type", "const char *")] + [NativeName("Type.Name", "const char *")] + [NativeName("Name", "entryPoint")] + public byte* EntryPoint; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "constantCount")] + public uint ConstantCount; + + [NativeName("Type", "const WGPUConstantEntry *")] + [NativeName("Type.Name", "const WGPUConstantEntry *")] + [NativeName("Name", "constants")] + public ConstantEntry* Constants; + + [NativeName("Type", "uint32_t")] + [NativeName("Type.Name", "uint32_t")] + [NativeName("Name", "bufferCount")] + public uint BufferCount; + + [NativeName("Type", "const WGPUVertexBufferLayout *")] + [NativeName("Type.Name", "const WGPUVertexBufferLayout *")] + [NativeName("Name", "buffers")] + public VertexBufferLayout* Buffers; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/WebGPU.cs b/src/WebGPU/Silk.NET.WebGPU/WebGPU.cs new file mode 100644 index 0000000000..722a8c1436 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/WebGPU.cs @@ -0,0 +1,49 @@ +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; +using static Silk.NET.Core.Attributes.ExtensionAttribute; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public partial class WebGPU + { + public static WebGPU GetApi() + { + return new(CreateDefaultContext(new WebGPULibraryNameContainer().GetLibraryName())); + } + + [Obsolete("Use TryGetDeviceExtension!")] + public override bool IsExtensionPresent(string name) + { + throw new NotSupportedException(); + } + + public unsafe bool TryGetDeviceExtension(Device* device, out T ext) + where T:NativeExtension + { + ext = IsDeviceExtensionPresent(device, GetExtensionAttribute(typeof(T)).Name) + ? (T) Activator.CreateInstance(typeof(T), Context) //FIXME: Waiting on upstream wgpu-native fix to implement wgpuGetProcAddress + : null; + return ext is not null; + } + + public unsafe bool IsDeviceExtensionPresent(Device* device, string extension) + { + return extension switch + { + "wgpu.h" => Context.TryGetProcAddress("wgpuBufferDrop", out _), //FIXME: Waiting on upstream wgpu-native fix to implement wgpuGetProcAddress + "dawn-webgpu.h" => Context.TryGetProcAddress("wgpuAdapterRelease", out _), + _ => false + }; + } + } +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/WebGPU.gen.cs b/src/WebGPU/Silk.NET.WebGPU/WebGPU.gen.cs new file mode 100644 index 0000000000..5d8dcc7483 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/WebGPU.gen.cs @@ -0,0 +1,3148 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public unsafe partial class WebGPU : NativeAPI + { + [NativeName("Type", "unsigned long")] + [NativeName("Name", "WGPU_ARRAY_LAYER_COUNT_UNDEFINED")] + public const uint ArrayLayerCountUndefined = unchecked((uint) 0xFFFFFFFFFFFFFFFF); + [NativeName("Type", "unsigned long")] + [NativeName("Name", "WGPU_COPY_STRIDE_UNDEFINED")] + public const uint CopyStrideUndefined = unchecked((uint) 0xFFFFFFFFFFFFFFFF); + [NativeName("Type", "unsigned long")] + [NativeName("Name", "WGPU_LIMIT_U32_UNDEFINED")] + public const uint LimitU32Undefined = unchecked((uint) 0xFFFFFFFFFFFFFFFF); + [NativeName("Type", "unsigned long long")] + [NativeName("Name", "WGPU_LIMIT_U64_UNDEFINED")] + public const ulong LimitU64Undefined = unchecked((ulong) 0xFFFFFFFFFFFFFFFF); + [NativeName("Type", "unsigned long")] + [NativeName("Name", "WGPU_MIP_LEVEL_COUNT_UNDEFINED")] + public const uint MipLevelCountUndefined = unchecked((uint) 0xFFFFFFFFFFFFFFFF); + [NativeName("Type", "unsigned long long")] + [NativeName("Name", "WGPU_WHOLE_MAP_SIZE")] + public const ulong WholeMapSize = unchecked((ulong) 0xFFFFFFFFFFFFFFFF); + [NativeName("Type", "unsigned long long")] + [NativeName("Name", "WGPU_WHOLE_SIZE")] + public const ulong WholeSize = unchecked((ulong) 0xFFFFFFFFFFFFFFFF); + + /// To be documented. + [NativeName("Src", "Line 1405, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCreateInstance")] + public unsafe partial Instance* CreateInstance([Flow(FlowDirection.In)] InstanceDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1405, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCreateInstance")] + public unsafe partial Instance* CreateInstance([Flow(FlowDirection.In)] in InstanceDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuGetProcAddress")] + public unsafe partial PfnProc GetProcAddress(Device* device, [Flow(FlowDirection.In)] byte* procName); + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuGetProcAddress")] + public unsafe partial PfnProc GetProcAddress(Device* device, [Flow(FlowDirection.In)] in byte procName); + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuGetProcAddress")] + public unsafe partial PfnProc GetProcAddress(Device* device, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string procName); + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuGetProcAddress")] + public unsafe partial PfnProc GetProcAddress(ref Device device, [Flow(FlowDirection.In)] byte* procName); + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuGetProcAddress")] + public partial PfnProc GetProcAddress(ref Device device, [Flow(FlowDirection.In)] in byte procName); + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuGetProcAddress")] + public partial PfnProc GetProcAddress(ref Device device, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string procName); + + /// To be documented. + [NativeName("Src", "Line 1409, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterEnumerateFeatures")] + public unsafe partial nuint AdapterEnumerateFeatures(Adapter* adapter, FeatureName* features); + + /// To be documented. + [NativeName("Src", "Line 1409, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterEnumerateFeatures")] + public unsafe partial nuint AdapterEnumerateFeatures(Adapter* adapter, ref FeatureName features); + + /// To be documented. + [NativeName("Src", "Line 1409, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterEnumerateFeatures")] + public unsafe partial nuint AdapterEnumerateFeatures(ref Adapter adapter, FeatureName* features); + + /// To be documented. + [NativeName("Src", "Line 1409, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterEnumerateFeatures")] + public partial nuint AdapterEnumerateFeatures(ref Adapter adapter, ref FeatureName features); + + /// To be documented. + [NativeName("Src", "Line 1410, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetLimits")] + public unsafe partial bool AdapterGetLimits(Adapter* adapter, SupportedLimits* limits); + + /// To be documented. + [NativeName("Src", "Line 1410, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetLimits")] + public unsafe partial bool AdapterGetLimits(Adapter* adapter, ref SupportedLimits limits); + + /// To be documented. + [NativeName("Src", "Line 1410, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetLimits")] + public unsafe partial bool AdapterGetLimits(ref Adapter adapter, SupportedLimits* limits); + + /// To be documented. + [NativeName("Src", "Line 1410, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetLimits")] + public partial bool AdapterGetLimits(ref Adapter adapter, ref SupportedLimits limits); + + /// To be documented. + [NativeName("Src", "Line 1411, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetProperties")] + public unsafe partial void AdapterGetProperties(Adapter* adapter, AdapterProperties* properties); + + /// To be documented. + [NativeName("Src", "Line 1411, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetProperties")] + public unsafe partial void AdapterGetProperties(Adapter* adapter, ref AdapterProperties properties); + + /// To be documented. + [NativeName("Src", "Line 1411, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetProperties")] + public unsafe partial void AdapterGetProperties(ref Adapter adapter, AdapterProperties* properties); + + /// To be documented. + [NativeName("Src", "Line 1411, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterGetProperties")] + public partial void AdapterGetProperties(ref Adapter adapter, ref AdapterProperties properties); + + /// To be documented. + [NativeName("Src", "Line 1412, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterHasFeature")] + public unsafe partial bool AdapterHasFeature(Adapter* adapter, FeatureName feature); + + /// To be documented. + [NativeName("Src", "Line 1412, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterHasFeature")] + public partial bool AdapterHasFeature(ref Adapter adapter, FeatureName feature); + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public unsafe partial void AdapterRequestDevice(Adapter* adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor, PfnRequestDeviceCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public unsafe partial void AdapterRequestDevice(Adapter* adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor, PfnRequestDeviceCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public unsafe partial void AdapterRequestDevice(Adapter* adapter, [Flow(FlowDirection.In)] in DeviceDescriptor descriptor, PfnRequestDeviceCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public unsafe partial void AdapterRequestDevice(Adapter* adapter, [Flow(FlowDirection.In)] in DeviceDescriptor descriptor, PfnRequestDeviceCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public unsafe partial void AdapterRequestDevice(ref Adapter adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor, PfnRequestDeviceCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public unsafe partial void AdapterRequestDevice(ref Adapter adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor, PfnRequestDeviceCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public unsafe partial void AdapterRequestDevice(ref Adapter adapter, [Flow(FlowDirection.In)] in DeviceDescriptor descriptor, PfnRequestDeviceCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuAdapterRequestDevice")] + public partial void AdapterRequestDevice(ref Adapter adapter, [Flow(FlowDirection.In)] in DeviceDescriptor descriptor, PfnRequestDeviceCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupSetLabel")] + public unsafe partial void BindGroupSetLabel(BindGroup* bindGroup, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupSetLabel")] + public unsafe partial void BindGroupSetLabel(BindGroup* bindGroup, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupSetLabel")] + public unsafe partial void BindGroupSetLabel(BindGroup* bindGroup, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupSetLabel")] + public unsafe partial void BindGroupSetLabel(ref BindGroup bindGroup, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupSetLabel")] + public partial void BindGroupSetLabel(ref BindGroup bindGroup, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupSetLabel")] + public partial void BindGroupSetLabel(ref BindGroup bindGroup, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutSetLabel")] + public unsafe partial void BindGroupLayoutSetLabel(BindGroupLayout* bindGroupLayout, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutSetLabel")] + public unsafe partial void BindGroupLayoutSetLabel(BindGroupLayout* bindGroupLayout, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutSetLabel")] + public unsafe partial void BindGroupLayoutSetLabel(BindGroupLayout* bindGroupLayout, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutSetLabel")] + public unsafe partial void BindGroupLayoutSetLabel(ref BindGroupLayout bindGroupLayout, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutSetLabel")] + public partial void BindGroupLayoutSetLabel(ref BindGroupLayout bindGroupLayout, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBindGroupLayoutSetLabel")] + public partial void BindGroupLayoutSetLabel(ref BindGroupLayout bindGroupLayout, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1422, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferDestroy")] + public unsafe partial void BufferDestroy(Buffer* buffer); + + /// To be documented. + [NativeName("Src", "Line 1422, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferDestroy")] + public partial void BufferDestroy(ref Buffer buffer); + + /// To be documented. + [NativeName("Src", "Line 1423, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetConstMappedRange")] + public unsafe partial void* BufferGetConstMappedRange(Buffer* buffer, nuint offset, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1423, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetConstMappedRange")] + public unsafe partial void* BufferGetConstMappedRange(ref Buffer buffer, nuint offset, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1424, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetMappedRange")] + public unsafe partial void* BufferGetMappedRange(Buffer* buffer, nuint offset, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1424, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetMappedRange")] + public unsafe partial void* BufferGetMappedRange(ref Buffer buffer, nuint offset, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1425, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetSize")] + public unsafe partial ulong BufferGetSize(Buffer* buffer); + + /// To be documented. + [NativeName("Src", "Line 1425, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetSize")] + public partial ulong BufferGetSize(ref Buffer buffer); + + /// To be documented. + [NativeName("Src", "Line 1426, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetUsage")] + public unsafe partial BufferUsage BufferGetUsage(Buffer* buffer); + + /// To be documented. + [NativeName("Src", "Line 1426, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferGetUsage")] + public partial BufferUsage BufferGetUsage(ref Buffer buffer); + + /// To be documented. + [NativeName("Src", "Line 1427, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferMapAsync")] + public unsafe partial void BufferMapAsync(Buffer* buffer, Silk.NET.WebGPU.MapMode mode, nuint offset, nuint size, PfnBufferMapCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1427, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferMapAsync")] + public unsafe partial void BufferMapAsync(Buffer* buffer, Silk.NET.WebGPU.MapMode mode, nuint offset, nuint size, PfnBufferMapCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1427, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferMapAsync")] + public unsafe partial void BufferMapAsync(ref Buffer buffer, Silk.NET.WebGPU.MapMode mode, nuint offset, nuint size, PfnBufferMapCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1427, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferMapAsync")] + public partial void BufferMapAsync(ref Buffer buffer, Silk.NET.WebGPU.MapMode mode, nuint offset, nuint size, PfnBufferMapCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferSetLabel")] + public unsafe partial void BufferSetLabel(Buffer* buffer, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferSetLabel")] + public unsafe partial void BufferSetLabel(Buffer* buffer, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferSetLabel")] + public unsafe partial void BufferSetLabel(Buffer* buffer, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferSetLabel")] + public unsafe partial void BufferSetLabel(ref Buffer buffer, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferSetLabel")] + public partial void BufferSetLabel(ref Buffer buffer, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferSetLabel")] + public partial void BufferSetLabel(ref Buffer buffer, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1429, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferUnmap")] + public unsafe partial void BufferUnmap(Buffer* buffer); + + /// To be documented. + [NativeName("Src", "Line 1429, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuBufferUnmap")] + public partial void BufferUnmap(ref Buffer buffer); + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferSetLabel")] + public unsafe partial void CommandBufferSetLabel(CommandBuffer* commandBuffer, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferSetLabel")] + public unsafe partial void CommandBufferSetLabel(CommandBuffer* commandBuffer, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferSetLabel")] + public unsafe partial void CommandBufferSetLabel(CommandBuffer* commandBuffer, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferSetLabel")] + public unsafe partial void CommandBufferSetLabel(ref CommandBuffer commandBuffer, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferSetLabel")] + public partial void CommandBufferSetLabel(ref CommandBuffer commandBuffer, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandBufferSetLabel")] + public partial void CommandBufferSetLabel(ref CommandBuffer commandBuffer, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1435, Column 36 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginComputePass")] + public unsafe partial ComputePassEncoder* CommandEncoderBeginComputePass(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ComputePassDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1435, Column 36 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginComputePass")] + public unsafe partial ComputePassEncoder* CommandEncoderBeginComputePass(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ComputePassDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1435, Column 36 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginComputePass")] + public unsafe partial ComputePassEncoder* CommandEncoderBeginComputePass(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ComputePassDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1435, Column 36 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginComputePass")] + public unsafe partial ComputePassEncoder* CommandEncoderBeginComputePass(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ComputePassDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1436, Column 35 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginRenderPass")] + public unsafe partial RenderPassEncoder* CommandEncoderBeginRenderPass(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] RenderPassDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1436, Column 35 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginRenderPass")] + public unsafe partial RenderPassEncoder* CommandEncoderBeginRenderPass(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in RenderPassDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1436, Column 35 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginRenderPass")] + public unsafe partial RenderPassEncoder* CommandEncoderBeginRenderPass(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] RenderPassDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1436, Column 35 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderBeginRenderPass")] + public unsafe partial RenderPassEncoder* CommandEncoderBeginRenderPass(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in RenderPassDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1437, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderClearBuffer")] + public unsafe partial void CommandEncoderClearBuffer(CommandEncoder* commandEncoder, Buffer* buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1437, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderClearBuffer")] + public unsafe partial void CommandEncoderClearBuffer(CommandEncoder* commandEncoder, ref Buffer buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1437, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderClearBuffer")] + public unsafe partial void CommandEncoderClearBuffer(ref CommandEncoder commandEncoder, Buffer* buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1437, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderClearBuffer")] + public partial void CommandEncoderClearBuffer(ref CommandEncoder commandEncoder, ref Buffer buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public unsafe partial void CommandEncoderCopyBufferToBuffer(CommandEncoder* commandEncoder, Buffer* source, ulong sourceOffset, Buffer* destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public unsafe partial void CommandEncoderCopyBufferToBuffer(CommandEncoder* commandEncoder, Buffer* source, ulong sourceOffset, ref Buffer destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public unsafe partial void CommandEncoderCopyBufferToBuffer(CommandEncoder* commandEncoder, ref Buffer source, ulong sourceOffset, Buffer* destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public unsafe partial void CommandEncoderCopyBufferToBuffer(CommandEncoder* commandEncoder, ref Buffer source, ulong sourceOffset, ref Buffer destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public unsafe partial void CommandEncoderCopyBufferToBuffer(ref CommandEncoder commandEncoder, Buffer* source, ulong sourceOffset, Buffer* destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public unsafe partial void CommandEncoderCopyBufferToBuffer(ref CommandEncoder commandEncoder, Buffer* source, ulong sourceOffset, ref Buffer destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public unsafe partial void CommandEncoderCopyBufferToBuffer(ref CommandEncoder commandEncoder, ref Buffer source, ulong sourceOffset, Buffer* destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToBuffer")] + public partial void CommandEncoderCopyBufferToBuffer(ref CommandEncoder commandEncoder, ref Buffer source, ulong sourceOffset, ref Buffer destination, ulong destinationOffset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public unsafe partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyBufferToTexture")] + public partial void CommandEncoderCopyBufferToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyBuffer source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public unsafe partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToBuffer")] + public partial void CommandEncoderCopyTextureToBuffer(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyBuffer destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public unsafe partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] Extent3D* copySize); + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderCopyTextureToTexture")] + public partial void CommandEncoderCopyTextureToTexture(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in ImageCopyTexture source, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in Extent3D copySize); + + /// To be documented. + [NativeName("Src", "Line 1442, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderFinish")] + public unsafe partial CommandBuffer* CommandEncoderFinish(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] CommandBufferDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1442, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderFinish")] + public unsafe partial CommandBuffer* CommandEncoderFinish(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in CommandBufferDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1442, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderFinish")] + public unsafe partial CommandBuffer* CommandEncoderFinish(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] CommandBufferDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1442, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderFinish")] + public unsafe partial CommandBuffer* CommandEncoderFinish(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in CommandBufferDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInsertDebugMarker")] + public unsafe partial void CommandEncoderInsertDebugMarker(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInsertDebugMarker")] + public unsafe partial void CommandEncoderInsertDebugMarker(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInsertDebugMarker")] + public unsafe partial void CommandEncoderInsertDebugMarker(CommandEncoder* commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInsertDebugMarker")] + public unsafe partial void CommandEncoderInsertDebugMarker(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInsertDebugMarker")] + public partial void CommandEncoderInsertDebugMarker(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderInsertDebugMarker")] + public partial void CommandEncoderInsertDebugMarker(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1444, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPopDebugGroup")] + public unsafe partial void CommandEncoderPopDebugGroup(CommandEncoder* commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 1444, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPopDebugGroup")] + public partial void CommandEncoderPopDebugGroup(ref CommandEncoder commandEncoder); + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPushDebugGroup")] + public unsafe partial void CommandEncoderPushDebugGroup(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPushDebugGroup")] + public unsafe partial void CommandEncoderPushDebugGroup(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPushDebugGroup")] + public unsafe partial void CommandEncoderPushDebugGroup(CommandEncoder* commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPushDebugGroup")] + public unsafe partial void CommandEncoderPushDebugGroup(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPushDebugGroup")] + public partial void CommandEncoderPushDebugGroup(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderPushDebugGroup")] + public partial void CommandEncoderPushDebugGroup(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public unsafe partial void CommandEncoderResolveQuerySet(CommandEncoder* commandEncoder, QuerySet* querySet, uint firstQuery, uint queryCount, Buffer* destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public unsafe partial void CommandEncoderResolveQuerySet(CommandEncoder* commandEncoder, QuerySet* querySet, uint firstQuery, uint queryCount, ref Buffer destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public unsafe partial void CommandEncoderResolveQuerySet(CommandEncoder* commandEncoder, ref QuerySet querySet, uint firstQuery, uint queryCount, Buffer* destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public unsafe partial void CommandEncoderResolveQuerySet(CommandEncoder* commandEncoder, ref QuerySet querySet, uint firstQuery, uint queryCount, ref Buffer destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public unsafe partial void CommandEncoderResolveQuerySet(ref CommandEncoder commandEncoder, QuerySet* querySet, uint firstQuery, uint queryCount, Buffer* destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public unsafe partial void CommandEncoderResolveQuerySet(ref CommandEncoder commandEncoder, QuerySet* querySet, uint firstQuery, uint queryCount, ref Buffer destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public unsafe partial void CommandEncoderResolveQuerySet(ref CommandEncoder commandEncoder, ref QuerySet querySet, uint firstQuery, uint queryCount, Buffer* destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderResolveQuerySet")] + public partial void CommandEncoderResolveQuerySet(ref CommandEncoder commandEncoder, ref QuerySet querySet, uint firstQuery, uint queryCount, ref Buffer destination, ulong destinationOffset); + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderSetLabel")] + public unsafe partial void CommandEncoderSetLabel(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderSetLabel")] + public unsafe partial void CommandEncoderSetLabel(CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderSetLabel")] + public unsafe partial void CommandEncoderSetLabel(CommandEncoder* commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderSetLabel")] + public unsafe partial void CommandEncoderSetLabel(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderSetLabel")] + public partial void CommandEncoderSetLabel(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderSetLabel")] + public partial void CommandEncoderSetLabel(ref CommandEncoder commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1448, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteTimestamp")] + public unsafe partial void CommandEncoderWriteTimestamp(CommandEncoder* commandEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1448, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteTimestamp")] + public unsafe partial void CommandEncoderWriteTimestamp(CommandEncoder* commandEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1448, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteTimestamp")] + public unsafe partial void CommandEncoderWriteTimestamp(ref CommandEncoder commandEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1448, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuCommandEncoderWriteTimestamp")] + public partial void CommandEncoderWriteTimestamp(ref CommandEncoder commandEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1451, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderBeginPipelineStatisticsQuery")] + public unsafe partial void ComputePassEncoderBeginPipelineStatisticsQuery(ComputePassEncoder* computePassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1451, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderBeginPipelineStatisticsQuery")] + public unsafe partial void ComputePassEncoderBeginPipelineStatisticsQuery(ComputePassEncoder* computePassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1451, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderBeginPipelineStatisticsQuery")] + public unsafe partial void ComputePassEncoderBeginPipelineStatisticsQuery(ref ComputePassEncoder computePassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1451, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderBeginPipelineStatisticsQuery")] + public partial void ComputePassEncoderBeginPipelineStatisticsQuery(ref ComputePassEncoder computePassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1452, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchWorkgroups")] + public unsafe partial void ComputePassEncoderDispatchWorkgroups(ComputePassEncoder* computePassEncoder, uint workgroupCountX, uint workgroupCountY, uint workgroupCountZ); + + /// To be documented. + [NativeName("Src", "Line 1452, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchWorkgroups")] + public partial void ComputePassEncoderDispatchWorkgroups(ref ComputePassEncoder computePassEncoder, uint workgroupCountX, uint workgroupCountY, uint workgroupCountZ); + + /// To be documented. + [NativeName("Src", "Line 1453, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchWorkgroupsIndirect")] + public unsafe partial void ComputePassEncoderDispatchWorkgroupsIndirect(ComputePassEncoder* computePassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1453, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchWorkgroupsIndirect")] + public unsafe partial void ComputePassEncoderDispatchWorkgroupsIndirect(ComputePassEncoder* computePassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1453, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchWorkgroupsIndirect")] + public unsafe partial void ComputePassEncoderDispatchWorkgroupsIndirect(ref ComputePassEncoder computePassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1453, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderDispatchWorkgroupsIndirect")] + public partial void ComputePassEncoderDispatchWorkgroupsIndirect(ref ComputePassEncoder computePassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1454, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderEnd")] + public unsafe partial void ComputePassEncoderEnd(ComputePassEncoder* computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1454, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderEnd")] + public partial void ComputePassEncoderEnd(ref ComputePassEncoder computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1455, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderEndPipelineStatisticsQuery")] + public unsafe partial void ComputePassEncoderEndPipelineStatisticsQuery(ComputePassEncoder* computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1455, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderEndPipelineStatisticsQuery")] + public partial void ComputePassEncoderEndPipelineStatisticsQuery(ref ComputePassEncoder computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderInsertDebugMarker")] + public unsafe partial void ComputePassEncoderInsertDebugMarker(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderInsertDebugMarker")] + public unsafe partial void ComputePassEncoderInsertDebugMarker(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderInsertDebugMarker")] + public unsafe partial void ComputePassEncoderInsertDebugMarker(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderInsertDebugMarker")] + public unsafe partial void ComputePassEncoderInsertDebugMarker(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderInsertDebugMarker")] + public partial void ComputePassEncoderInsertDebugMarker(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderInsertDebugMarker")] + public partial void ComputePassEncoderInsertDebugMarker(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1457, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPopDebugGroup")] + public unsafe partial void ComputePassEncoderPopDebugGroup(ComputePassEncoder* computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1457, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPopDebugGroup")] + public partial void ComputePassEncoderPopDebugGroup(ref ComputePassEncoder computePassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPushDebugGroup")] + public unsafe partial void ComputePassEncoderPushDebugGroup(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPushDebugGroup")] + public unsafe partial void ComputePassEncoderPushDebugGroup(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPushDebugGroup")] + public unsafe partial void ComputePassEncoderPushDebugGroup(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPushDebugGroup")] + public unsafe partial void ComputePassEncoderPushDebugGroup(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPushDebugGroup")] + public partial void ComputePassEncoderPushDebugGroup(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderPushDebugGroup")] + public partial void ComputePassEncoderPushDebugGroup(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public unsafe partial void ComputePassEncoderSetBindGroup(ComputePassEncoder* computePassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public unsafe partial void ComputePassEncoderSetBindGroup(ComputePassEncoder* computePassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public unsafe partial void ComputePassEncoderSetBindGroup(ComputePassEncoder* computePassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public unsafe partial void ComputePassEncoderSetBindGroup(ComputePassEncoder* computePassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public unsafe partial void ComputePassEncoderSetBindGroup(ref ComputePassEncoder computePassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public unsafe partial void ComputePassEncoderSetBindGroup(ref ComputePassEncoder computePassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public unsafe partial void ComputePassEncoderSetBindGroup(ref ComputePassEncoder computePassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetBindGroup")] + public partial void ComputePassEncoderSetBindGroup(ref ComputePassEncoder computePassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetLabel")] + public unsafe partial void ComputePassEncoderSetLabel(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetLabel")] + public unsafe partial void ComputePassEncoderSetLabel(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetLabel")] + public unsafe partial void ComputePassEncoderSetLabel(ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetLabel")] + public unsafe partial void ComputePassEncoderSetLabel(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetLabel")] + public partial void ComputePassEncoderSetLabel(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetLabel")] + public partial void ComputePassEncoderSetLabel(ref ComputePassEncoder computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1461, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetPipeline")] + public unsafe partial void ComputePassEncoderSetPipeline(ComputePassEncoder* computePassEncoder, ComputePipeline* pipeline); + + /// To be documented. + [NativeName("Src", "Line 1461, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetPipeline")] + public unsafe partial void ComputePassEncoderSetPipeline(ComputePassEncoder* computePassEncoder, ref ComputePipeline pipeline); + + /// To be documented. + [NativeName("Src", "Line 1461, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetPipeline")] + public unsafe partial void ComputePassEncoderSetPipeline(ref ComputePassEncoder computePassEncoder, ComputePipeline* pipeline); + + /// To be documented. + [NativeName("Src", "Line 1461, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePassEncoderSetPipeline")] + public partial void ComputePassEncoderSetPipeline(ref ComputePassEncoder computePassEncoder, ref ComputePipeline pipeline); + + /// To be documented. + [NativeName("Src", "Line 1464, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineGetBindGroupLayout")] + public unsafe partial BindGroupLayout* ComputePipelineGetBindGroupLayout(ComputePipeline* computePipeline, uint groupIndex); + + /// To be documented. + [NativeName("Src", "Line 1464, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineGetBindGroupLayout")] + public unsafe partial BindGroupLayout* ComputePipelineGetBindGroupLayout(ref ComputePipeline computePipeline, uint groupIndex); + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineSetLabel")] + public unsafe partial void ComputePipelineSetLabel(ComputePipeline* computePipeline, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineSetLabel")] + public unsafe partial void ComputePipelineSetLabel(ComputePipeline* computePipeline, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineSetLabel")] + public unsafe partial void ComputePipelineSetLabel(ComputePipeline* computePipeline, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineSetLabel")] + public unsafe partial void ComputePipelineSetLabel(ref ComputePipeline computePipeline, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineSetLabel")] + public partial void ComputePipelineSetLabel(ref ComputePipeline computePipeline, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuComputePipelineSetLabel")] + public partial void ComputePipelineSetLabel(ref ComputePipeline computePipeline, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1468, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroup")] + public unsafe partial BindGroup* DeviceCreateBindGroup(Device* device, [Flow(FlowDirection.In)] BindGroupDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1468, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroup")] + public unsafe partial BindGroup* DeviceCreateBindGroup(Device* device, [Flow(FlowDirection.In)] in BindGroupDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1468, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroup")] + public unsafe partial BindGroup* DeviceCreateBindGroup(ref Device device, [Flow(FlowDirection.In)] BindGroupDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1468, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroup")] + public unsafe partial BindGroup* DeviceCreateBindGroup(ref Device device, [Flow(FlowDirection.In)] in BindGroupDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1469, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroupLayout")] + public unsafe partial BindGroupLayout* DeviceCreateBindGroupLayout(Device* device, [Flow(FlowDirection.In)] BindGroupLayoutDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1469, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroupLayout")] + public unsafe partial BindGroupLayout* DeviceCreateBindGroupLayout(Device* device, [Flow(FlowDirection.In)] in BindGroupLayoutDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1469, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroupLayout")] + public unsafe partial BindGroupLayout* DeviceCreateBindGroupLayout(ref Device device, [Flow(FlowDirection.In)] BindGroupLayoutDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1469, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBindGroupLayout")] + public unsafe partial BindGroupLayout* DeviceCreateBindGroupLayout(ref Device device, [Flow(FlowDirection.In)] in BindGroupLayoutDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1470, Column 24 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBuffer")] + public unsafe partial Buffer* DeviceCreateBuffer(Device* device, [Flow(FlowDirection.In)] BufferDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1470, Column 24 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBuffer")] + public unsafe partial Buffer* DeviceCreateBuffer(Device* device, [Flow(FlowDirection.In)] in BufferDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1470, Column 24 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBuffer")] + public unsafe partial Buffer* DeviceCreateBuffer(ref Device device, [Flow(FlowDirection.In)] BufferDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1470, Column 24 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateBuffer")] + public unsafe partial Buffer* DeviceCreateBuffer(ref Device device, [Flow(FlowDirection.In)] in BufferDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1471, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateCommandEncoder")] + public unsafe partial CommandEncoder* DeviceCreateCommandEncoder(Device* device, [Flow(FlowDirection.In)] CommandEncoderDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1471, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateCommandEncoder")] + public unsafe partial CommandEncoder* DeviceCreateCommandEncoder(Device* device, [Flow(FlowDirection.In)] in CommandEncoderDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1471, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateCommandEncoder")] + public unsafe partial CommandEncoder* DeviceCreateCommandEncoder(ref Device device, [Flow(FlowDirection.In)] CommandEncoderDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1471, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateCommandEncoder")] + public unsafe partial CommandEncoder* DeviceCreateCommandEncoder(ref Device device, [Flow(FlowDirection.In)] in CommandEncoderDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1472, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipeline")] + public unsafe partial ComputePipeline* DeviceCreateComputePipeline(Device* device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1472, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipeline")] + public unsafe partial ComputePipeline* DeviceCreateComputePipeline(Device* device, [Flow(FlowDirection.In)] in ComputePipelineDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1472, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipeline")] + public unsafe partial ComputePipeline* DeviceCreateComputePipeline(ref Device device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1472, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipeline")] + public unsafe partial ComputePipeline* DeviceCreateComputePipeline(ref Device device, [Flow(FlowDirection.In)] in ComputePipelineDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public unsafe partial void DeviceCreateComputePipelineAsync(Device* device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor, PfnCreateComputePipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public unsafe partial void DeviceCreateComputePipelineAsync(Device* device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor, PfnCreateComputePipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public unsafe partial void DeviceCreateComputePipelineAsync(Device* device, [Flow(FlowDirection.In)] in ComputePipelineDescriptor descriptor, PfnCreateComputePipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public unsafe partial void DeviceCreateComputePipelineAsync(Device* device, [Flow(FlowDirection.In)] in ComputePipelineDescriptor descriptor, PfnCreateComputePipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public unsafe partial void DeviceCreateComputePipelineAsync(ref Device device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor, PfnCreateComputePipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public unsafe partial void DeviceCreateComputePipelineAsync(ref Device device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor, PfnCreateComputePipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public unsafe partial void DeviceCreateComputePipelineAsync(ref Device device, [Flow(FlowDirection.In)] in ComputePipelineDescriptor descriptor, PfnCreateComputePipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateComputePipelineAsync")] + public partial void DeviceCreateComputePipelineAsync(ref Device device, [Flow(FlowDirection.In)] in ComputePipelineDescriptor descriptor, PfnCreateComputePipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1474, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreatePipelineLayout")] + public unsafe partial PipelineLayout* DeviceCreatePipelineLayout(Device* device, [Flow(FlowDirection.In)] PipelineLayoutDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1474, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreatePipelineLayout")] + public unsafe partial PipelineLayout* DeviceCreatePipelineLayout(Device* device, [Flow(FlowDirection.In)] in PipelineLayoutDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1474, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreatePipelineLayout")] + public unsafe partial PipelineLayout* DeviceCreatePipelineLayout(ref Device device, [Flow(FlowDirection.In)] PipelineLayoutDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1474, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreatePipelineLayout")] + public unsafe partial PipelineLayout* DeviceCreatePipelineLayout(ref Device device, [Flow(FlowDirection.In)] in PipelineLayoutDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1475, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateQuerySet")] + public unsafe partial QuerySet* DeviceCreateQuerySet(Device* device, [Flow(FlowDirection.In)] QuerySetDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1475, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateQuerySet")] + public unsafe partial QuerySet* DeviceCreateQuerySet(Device* device, [Flow(FlowDirection.In)] in QuerySetDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1475, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateQuerySet")] + public unsafe partial QuerySet* DeviceCreateQuerySet(ref Device device, [Flow(FlowDirection.In)] QuerySetDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1475, Column 26 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateQuerySet")] + public unsafe partial QuerySet* DeviceCreateQuerySet(ref Device device, [Flow(FlowDirection.In)] in QuerySetDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1476, Column 37 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderBundleEncoder")] + public unsafe partial RenderBundleEncoder* DeviceCreateRenderBundleEncoder(Device* device, [Flow(FlowDirection.In)] RenderBundleEncoderDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1476, Column 37 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderBundleEncoder")] + public unsafe partial RenderBundleEncoder* DeviceCreateRenderBundleEncoder(Device* device, [Flow(FlowDirection.In)] in RenderBundleEncoderDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1476, Column 37 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderBundleEncoder")] + public unsafe partial RenderBundleEncoder* DeviceCreateRenderBundleEncoder(ref Device device, [Flow(FlowDirection.In)] RenderBundleEncoderDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1476, Column 37 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderBundleEncoder")] + public unsafe partial RenderBundleEncoder* DeviceCreateRenderBundleEncoder(ref Device device, [Flow(FlowDirection.In)] in RenderBundleEncoderDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1477, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipeline")] + public unsafe partial RenderPipeline* DeviceCreateRenderPipeline(Device* device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1477, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipeline")] + public unsafe partial RenderPipeline* DeviceCreateRenderPipeline(Device* device, [Flow(FlowDirection.In)] in RenderPipelineDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1477, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipeline")] + public unsafe partial RenderPipeline* DeviceCreateRenderPipeline(ref Device device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1477, Column 32 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipeline")] + public unsafe partial RenderPipeline* DeviceCreateRenderPipeline(ref Device device, [Flow(FlowDirection.In)] in RenderPipelineDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public unsafe partial void DeviceCreateRenderPipelineAsync(Device* device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor, PfnCreateRenderPipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public unsafe partial void DeviceCreateRenderPipelineAsync(Device* device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor, PfnCreateRenderPipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public unsafe partial void DeviceCreateRenderPipelineAsync(Device* device, [Flow(FlowDirection.In)] in RenderPipelineDescriptor descriptor, PfnCreateRenderPipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public unsafe partial void DeviceCreateRenderPipelineAsync(Device* device, [Flow(FlowDirection.In)] in RenderPipelineDescriptor descriptor, PfnCreateRenderPipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public unsafe partial void DeviceCreateRenderPipelineAsync(ref Device device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor, PfnCreateRenderPipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public unsafe partial void DeviceCreateRenderPipelineAsync(ref Device device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor, PfnCreateRenderPipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public unsafe partial void DeviceCreateRenderPipelineAsync(ref Device device, [Flow(FlowDirection.In)] in RenderPipelineDescriptor descriptor, PfnCreateRenderPipelineAsyncCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateRenderPipelineAsync")] + public partial void DeviceCreateRenderPipelineAsync(ref Device device, [Flow(FlowDirection.In)] in RenderPipelineDescriptor descriptor, PfnCreateRenderPipelineAsyncCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1479, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSampler")] + public unsafe partial Sampler* DeviceCreateSampler(Device* device, [Flow(FlowDirection.In)] SamplerDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1479, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSampler")] + public unsafe partial Sampler* DeviceCreateSampler(Device* device, [Flow(FlowDirection.In)] in SamplerDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1479, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSampler")] + public unsafe partial Sampler* DeviceCreateSampler(ref Device device, [Flow(FlowDirection.In)] SamplerDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1479, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSampler")] + public unsafe partial Sampler* DeviceCreateSampler(ref Device device, [Flow(FlowDirection.In)] in SamplerDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1480, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateShaderModule")] + public unsafe partial ShaderModule* DeviceCreateShaderModule(Device* device, [Flow(FlowDirection.In)] ShaderModuleDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1480, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateShaderModule")] + public unsafe partial ShaderModule* DeviceCreateShaderModule(Device* device, [Flow(FlowDirection.In)] in ShaderModuleDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1480, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateShaderModule")] + public unsafe partial ShaderModule* DeviceCreateShaderModule(ref Device device, [Flow(FlowDirection.In)] ShaderModuleDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1480, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateShaderModule")] + public unsafe partial ShaderModule* DeviceCreateShaderModule(ref Device device, [Flow(FlowDirection.In)] in ShaderModuleDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(Device* device, Surface* surface, [Flow(FlowDirection.In)] SwapChainDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(Device* device, Surface* surface, [Flow(FlowDirection.In)] in SwapChainDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(Device* device, ref Surface surface, [Flow(FlowDirection.In)] SwapChainDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(Device* device, ref Surface surface, [Flow(FlowDirection.In)] in SwapChainDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(ref Device device, Surface* surface, [Flow(FlowDirection.In)] SwapChainDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(ref Device device, Surface* surface, [Flow(FlowDirection.In)] in SwapChainDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(ref Device device, ref Surface surface, [Flow(FlowDirection.In)] SwapChainDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateSwapChain")] + public unsafe partial SwapChain* DeviceCreateSwapChain(ref Device device, ref Surface surface, [Flow(FlowDirection.In)] in SwapChainDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1482, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateTexture")] + public unsafe partial Texture* DeviceCreateTexture(Device* device, [Flow(FlowDirection.In)] TextureDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1482, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateTexture")] + public unsafe partial Texture* DeviceCreateTexture(Device* device, [Flow(FlowDirection.In)] in TextureDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1482, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateTexture")] + public unsafe partial Texture* DeviceCreateTexture(ref Device device, [Flow(FlowDirection.In)] TextureDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1482, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceCreateTexture")] + public unsafe partial Texture* DeviceCreateTexture(ref Device device, [Flow(FlowDirection.In)] in TextureDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1483, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceDestroy")] + public unsafe partial void DeviceDestroy(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1483, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceDestroy")] + public partial void DeviceDestroy(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1484, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceEnumerateFeatures")] + public unsafe partial nuint DeviceEnumerateFeatures(Device* device, FeatureName* features); + + /// To be documented. + [NativeName("Src", "Line 1484, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceEnumerateFeatures")] + public unsafe partial nuint DeviceEnumerateFeatures(Device* device, ref FeatureName features); + + /// To be documented. + [NativeName("Src", "Line 1484, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceEnumerateFeatures")] + public unsafe partial nuint DeviceEnumerateFeatures(ref Device device, FeatureName* features); + + /// To be documented. + [NativeName("Src", "Line 1484, Column 20 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceEnumerateFeatures")] + public partial nuint DeviceEnumerateFeatures(ref Device device, ref FeatureName features); + + /// To be documented. + [NativeName("Src", "Line 1485, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetLimits")] + public unsafe partial bool DeviceGetLimits(Device* device, SupportedLimits* limits); + + /// To be documented. + [NativeName("Src", "Line 1485, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetLimits")] + public unsafe partial bool DeviceGetLimits(Device* device, ref SupportedLimits limits); + + /// To be documented. + [NativeName("Src", "Line 1485, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetLimits")] + public unsafe partial bool DeviceGetLimits(ref Device device, SupportedLimits* limits); + + /// To be documented. + [NativeName("Src", "Line 1485, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetLimits")] + public partial bool DeviceGetLimits(ref Device device, ref SupportedLimits limits); + + /// To be documented. + [NativeName("Src", "Line 1486, Column 23 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetQueue")] + public unsafe partial Queue* DeviceGetQueue(Device* device); + + /// To be documented. + [NativeName("Src", "Line 1486, Column 23 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceGetQueue")] + public unsafe partial Queue* DeviceGetQueue(ref Device device); + + /// To be documented. + [NativeName("Src", "Line 1487, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceHasFeature")] + public unsafe partial bool DeviceHasFeature(Device* device, FeatureName feature); + + /// To be documented. + [NativeName("Src", "Line 1487, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceHasFeature")] + public partial bool DeviceHasFeature(ref Device device, FeatureName feature); + + /// To be documented. + [NativeName("Src", "Line 1488, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePopErrorScope")] + public unsafe partial bool DevicePopErrorScope(Device* device, PfnErrorCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1488, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePopErrorScope")] + public unsafe partial bool DevicePopErrorScope(Device* device, PfnErrorCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1488, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePopErrorScope")] + public unsafe partial bool DevicePopErrorScope(ref Device device, PfnErrorCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1488, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePopErrorScope")] + public partial bool DevicePopErrorScope(ref Device device, PfnErrorCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1489, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePushErrorScope")] + public unsafe partial void DevicePushErrorScope(Device* device, ErrorFilter filter); + + /// To be documented. + [NativeName("Src", "Line 1489, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDevicePushErrorScope")] + public partial void DevicePushErrorScope(ref Device device, ErrorFilter filter); + + /// To be documented. + [NativeName("Src", "Line 1490, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetDeviceLostCallback")] + public unsafe partial void DeviceSetDeviceLostCallback(Device* device, PfnDeviceLostCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1490, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetDeviceLostCallback")] + public unsafe partial void DeviceSetDeviceLostCallback(Device* device, PfnDeviceLostCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1490, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetDeviceLostCallback")] + public unsafe partial void DeviceSetDeviceLostCallback(ref Device device, PfnDeviceLostCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1490, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetDeviceLostCallback")] + public partial void DeviceSetDeviceLostCallback(ref Device device, PfnDeviceLostCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLabel")] + public unsafe partial void DeviceSetLabel(Device* device, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLabel")] + public unsafe partial void DeviceSetLabel(Device* device, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLabel")] + public unsafe partial void DeviceSetLabel(Device* device, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLabel")] + public unsafe partial void DeviceSetLabel(ref Device device, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLabel")] + public partial void DeviceSetLabel(ref Device device, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetLabel")] + public partial void DeviceSetLabel(ref Device device, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1492, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetUncapturedErrorCallback")] + public unsafe partial void DeviceSetUncapturedErrorCallback(Device* device, PfnErrorCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1492, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetUncapturedErrorCallback")] + public unsafe partial void DeviceSetUncapturedErrorCallback(Device* device, PfnErrorCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1492, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetUncapturedErrorCallback")] + public unsafe partial void DeviceSetUncapturedErrorCallback(ref Device device, PfnErrorCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1492, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuDeviceSetUncapturedErrorCallback")] + public partial void DeviceSetUncapturedErrorCallback(ref Device device, PfnErrorCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1495, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceCreateSurface")] + public unsafe partial Surface* InstanceCreateSurface(Instance* instance, [Flow(FlowDirection.In)] SurfaceDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1495, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceCreateSurface")] + public unsafe partial Surface* InstanceCreateSurface(Instance* instance, [Flow(FlowDirection.In)] in SurfaceDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1495, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceCreateSurface")] + public unsafe partial Surface* InstanceCreateSurface(ref Instance instance, [Flow(FlowDirection.In)] SurfaceDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1495, Column 25 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceCreateSurface")] + public unsafe partial Surface* InstanceCreateSurface(ref Instance instance, [Flow(FlowDirection.In)] in SurfaceDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1496, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceProcessEvents")] + public unsafe partial void InstanceProcessEvents(Instance* instance); + + /// To be documented. + [NativeName("Src", "Line 1496, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceProcessEvents")] + public partial void InstanceProcessEvents(ref Instance instance); + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public unsafe partial void InstanceRequestAdapter(Instance* instance, [Flow(FlowDirection.In)] RequestAdapterOptions* options, PfnRequestAdapterCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public unsafe partial void InstanceRequestAdapter(Instance* instance, [Flow(FlowDirection.In)] RequestAdapterOptions* options, PfnRequestAdapterCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public unsafe partial void InstanceRequestAdapter(Instance* instance, [Flow(FlowDirection.In)] in RequestAdapterOptions options, PfnRequestAdapterCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public unsafe partial void InstanceRequestAdapter(Instance* instance, [Flow(FlowDirection.In)] in RequestAdapterOptions options, PfnRequestAdapterCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public unsafe partial void InstanceRequestAdapter(ref Instance instance, [Flow(FlowDirection.In)] RequestAdapterOptions* options, PfnRequestAdapterCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public unsafe partial void InstanceRequestAdapter(ref Instance instance, [Flow(FlowDirection.In)] RequestAdapterOptions* options, PfnRequestAdapterCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public unsafe partial void InstanceRequestAdapter(ref Instance instance, [Flow(FlowDirection.In)] in RequestAdapterOptions options, PfnRequestAdapterCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuInstanceRequestAdapter")] + public partial void InstanceRequestAdapter(ref Instance instance, [Flow(FlowDirection.In)] in RequestAdapterOptions options, PfnRequestAdapterCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutSetLabel")] + public unsafe partial void PipelineLayoutSetLabel(PipelineLayout* pipelineLayout, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutSetLabel")] + public unsafe partial void PipelineLayoutSetLabel(PipelineLayout* pipelineLayout, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutSetLabel")] + public unsafe partial void PipelineLayoutSetLabel(PipelineLayout* pipelineLayout, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutSetLabel")] + public unsafe partial void PipelineLayoutSetLabel(ref PipelineLayout pipelineLayout, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutSetLabel")] + public partial void PipelineLayoutSetLabel(ref PipelineLayout pipelineLayout, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuPipelineLayoutSetLabel")] + public partial void PipelineLayoutSetLabel(ref PipelineLayout pipelineLayout, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1503, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetDestroy")] + public unsafe partial void QuerySetDestroy(QuerySet* querySet); + + /// To be documented. + [NativeName("Src", "Line 1503, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetDestroy")] + public partial void QuerySetDestroy(ref QuerySet querySet); + + /// To be documented. + [NativeName("Src", "Line 1504, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetGetCount")] + public unsafe partial uint QuerySetGetCount(QuerySet* querySet); + + /// To be documented. + [NativeName("Src", "Line 1504, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetGetCount")] + public partial uint QuerySetGetCount(ref QuerySet querySet); + + /// To be documented. + [NativeName("Src", "Line 1505, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetGetType")] + public unsafe partial QueryType QuerySetGetType(QuerySet* querySet); + + /// To be documented. + [NativeName("Src", "Line 1505, Column 27 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetGetType")] + public partial QueryType QuerySetGetType(ref QuerySet querySet); + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetSetLabel")] + public unsafe partial void QuerySetSetLabel(QuerySet* querySet, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetSetLabel")] + public unsafe partial void QuerySetSetLabel(QuerySet* querySet, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetSetLabel")] + public unsafe partial void QuerySetSetLabel(QuerySet* querySet, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetSetLabel")] + public unsafe partial void QuerySetSetLabel(ref QuerySet querySet, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetSetLabel")] + public partial void QuerySetSetLabel(ref QuerySet querySet, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQuerySetSetLabel")] + public partial void QuerySetSetLabel(ref QuerySet querySet, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1509, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueOnSubmittedWorkDone")] + public unsafe partial void QueueOnSubmittedWorkDone(Queue* queue, PfnQueueWorkDoneCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1509, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueOnSubmittedWorkDone")] + public unsafe partial void QueueOnSubmittedWorkDone(Queue* queue, PfnQueueWorkDoneCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1509, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueOnSubmittedWorkDone")] + public unsafe partial void QueueOnSubmittedWorkDone(ref Queue queue, PfnQueueWorkDoneCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1509, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueOnSubmittedWorkDone")] + public partial void QueueOnSubmittedWorkDone(ref Queue queue, PfnQueueWorkDoneCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSetLabel")] + public unsafe partial void QueueSetLabel(Queue* queue, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSetLabel")] + public unsafe partial void QueueSetLabel(Queue* queue, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSetLabel")] + public unsafe partial void QueueSetLabel(Queue* queue, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSetLabel")] + public unsafe partial void QueueSetLabel(ref Queue queue, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSetLabel")] + public partial void QueueSetLabel(ref Queue queue, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSetLabel")] + public partial void QueueSetLabel(ref Queue queue, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1511, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmit")] + public unsafe partial void QueueSubmit(Queue* queue, uint commandCount, CommandBuffer** commands); + + /// To be documented. + [NativeName("Src", "Line 1511, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmit")] + public unsafe partial void QueueSubmit(Queue* queue, uint commandCount, ref CommandBuffer* commands); + + /// To be documented. + [NativeName("Src", "Line 1511, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmit")] + public unsafe partial void QueueSubmit(ref Queue queue, uint commandCount, CommandBuffer** commands); + + /// To be documented. + [NativeName("Src", "Line 1511, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueSubmit")] + public unsafe partial void QueueSubmit(ref Queue queue, uint commandCount, ref CommandBuffer* commands); + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public unsafe partial void QueueWriteBuffer(Queue* queue, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] void* data, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public unsafe partial void QueueWriteBuffer(Queue* queue, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in T0 data, nuint size) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public unsafe partial void QueueWriteBuffer(Queue* queue, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] void* data, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public unsafe partial void QueueWriteBuffer(Queue* queue, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in T0 data, nuint size) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public unsafe partial void QueueWriteBuffer(ref Queue queue, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] void* data, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public unsafe partial void QueueWriteBuffer(ref Queue queue, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in T0 data, nuint size) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public unsafe partial void QueueWriteBuffer(ref Queue queue, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] void* data, nuint size); + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteBuffer")] + public partial void QueueWriteBuffer(ref Queue queue, ref Buffer buffer, ulong bufferOffset, [Flow(FlowDirection.In)] in T0 data, nuint size) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(Queue* queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize); + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public unsafe partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuQueueWriteTexture")] + public partial void QueueWriteTexture(ref Queue queue, [Flow(FlowDirection.In)] in ImageCopyTexture destination, [Flow(FlowDirection.In)] in T0 data, nuint dataSize, [Flow(FlowDirection.In)] in TextureDataLayout dataLayout, [Flow(FlowDirection.In)] in Extent3D writeSize) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1516, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDraw")] + public unsafe partial void RenderBundleEncoderDraw(RenderBundleEncoder* renderBundleEncoder, uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1516, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDraw")] + public partial void RenderBundleEncoderDraw(ref RenderBundleEncoder renderBundleEncoder, uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1517, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndexed")] + public unsafe partial void RenderBundleEncoderDrawIndexed(RenderBundleEncoder* renderBundleEncoder, uint indexCount, uint instanceCount, uint firstIndex, int baseVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1517, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndexed")] + public partial void RenderBundleEncoderDrawIndexed(ref RenderBundleEncoder renderBundleEncoder, uint indexCount, uint instanceCount, uint firstIndex, int baseVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1518, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndexedIndirect")] + public unsafe partial void RenderBundleEncoderDrawIndexedIndirect(RenderBundleEncoder* renderBundleEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1518, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndexedIndirect")] + public unsafe partial void RenderBundleEncoderDrawIndexedIndirect(RenderBundleEncoder* renderBundleEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1518, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndexedIndirect")] + public unsafe partial void RenderBundleEncoderDrawIndexedIndirect(ref RenderBundleEncoder renderBundleEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1518, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndexedIndirect")] + public partial void RenderBundleEncoderDrawIndexedIndirect(ref RenderBundleEncoder renderBundleEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1519, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndirect")] + public unsafe partial void RenderBundleEncoderDrawIndirect(RenderBundleEncoder* renderBundleEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1519, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndirect")] + public unsafe partial void RenderBundleEncoderDrawIndirect(RenderBundleEncoder* renderBundleEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1519, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndirect")] + public unsafe partial void RenderBundleEncoderDrawIndirect(ref RenderBundleEncoder renderBundleEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1519, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderDrawIndirect")] + public partial void RenderBundleEncoderDrawIndirect(ref RenderBundleEncoder renderBundleEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1520, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderFinish")] + public unsafe partial RenderBundle* RenderBundleEncoderFinish(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] RenderBundleDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1520, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderFinish")] + public unsafe partial RenderBundle* RenderBundleEncoderFinish(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] in RenderBundleDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1520, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderFinish")] + public unsafe partial RenderBundle* RenderBundleEncoderFinish(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] RenderBundleDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1520, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderFinish")] + public unsafe partial RenderBundle* RenderBundleEncoderFinish(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] in RenderBundleDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderInsertDebugMarker")] + public unsafe partial void RenderBundleEncoderInsertDebugMarker(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderInsertDebugMarker")] + public unsafe partial void RenderBundleEncoderInsertDebugMarker(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderInsertDebugMarker")] + public unsafe partial void RenderBundleEncoderInsertDebugMarker(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderInsertDebugMarker")] + public unsafe partial void RenderBundleEncoderInsertDebugMarker(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderInsertDebugMarker")] + public partial void RenderBundleEncoderInsertDebugMarker(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderInsertDebugMarker")] + public partial void RenderBundleEncoderInsertDebugMarker(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1522, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPopDebugGroup")] + public unsafe partial void RenderBundleEncoderPopDebugGroup(RenderBundleEncoder* renderBundleEncoder); + + /// To be documented. + [NativeName("Src", "Line 1522, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPopDebugGroup")] + public partial void RenderBundleEncoderPopDebugGroup(ref RenderBundleEncoder renderBundleEncoder); + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPushDebugGroup")] + public unsafe partial void RenderBundleEncoderPushDebugGroup(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPushDebugGroup")] + public unsafe partial void RenderBundleEncoderPushDebugGroup(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPushDebugGroup")] + public unsafe partial void RenderBundleEncoderPushDebugGroup(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPushDebugGroup")] + public unsafe partial void RenderBundleEncoderPushDebugGroup(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPushDebugGroup")] + public partial void RenderBundleEncoderPushDebugGroup(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderPushDebugGroup")] + public partial void RenderBundleEncoderPushDebugGroup(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public unsafe partial void RenderBundleEncoderSetBindGroup(RenderBundleEncoder* renderBundleEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public unsafe partial void RenderBundleEncoderSetBindGroup(RenderBundleEncoder* renderBundleEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public unsafe partial void RenderBundleEncoderSetBindGroup(RenderBundleEncoder* renderBundleEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public unsafe partial void RenderBundleEncoderSetBindGroup(RenderBundleEncoder* renderBundleEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public unsafe partial void RenderBundleEncoderSetBindGroup(ref RenderBundleEncoder renderBundleEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public unsafe partial void RenderBundleEncoderSetBindGroup(ref RenderBundleEncoder renderBundleEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public unsafe partial void RenderBundleEncoderSetBindGroup(ref RenderBundleEncoder renderBundleEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetBindGroup")] + public partial void RenderBundleEncoderSetBindGroup(ref RenderBundleEncoder renderBundleEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1525, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetIndexBuffer")] + public unsafe partial void RenderBundleEncoderSetIndexBuffer(RenderBundleEncoder* renderBundleEncoder, Buffer* buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1525, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetIndexBuffer")] + public unsafe partial void RenderBundleEncoderSetIndexBuffer(RenderBundleEncoder* renderBundleEncoder, ref Buffer buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1525, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetIndexBuffer")] + public unsafe partial void RenderBundleEncoderSetIndexBuffer(ref RenderBundleEncoder renderBundleEncoder, Buffer* buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1525, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetIndexBuffer")] + public partial void RenderBundleEncoderSetIndexBuffer(ref RenderBundleEncoder renderBundleEncoder, ref Buffer buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetLabel")] + public unsafe partial void RenderBundleEncoderSetLabel(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetLabel")] + public unsafe partial void RenderBundleEncoderSetLabel(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetLabel")] + public unsafe partial void RenderBundleEncoderSetLabel(RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetLabel")] + public unsafe partial void RenderBundleEncoderSetLabel(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetLabel")] + public partial void RenderBundleEncoderSetLabel(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetLabel")] + public partial void RenderBundleEncoderSetLabel(ref RenderBundleEncoder renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1527, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetPipeline")] + public unsafe partial void RenderBundleEncoderSetPipeline(RenderBundleEncoder* renderBundleEncoder, RenderPipeline* pipeline); + + /// To be documented. + [NativeName("Src", "Line 1527, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetPipeline")] + public unsafe partial void RenderBundleEncoderSetPipeline(RenderBundleEncoder* renderBundleEncoder, ref RenderPipeline pipeline); + + /// To be documented. + [NativeName("Src", "Line 1527, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetPipeline")] + public unsafe partial void RenderBundleEncoderSetPipeline(ref RenderBundleEncoder renderBundleEncoder, RenderPipeline* pipeline); + + /// To be documented. + [NativeName("Src", "Line 1527, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetPipeline")] + public partial void RenderBundleEncoderSetPipeline(ref RenderBundleEncoder renderBundleEncoder, ref RenderPipeline pipeline); + + /// To be documented. + [NativeName("Src", "Line 1528, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetVertexBuffer")] + public unsafe partial void RenderBundleEncoderSetVertexBuffer(RenderBundleEncoder* renderBundleEncoder, uint slot, Buffer* buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1528, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetVertexBuffer")] + public unsafe partial void RenderBundleEncoderSetVertexBuffer(RenderBundleEncoder* renderBundleEncoder, uint slot, ref Buffer buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1528, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetVertexBuffer")] + public unsafe partial void RenderBundleEncoderSetVertexBuffer(ref RenderBundleEncoder renderBundleEncoder, uint slot, Buffer* buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1528, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderBundleEncoderSetVertexBuffer")] + public partial void RenderBundleEncoderSetVertexBuffer(ref RenderBundleEncoder renderBundleEncoder, uint slot, ref Buffer buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1531, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderBeginOcclusionQuery")] + public unsafe partial void RenderPassEncoderBeginOcclusionQuery(RenderPassEncoder* renderPassEncoder, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1531, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderBeginOcclusionQuery")] + public partial void RenderPassEncoderBeginOcclusionQuery(ref RenderPassEncoder renderPassEncoder, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1532, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderBeginPipelineStatisticsQuery")] + public unsafe partial void RenderPassEncoderBeginPipelineStatisticsQuery(RenderPassEncoder* renderPassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1532, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderBeginPipelineStatisticsQuery")] + public unsafe partial void RenderPassEncoderBeginPipelineStatisticsQuery(RenderPassEncoder* renderPassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1532, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderBeginPipelineStatisticsQuery")] + public unsafe partial void RenderPassEncoderBeginPipelineStatisticsQuery(ref RenderPassEncoder renderPassEncoder, QuerySet* querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1532, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderBeginPipelineStatisticsQuery")] + public partial void RenderPassEncoderBeginPipelineStatisticsQuery(ref RenderPassEncoder renderPassEncoder, ref QuerySet querySet, uint queryIndex); + + /// To be documented. + [NativeName("Src", "Line 1533, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDraw")] + public unsafe partial void RenderPassEncoderDraw(RenderPassEncoder* renderPassEncoder, uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1533, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDraw")] + public partial void RenderPassEncoderDraw(ref RenderPassEncoder renderPassEncoder, uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1534, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndexed")] + public unsafe partial void RenderPassEncoderDrawIndexed(RenderPassEncoder* renderPassEncoder, uint indexCount, uint instanceCount, uint firstIndex, int baseVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1534, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndexed")] + public partial void RenderPassEncoderDrawIndexed(ref RenderPassEncoder renderPassEncoder, uint indexCount, uint instanceCount, uint firstIndex, int baseVertex, uint firstInstance); + + /// To be documented. + [NativeName("Src", "Line 1535, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndexedIndirect")] + public unsafe partial void RenderPassEncoderDrawIndexedIndirect(RenderPassEncoder* renderPassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1535, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndexedIndirect")] + public unsafe partial void RenderPassEncoderDrawIndexedIndirect(RenderPassEncoder* renderPassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1535, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndexedIndirect")] + public unsafe partial void RenderPassEncoderDrawIndexedIndirect(ref RenderPassEncoder renderPassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1535, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndexedIndirect")] + public partial void RenderPassEncoderDrawIndexedIndirect(ref RenderPassEncoder renderPassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1536, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndirect")] + public unsafe partial void RenderPassEncoderDrawIndirect(RenderPassEncoder* renderPassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1536, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndirect")] + public unsafe partial void RenderPassEncoderDrawIndirect(RenderPassEncoder* renderPassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1536, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndirect")] + public unsafe partial void RenderPassEncoderDrawIndirect(ref RenderPassEncoder renderPassEncoder, Buffer* indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1536, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderDrawIndirect")] + public partial void RenderPassEncoderDrawIndirect(ref RenderPassEncoder renderPassEncoder, ref Buffer indirectBuffer, ulong indirectOffset); + + /// To be documented. + [NativeName("Src", "Line 1537, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEnd")] + public unsafe partial void RenderPassEncoderEnd(RenderPassEncoder* renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1537, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEnd")] + public partial void RenderPassEncoderEnd(ref RenderPassEncoder renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1538, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEndOcclusionQuery")] + public unsafe partial void RenderPassEncoderEndOcclusionQuery(RenderPassEncoder* renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1538, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEndOcclusionQuery")] + public partial void RenderPassEncoderEndOcclusionQuery(ref RenderPassEncoder renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1539, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEndPipelineStatisticsQuery")] + public unsafe partial void RenderPassEncoderEndPipelineStatisticsQuery(RenderPassEncoder* renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1539, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderEndPipelineStatisticsQuery")] + public partial void RenderPassEncoderEndPipelineStatisticsQuery(ref RenderPassEncoder renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1540, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderExecuteBundles")] + public unsafe partial void RenderPassEncoderExecuteBundles(RenderPassEncoder* renderPassEncoder, uint bundlesCount, RenderBundle** bundles); + + /// To be documented. + [NativeName("Src", "Line 1540, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderExecuteBundles")] + public unsafe partial void RenderPassEncoderExecuteBundles(RenderPassEncoder* renderPassEncoder, uint bundlesCount, ref RenderBundle* bundles); + + /// To be documented. + [NativeName("Src", "Line 1540, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderExecuteBundles")] + public unsafe partial void RenderPassEncoderExecuteBundles(ref RenderPassEncoder renderPassEncoder, uint bundlesCount, RenderBundle** bundles); + + /// To be documented. + [NativeName("Src", "Line 1540, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderExecuteBundles")] + public unsafe partial void RenderPassEncoderExecuteBundles(ref RenderPassEncoder renderPassEncoder, uint bundlesCount, ref RenderBundle* bundles); + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderInsertDebugMarker")] + public unsafe partial void RenderPassEncoderInsertDebugMarker(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderInsertDebugMarker")] + public unsafe partial void RenderPassEncoderInsertDebugMarker(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderInsertDebugMarker")] + public unsafe partial void RenderPassEncoderInsertDebugMarker(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderInsertDebugMarker")] + public unsafe partial void RenderPassEncoderInsertDebugMarker(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] byte* markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderInsertDebugMarker")] + public partial void RenderPassEncoderInsertDebugMarker(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] in byte markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderInsertDebugMarker")] + public partial void RenderPassEncoderInsertDebugMarker(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel); + + /// To be documented. + [NativeName("Src", "Line 1542, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPopDebugGroup")] + public unsafe partial void RenderPassEncoderPopDebugGroup(RenderPassEncoder* renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1542, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPopDebugGroup")] + public partial void RenderPassEncoderPopDebugGroup(ref RenderPassEncoder renderPassEncoder); + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPushDebugGroup")] + public unsafe partial void RenderPassEncoderPushDebugGroup(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPushDebugGroup")] + public unsafe partial void RenderPassEncoderPushDebugGroup(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPushDebugGroup")] + public unsafe partial void RenderPassEncoderPushDebugGroup(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPushDebugGroup")] + public unsafe partial void RenderPassEncoderPushDebugGroup(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] byte* groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPushDebugGroup")] + public partial void RenderPassEncoderPushDebugGroup(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] in byte groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderPushDebugGroup")] + public partial void RenderPassEncoderPushDebugGroup(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public unsafe partial void RenderPassEncoderSetBindGroup(RenderPassEncoder* renderPassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public unsafe partial void RenderPassEncoderSetBindGroup(RenderPassEncoder* renderPassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public unsafe partial void RenderPassEncoderSetBindGroup(RenderPassEncoder* renderPassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public unsafe partial void RenderPassEncoderSetBindGroup(RenderPassEncoder* renderPassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public unsafe partial void RenderPassEncoderSetBindGroup(ref RenderPassEncoder renderPassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public unsafe partial void RenderPassEncoderSetBindGroup(ref RenderPassEncoder renderPassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public unsafe partial void RenderPassEncoderSetBindGroup(ref RenderPassEncoder renderPassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBindGroup")] + public partial void RenderPassEncoderSetBindGroup(ref RenderPassEncoder renderPassEncoder, uint groupIndex, ref BindGroup group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] in uint dynamicOffsets); + + /// To be documented. + [NativeName("Src", "Line 1545, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBlendConstant")] + public unsafe partial void RenderPassEncoderSetBlendConstant(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] Color* color); + + /// To be documented. + [NativeName("Src", "Line 1545, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBlendConstant")] + public unsafe partial void RenderPassEncoderSetBlendConstant(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] in Color color); + + /// To be documented. + [NativeName("Src", "Line 1545, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBlendConstant")] + public unsafe partial void RenderPassEncoderSetBlendConstant(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] Color* color); + + /// To be documented. + [NativeName("Src", "Line 1545, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetBlendConstant")] + public partial void RenderPassEncoderSetBlendConstant(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] in Color color); + + /// To be documented. + [NativeName("Src", "Line 1546, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetIndexBuffer")] + public unsafe partial void RenderPassEncoderSetIndexBuffer(RenderPassEncoder* renderPassEncoder, Buffer* buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1546, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetIndexBuffer")] + public unsafe partial void RenderPassEncoderSetIndexBuffer(RenderPassEncoder* renderPassEncoder, ref Buffer buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1546, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetIndexBuffer")] + public unsafe partial void RenderPassEncoderSetIndexBuffer(ref RenderPassEncoder renderPassEncoder, Buffer* buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1546, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetIndexBuffer")] + public partial void RenderPassEncoderSetIndexBuffer(ref RenderPassEncoder renderPassEncoder, ref Buffer buffer, IndexFormat format, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetLabel")] + public unsafe partial void RenderPassEncoderSetLabel(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetLabel")] + public unsafe partial void RenderPassEncoderSetLabel(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetLabel")] + public unsafe partial void RenderPassEncoderSetLabel(RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetLabel")] + public unsafe partial void RenderPassEncoderSetLabel(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetLabel")] + public partial void RenderPassEncoderSetLabel(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetLabel")] + public partial void RenderPassEncoderSetLabel(ref RenderPassEncoder renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1548, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPipeline")] + public unsafe partial void RenderPassEncoderSetPipeline(RenderPassEncoder* renderPassEncoder, RenderPipeline* pipeline); + + /// To be documented. + [NativeName("Src", "Line 1548, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPipeline")] + public unsafe partial void RenderPassEncoderSetPipeline(RenderPassEncoder* renderPassEncoder, ref RenderPipeline pipeline); + + /// To be documented. + [NativeName("Src", "Line 1548, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPipeline")] + public unsafe partial void RenderPassEncoderSetPipeline(ref RenderPassEncoder renderPassEncoder, RenderPipeline* pipeline); + + /// To be documented. + [NativeName("Src", "Line 1548, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetPipeline")] + public partial void RenderPassEncoderSetPipeline(ref RenderPassEncoder renderPassEncoder, ref RenderPipeline pipeline); + + /// To be documented. + [NativeName("Src", "Line 1549, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetScissorRect")] + public unsafe partial void RenderPassEncoderSetScissorRect(RenderPassEncoder* renderPassEncoder, uint x, uint y, uint width, uint height); + + /// To be documented. + [NativeName("Src", "Line 1549, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetScissorRect")] + public partial void RenderPassEncoderSetScissorRect(ref RenderPassEncoder renderPassEncoder, uint x, uint y, uint width, uint height); + + /// To be documented. + [NativeName("Src", "Line 1550, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetStencilReference")] + public unsafe partial void RenderPassEncoderSetStencilReference(RenderPassEncoder* renderPassEncoder, uint reference); + + /// To be documented. + [NativeName("Src", "Line 1550, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetStencilReference")] + public partial void RenderPassEncoderSetStencilReference(ref RenderPassEncoder renderPassEncoder, uint reference); + + /// To be documented. + [NativeName("Src", "Line 1551, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetVertexBuffer")] + public unsafe partial void RenderPassEncoderSetVertexBuffer(RenderPassEncoder* renderPassEncoder, uint slot, Buffer* buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1551, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetVertexBuffer")] + public unsafe partial void RenderPassEncoderSetVertexBuffer(RenderPassEncoder* renderPassEncoder, uint slot, ref Buffer buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1551, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetVertexBuffer")] + public unsafe partial void RenderPassEncoderSetVertexBuffer(ref RenderPassEncoder renderPassEncoder, uint slot, Buffer* buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1551, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetVertexBuffer")] + public partial void RenderPassEncoderSetVertexBuffer(ref RenderPassEncoder renderPassEncoder, uint slot, ref Buffer buffer, ulong offset, ulong size); + + /// To be documented. + [NativeName("Src", "Line 1552, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetViewport")] + public unsafe partial void RenderPassEncoderSetViewport(RenderPassEncoder* renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth); + + /// To be documented. + [NativeName("Src", "Line 1552, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPassEncoderSetViewport")] + public partial void RenderPassEncoderSetViewport(ref RenderPassEncoder renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth); + + /// To be documented. + [NativeName("Src", "Line 1555, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineGetBindGroupLayout")] + public unsafe partial BindGroupLayout* RenderPipelineGetBindGroupLayout(RenderPipeline* renderPipeline, uint groupIndex); + + /// To be documented. + [NativeName("Src", "Line 1555, Column 33 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineGetBindGroupLayout")] + public unsafe partial BindGroupLayout* RenderPipelineGetBindGroupLayout(ref RenderPipeline renderPipeline, uint groupIndex); + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineSetLabel")] + public unsafe partial void RenderPipelineSetLabel(RenderPipeline* renderPipeline, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineSetLabel")] + public unsafe partial void RenderPipelineSetLabel(RenderPipeline* renderPipeline, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineSetLabel")] + public unsafe partial void RenderPipelineSetLabel(RenderPipeline* renderPipeline, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineSetLabel")] + public unsafe partial void RenderPipelineSetLabel(ref RenderPipeline renderPipeline, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineSetLabel")] + public partial void RenderPipelineSetLabel(ref RenderPipeline renderPipeline, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuRenderPipelineSetLabel")] + public partial void RenderPipelineSetLabel(ref RenderPipeline renderPipeline, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerSetLabel")] + public unsafe partial void SamplerSetLabel(Sampler* sampler, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerSetLabel")] + public unsafe partial void SamplerSetLabel(Sampler* sampler, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerSetLabel")] + public unsafe partial void SamplerSetLabel(Sampler* sampler, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerSetLabel")] + public unsafe partial void SamplerSetLabel(ref Sampler sampler, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerSetLabel")] + public partial void SamplerSetLabel(ref Sampler sampler, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSamplerSetLabel")] + public partial void SamplerSetLabel(ref Sampler sampler, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1562, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleGetCompilationInfo")] + public unsafe partial void ShaderModuleGetCompilationInfo(ShaderModule* shaderModule, PfnCompilationInfoCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1562, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleGetCompilationInfo")] + public unsafe partial void ShaderModuleGetCompilationInfo(ShaderModule* shaderModule, PfnCompilationInfoCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1562, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleGetCompilationInfo")] + public unsafe partial void ShaderModuleGetCompilationInfo(ref ShaderModule shaderModule, PfnCompilationInfoCallback callback, void* userdata); + + /// To be documented. + [NativeName("Src", "Line 1562, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleGetCompilationInfo")] + public partial void ShaderModuleGetCompilationInfo(ref ShaderModule shaderModule, PfnCompilationInfoCallback callback, ref T0 userdata) where T0 : unmanaged; + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleSetLabel")] + public unsafe partial void ShaderModuleSetLabel(ShaderModule* shaderModule, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleSetLabel")] + public unsafe partial void ShaderModuleSetLabel(ShaderModule* shaderModule, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleSetLabel")] + public unsafe partial void ShaderModuleSetLabel(ShaderModule* shaderModule, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleSetLabel")] + public unsafe partial void ShaderModuleSetLabel(ref ShaderModule shaderModule, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleSetLabel")] + public partial void ShaderModuleSetLabel(ref ShaderModule shaderModule, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuShaderModuleSetLabel")] + public partial void ShaderModuleSetLabel(ref ShaderModule shaderModule, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1566, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetPreferredFormat")] + public unsafe partial TextureFormat SurfaceGetPreferredFormat(Surface* surface, Adapter* adapter); + + /// To be documented. + [NativeName("Src", "Line 1566, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetPreferredFormat")] + public unsafe partial TextureFormat SurfaceGetPreferredFormat(Surface* surface, ref Adapter adapter); + + /// To be documented. + [NativeName("Src", "Line 1566, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetPreferredFormat")] + public unsafe partial TextureFormat SurfaceGetPreferredFormat(ref Surface surface, Adapter* adapter); + + /// To be documented. + [NativeName("Src", "Line 1566, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSurfaceGetPreferredFormat")] + public partial TextureFormat SurfaceGetPreferredFormat(ref Surface surface, ref Adapter adapter); + + /// To be documented. + [NativeName("Src", "Line 1569, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainGetCurrentTextureView")] + public unsafe partial TextureView* SwapChainGetCurrentTextureView(SwapChain* swapChain); + + /// To be documented. + [NativeName("Src", "Line 1569, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainGetCurrentTextureView")] + public unsafe partial TextureView* SwapChainGetCurrentTextureView(ref SwapChain swapChain); + + /// To be documented. + [NativeName("Src", "Line 1570, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainPresent")] + public unsafe partial void SwapChainPresent(SwapChain* swapChain); + + /// To be documented. + [NativeName("Src", "Line 1570, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuSwapChainPresent")] + public partial void SwapChainPresent(ref SwapChain swapChain); + + /// To be documented. + [NativeName("Src", "Line 1573, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureCreateView")] + public unsafe partial TextureView* TextureCreateView(Texture* texture, [Flow(FlowDirection.In)] TextureViewDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1573, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureCreateView")] + public unsafe partial TextureView* TextureCreateView(Texture* texture, [Flow(FlowDirection.In)] in TextureViewDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1573, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureCreateView")] + public unsafe partial TextureView* TextureCreateView(ref Texture texture, [Flow(FlowDirection.In)] TextureViewDescriptor* descriptor); + + /// To be documented. + [NativeName("Src", "Line 1573, Column 29 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureCreateView")] + public unsafe partial TextureView* TextureCreateView(ref Texture texture, [Flow(FlowDirection.In)] in TextureViewDescriptor descriptor); + + /// To be documented. + [NativeName("Src", "Line 1574, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureDestroy")] + public unsafe partial void TextureDestroy(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1574, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureDestroy")] + public partial void TextureDestroy(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1575, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetDepthOrArrayLayers")] + public unsafe partial uint TextureGetDepthOrArrayLayers(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1575, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetDepthOrArrayLayers")] + public partial uint TextureGetDepthOrArrayLayers(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1576, Column 34 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetDimension")] + public unsafe partial TextureDimension TextureGetDimension(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1576, Column 34 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetDimension")] + public partial TextureDimension TextureGetDimension(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1577, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetFormat")] + public unsafe partial TextureFormat TextureGetFormat(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1577, Column 31 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetFormat")] + public partial TextureFormat TextureGetFormat(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1578, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetHeight")] + public unsafe partial uint TextureGetHeight(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1578, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetHeight")] + public partial uint TextureGetHeight(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1579, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetMipLevelCount")] + public unsafe partial uint TextureGetMipLevelCount(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1579, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetMipLevelCount")] + public partial uint TextureGetMipLevelCount(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1580, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetSampleCount")] + public unsafe partial uint TextureGetSampleCount(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1580, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetSampleCount")] + public partial uint TextureGetSampleCount(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1581, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetUsage")] + public unsafe partial TextureUsage TextureGetUsage(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1581, Column 30 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetUsage")] + public partial TextureUsage TextureGetUsage(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1582, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetWidth")] + public unsafe partial uint TextureGetWidth(Texture* texture); + + /// To be documented. + [NativeName("Src", "Line 1582, Column 22 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureGetWidth")] + public partial uint TextureGetWidth(ref Texture texture); + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureSetLabel")] + public unsafe partial void TextureSetLabel(Texture* texture, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureSetLabel")] + public unsafe partial void TextureSetLabel(Texture* texture, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureSetLabel")] + public unsafe partial void TextureSetLabel(Texture* texture, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureSetLabel")] + public unsafe partial void TextureSetLabel(ref Texture texture, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureSetLabel")] + public partial void TextureSetLabel(ref Texture texture, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureSetLabel")] + public partial void TextureSetLabel(ref Texture texture, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewSetLabel")] + public unsafe partial void TextureViewSetLabel(TextureView* textureView, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewSetLabel")] + public unsafe partial void TextureViewSetLabel(TextureView* textureView, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewSetLabel")] + public unsafe partial void TextureViewSetLabel(TextureView* textureView, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewSetLabel")] + public unsafe partial void TextureViewSetLabel(ref TextureView textureView, [Flow(FlowDirection.In)] byte* label); + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewSetLabel")] + public partial void TextureViewSetLabel(ref TextureView textureView, [Flow(FlowDirection.In)] in byte label); + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + [NativeApi(EntryPoint = "wgpuTextureViewSetLabel")] + public partial void TextureViewSetLabel(ref TextureView textureView, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label); + + + public WebGPU(INativeContext ctx) + : base(ctx) + { + } + } +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/WebGPULibraryNameContainer.cs b/src/WebGPU/Silk.NET.WebGPU/WebGPULibraryNameContainer.cs new file mode 100644 index 0000000000..d552b89ba7 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/WebGPULibraryNameContainer.cs @@ -0,0 +1,31 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using Silk.NET.Core.Loader; + +namespace Silk.NET.WebGPU +{ + /// + /// Contains the library name of webgpu. + /// + internal class WebGPULibraryNameContainer : SearchPathContainer + { + /// + public override string Linux => "libwgpu.so"; + + /// + public override string MacOS => "libwgpu.dylib"; + + /// + public override string Android => "libwgpu.so"; + + /// + public override string IOS => ""; + + /// + public override string Windows64 => "libwgpu.dll"; + + /// + public override string Windows86 => "libwgpu.dll"; + } +} diff --git a/src/WebGPU/Silk.NET.WebGPU/WebGPUOverloads.gen.cs b/src/WebGPU/Silk.NET.WebGPU/WebGPUOverloads.gen.cs new file mode 100644 index 0000000000..126a273113 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/WebGPUOverloads.gen.cs @@ -0,0 +1,3645 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +using System; +using System.Runtime.InteropServices; +using System.Runtime.CompilerServices; +using System.Text; +using Silk.NET.Core; +using Silk.NET.Core.Native; +using Silk.NET.Core.Attributes; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Loader; + +#pragma warning disable 1591 + +namespace Silk.NET.WebGPU +{ + public static class WebGPUOverloads + { + /// To be documented. + [NativeName("Src", "Line 1405, Column 26 in webgpu.h")] + public static unsafe Instance* CreateInstance(this WebGPU thisApi, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.CreateInstance(in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + public static unsafe PfnProc GetProcAddress(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan procName) + { + // SpanOverloader + return thisApi.GetProcAddress(device, in procName.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + public static unsafe PfnProc GetProcAddress(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] byte* procName) + { + // SpanOverloader + return thisApi.GetProcAddress(ref device.GetPinnableReference(), procName); + } + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + public static unsafe PfnProc GetProcAddress(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan procName) + { + // SpanOverloader + return thisApi.GetProcAddress(ref device.GetPinnableReference(), in procName.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1406, Column 22 in webgpu.h")] + public static unsafe PfnProc GetProcAddress(this WebGPU thisApi, Span device, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string procName) + { + // SpanOverloader + return thisApi.GetProcAddress(ref device.GetPinnableReference(), procName); + } + + /// To be documented. + [NativeName("Src", "Line 1409, Column 20 in webgpu.h")] + public static unsafe nuint AdapterEnumerateFeatures(this WebGPU thisApi, Adapter* adapter, Span features) + { + // SpanOverloader + return thisApi.AdapterEnumerateFeatures(adapter, ref features.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1409, Column 20 in webgpu.h")] + public static unsafe nuint AdapterEnumerateFeatures(this WebGPU thisApi, Span adapter, FeatureName* features) + { + // SpanOverloader + return thisApi.AdapterEnumerateFeatures(ref adapter.GetPinnableReference(), features); + } + + /// To be documented. + [NativeName("Src", "Line 1409, Column 20 in webgpu.h")] + public static unsafe nuint AdapterEnumerateFeatures(this WebGPU thisApi, Span adapter, Span features) + { + // SpanOverloader + return thisApi.AdapterEnumerateFeatures(ref adapter.GetPinnableReference(), ref features.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1410, Column 18 in webgpu.h")] + public static unsafe bool AdapterGetLimits(this WebGPU thisApi, Adapter* adapter, Span limits) + { + // SpanOverloader + return thisApi.AdapterGetLimits(adapter, ref limits.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1410, Column 18 in webgpu.h")] + public static unsafe bool AdapterGetLimits(this WebGPU thisApi, Span adapter, SupportedLimits* limits) + { + // SpanOverloader + return thisApi.AdapterGetLimits(ref adapter.GetPinnableReference(), limits); + } + + /// To be documented. + [NativeName("Src", "Line 1410, Column 18 in webgpu.h")] + public static unsafe bool AdapterGetLimits(this WebGPU thisApi, Span adapter, Span limits) + { + // SpanOverloader + return thisApi.AdapterGetLimits(ref adapter.GetPinnableReference(), ref limits.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1411, Column 18 in webgpu.h")] + public static unsafe void AdapterGetProperties(this WebGPU thisApi, Adapter* adapter, Span properties) + { + // SpanOverloader + thisApi.AdapterGetProperties(adapter, ref properties.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1411, Column 18 in webgpu.h")] + public static unsafe void AdapterGetProperties(this WebGPU thisApi, Span adapter, AdapterProperties* properties) + { + // SpanOverloader + thisApi.AdapterGetProperties(ref adapter.GetPinnableReference(), properties); + } + + /// To be documented. + [NativeName("Src", "Line 1411, Column 18 in webgpu.h")] + public static unsafe void AdapterGetProperties(this WebGPU thisApi, Span adapter, Span properties) + { + // SpanOverloader + thisApi.AdapterGetProperties(ref adapter.GetPinnableReference(), ref properties.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1412, Column 18 in webgpu.h")] + public static unsafe bool AdapterHasFeature(this WebGPU thisApi, Span adapter, FeatureName feature) + { + // SpanOverloader + return thisApi.AdapterHasFeature(ref adapter.GetPinnableReference(), feature); + } + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + public static unsafe void AdapterRequestDevice(this WebGPU thisApi, Adapter* adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor, PfnRequestDeviceCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.AdapterRequestDevice(adapter, descriptor, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + public static unsafe void AdapterRequestDevice(this WebGPU thisApi, Adapter* adapter, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnRequestDeviceCallback callback, void* userdata) + { + // SpanOverloader + thisApi.AdapterRequestDevice(adapter, in descriptor.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + public static unsafe void AdapterRequestDevice(this WebGPU thisApi, Adapter* adapter, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnRequestDeviceCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.AdapterRequestDevice(adapter, in descriptor.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + public static unsafe void AdapterRequestDevice(this WebGPU thisApi, Span adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor, PfnRequestDeviceCallback callback, void* userdata) + { + // SpanOverloader + thisApi.AdapterRequestDevice(ref adapter.GetPinnableReference(), descriptor, callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + public static unsafe void AdapterRequestDevice(this WebGPU thisApi, Span adapter, [Flow(FlowDirection.In)] DeviceDescriptor* descriptor, PfnRequestDeviceCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.AdapterRequestDevice(ref adapter.GetPinnableReference(), descriptor, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + public static unsafe void AdapterRequestDevice(this WebGPU thisApi, Span adapter, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnRequestDeviceCallback callback, void* userdata) + { + // SpanOverloader + thisApi.AdapterRequestDevice(ref adapter.GetPinnableReference(), in descriptor.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1413, Column 18 in webgpu.h")] + public static unsafe void AdapterRequestDevice(this WebGPU thisApi, Span adapter, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnRequestDeviceCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.AdapterRequestDevice(ref adapter.GetPinnableReference(), in descriptor.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + public static unsafe void BindGroupSetLabel(this WebGPU thisApi, BindGroup* bindGroup, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.BindGroupSetLabel(bindGroup, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + public static unsafe void BindGroupSetLabel(this WebGPU thisApi, Span bindGroup, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.BindGroupSetLabel(ref bindGroup.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + public static unsafe void BindGroupSetLabel(this WebGPU thisApi, Span bindGroup, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.BindGroupSetLabel(ref bindGroup.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1416, Column 18 in webgpu.h")] + public static unsafe void BindGroupSetLabel(this WebGPU thisApi, Span bindGroup, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.BindGroupSetLabel(ref bindGroup.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + public static unsafe void BindGroupLayoutSetLabel(this WebGPU thisApi, BindGroupLayout* bindGroupLayout, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.BindGroupLayoutSetLabel(bindGroupLayout, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + public static unsafe void BindGroupLayoutSetLabel(this WebGPU thisApi, Span bindGroupLayout, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.BindGroupLayoutSetLabel(ref bindGroupLayout.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + public static unsafe void BindGroupLayoutSetLabel(this WebGPU thisApi, Span bindGroupLayout, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.BindGroupLayoutSetLabel(ref bindGroupLayout.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1419, Column 18 in webgpu.h")] + public static unsafe void BindGroupLayoutSetLabel(this WebGPU thisApi, Span bindGroupLayout, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.BindGroupLayoutSetLabel(ref bindGroupLayout.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1422, Column 18 in webgpu.h")] + public static unsafe void BufferDestroy(this WebGPU thisApi, Span buffer) + { + // SpanOverloader + thisApi.BufferDestroy(ref buffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1423, Column 26 in webgpu.h")] + public static unsafe void* BufferGetConstMappedRange(this WebGPU thisApi, Span buffer, nuint offset, nuint size) + { + // SpanOverloader + return thisApi.BufferGetConstMappedRange(ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1424, Column 20 in webgpu.h")] + public static unsafe void* BufferGetMappedRange(this WebGPU thisApi, Span buffer, nuint offset, nuint size) + { + // SpanOverloader + return thisApi.BufferGetMappedRange(ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1425, Column 22 in webgpu.h")] + public static unsafe ulong BufferGetSize(this WebGPU thisApi, Span buffer) + { + // SpanOverloader + return thisApi.BufferGetSize(ref buffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1426, Column 29 in webgpu.h")] + public static unsafe BufferUsage BufferGetUsage(this WebGPU thisApi, Span buffer) + { + // SpanOverloader + return thisApi.BufferGetUsage(ref buffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1427, Column 18 in webgpu.h")] + public static unsafe void BufferMapAsync(this WebGPU thisApi, Buffer* buffer, Silk.NET.WebGPU.MapMode mode, nuint offset, nuint size, PfnBufferMapCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.BufferMapAsync(buffer, mode, offset, size, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1427, Column 18 in webgpu.h")] + public static unsafe void BufferMapAsync(this WebGPU thisApi, Span buffer, Silk.NET.WebGPU.MapMode mode, nuint offset, nuint size, PfnBufferMapCallback callback, void* userdata) + { + // SpanOverloader + thisApi.BufferMapAsync(ref buffer.GetPinnableReference(), mode, offset, size, callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1427, Column 18 in webgpu.h")] + public static unsafe void BufferMapAsync(this WebGPU thisApi, Span buffer, Silk.NET.WebGPU.MapMode mode, nuint offset, nuint size, PfnBufferMapCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.BufferMapAsync(ref buffer.GetPinnableReference(), mode, offset, size, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + public static unsafe void BufferSetLabel(this WebGPU thisApi, Buffer* buffer, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.BufferSetLabel(buffer, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + public static unsafe void BufferSetLabel(this WebGPU thisApi, Span buffer, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.BufferSetLabel(ref buffer.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + public static unsafe void BufferSetLabel(this WebGPU thisApi, Span buffer, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.BufferSetLabel(ref buffer.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1428, Column 18 in webgpu.h")] + public static unsafe void BufferSetLabel(this WebGPU thisApi, Span buffer, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.BufferSetLabel(ref buffer.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1429, Column 18 in webgpu.h")] + public static unsafe void BufferUnmap(this WebGPU thisApi, Span buffer) + { + // SpanOverloader + thisApi.BufferUnmap(ref buffer.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + public static unsafe void CommandBufferSetLabel(this WebGPU thisApi, CommandBuffer* commandBuffer, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.CommandBufferSetLabel(commandBuffer, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + public static unsafe void CommandBufferSetLabel(this WebGPU thisApi, Span commandBuffer, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.CommandBufferSetLabel(ref commandBuffer.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + public static unsafe void CommandBufferSetLabel(this WebGPU thisApi, Span commandBuffer, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.CommandBufferSetLabel(ref commandBuffer.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1432, Column 18 in webgpu.h")] + public static unsafe void CommandBufferSetLabel(this WebGPU thisApi, Span commandBuffer, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.CommandBufferSetLabel(ref commandBuffer.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1435, Column 36 in webgpu.h")] + public static unsafe ComputePassEncoder* CommandEncoderBeginComputePass(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderBeginComputePass(commandEncoder, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1435, Column 36 in webgpu.h")] + public static unsafe ComputePassEncoder* CommandEncoderBeginComputePass(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ComputePassDescriptor* descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderBeginComputePass(ref commandEncoder.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1435, Column 36 in webgpu.h")] + public static unsafe ComputePassEncoder* CommandEncoderBeginComputePass(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderBeginComputePass(ref commandEncoder.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1436, Column 35 in webgpu.h")] + public static unsafe RenderPassEncoder* CommandEncoderBeginRenderPass(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderBeginRenderPass(commandEncoder, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1436, Column 35 in webgpu.h")] + public static unsafe RenderPassEncoder* CommandEncoderBeginRenderPass(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] RenderPassDescriptor* descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderBeginRenderPass(ref commandEncoder.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1436, Column 35 in webgpu.h")] + public static unsafe RenderPassEncoder* CommandEncoderBeginRenderPass(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderBeginRenderPass(ref commandEncoder.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1437, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderClearBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, Span buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderClearBuffer(commandEncoder, ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1437, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderClearBuffer(this WebGPU thisApi, Span commandEncoder, Buffer* buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderClearBuffer(ref commandEncoder.GetPinnableReference(), buffer, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1437, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderClearBuffer(this WebGPU thisApi, Span commandEncoder, Span buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderClearBuffer(ref commandEncoder.GetPinnableReference(), ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, Buffer* source, ulong sourceOffset, Span destination, ulong destinationOffset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToBuffer(commandEncoder, source, sourceOffset, ref destination.GetPinnableReference(), destinationOffset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, Span source, ulong sourceOffset, Buffer* destination, ulong destinationOffset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToBuffer(commandEncoder, ref source.GetPinnableReference(), sourceOffset, destination, destinationOffset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, Span source, ulong sourceOffset, Span destination, ulong destinationOffset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToBuffer(commandEncoder, ref source.GetPinnableReference(), sourceOffset, ref destination.GetPinnableReference(), destinationOffset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToBuffer(this WebGPU thisApi, Span commandEncoder, Buffer* source, ulong sourceOffset, Buffer* destination, ulong destinationOffset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToBuffer(ref commandEncoder.GetPinnableReference(), source, sourceOffset, destination, destinationOffset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToBuffer(this WebGPU thisApi, Span commandEncoder, Buffer* source, ulong sourceOffset, Span destination, ulong destinationOffset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToBuffer(ref commandEncoder.GetPinnableReference(), source, sourceOffset, ref destination.GetPinnableReference(), destinationOffset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToBuffer(this WebGPU thisApi, Span commandEncoder, Span source, ulong sourceOffset, Buffer* destination, ulong destinationOffset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToBuffer(ref commandEncoder.GetPinnableReference(), ref source.GetPinnableReference(), sourceOffset, destination, destinationOffset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1438, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToBuffer(this WebGPU thisApi, Span commandEncoder, Span source, ulong sourceOffset, Span destination, ulong destinationOffset, ulong size) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToBuffer(ref commandEncoder.GetPinnableReference(), ref source.GetPinnableReference(), sourceOffset, ref destination.GetPinnableReference(), destinationOffset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(commandEncoder, source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(commandEncoder, source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(commandEncoder, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(commandEncoder, in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(commandEncoder, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), source, destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyBuffer* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1439, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyBufferToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyBufferToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(commandEncoder, source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(commandEncoder, source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(commandEncoder, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(commandEncoder, in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(commandEncoder, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), source, destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyBuffer* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1440, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToBuffer(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToBuffer(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(commandEncoder, source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(commandEncoder, source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(commandEncoder, source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(commandEncoder, in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(commandEncoder, in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(commandEncoder, in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), source, destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), source, destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ImageCopyTexture* source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), source, in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), destination, in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] Extent3D* copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), copySize); + } + + /// To be documented. + [NativeName("Src", "Line 1441, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderCopyTextureToTexture(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan source, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan copySize) + { + // SpanOverloader + thisApi.CommandEncoderCopyTextureToTexture(ref commandEncoder.GetPinnableReference(), in source.GetPinnableReference(), in destination.GetPinnableReference(), in copySize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1442, Column 31 in webgpu.h")] + public static unsafe CommandBuffer* CommandEncoderFinish(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderFinish(commandEncoder, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1442, Column 31 in webgpu.h")] + public static unsafe CommandBuffer* CommandEncoderFinish(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] CommandBufferDescriptor* descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderFinish(ref commandEncoder.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1442, Column 31 in webgpu.h")] + public static unsafe CommandBuffer* CommandEncoderFinish(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.CommandEncoderFinish(ref commandEncoder.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderInsertDebugMarker(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.CommandEncoderInsertDebugMarker(commandEncoder, in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderInsertDebugMarker(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] byte* markerLabel) + { + // SpanOverloader + thisApi.CommandEncoderInsertDebugMarker(ref commandEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderInsertDebugMarker(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.CommandEncoderInsertDebugMarker(ref commandEncoder.GetPinnableReference(), in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1443, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderInsertDebugMarker(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel) + { + // SpanOverloader + thisApi.CommandEncoderInsertDebugMarker(ref commandEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1444, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderPopDebugGroup(this WebGPU thisApi, Span commandEncoder) + { + // SpanOverloader + thisApi.CommandEncoderPopDebugGroup(ref commandEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderPushDebugGroup(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.CommandEncoderPushDebugGroup(commandEncoder, in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderPushDebugGroup(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] byte* groupLabel) + { + // SpanOverloader + thisApi.CommandEncoderPushDebugGroup(ref commandEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderPushDebugGroup(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.CommandEncoderPushDebugGroup(ref commandEncoder.GetPinnableReference(), in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1445, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderPushDebugGroup(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel) + { + // SpanOverloader + thisApi.CommandEncoderPushDebugGroup(ref commandEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderResolveQuerySet(this WebGPU thisApi, CommandEncoder* commandEncoder, QuerySet* querySet, uint firstQuery, uint queryCount, Span destination, ulong destinationOffset) + { + // SpanOverloader + thisApi.CommandEncoderResolveQuerySet(commandEncoder, querySet, firstQuery, queryCount, ref destination.GetPinnableReference(), destinationOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderResolveQuerySet(this WebGPU thisApi, CommandEncoder* commandEncoder, Span querySet, uint firstQuery, uint queryCount, Buffer* destination, ulong destinationOffset) + { + // SpanOverloader + thisApi.CommandEncoderResolveQuerySet(commandEncoder, ref querySet.GetPinnableReference(), firstQuery, queryCount, destination, destinationOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderResolveQuerySet(this WebGPU thisApi, CommandEncoder* commandEncoder, Span querySet, uint firstQuery, uint queryCount, Span destination, ulong destinationOffset) + { + // SpanOverloader + thisApi.CommandEncoderResolveQuerySet(commandEncoder, ref querySet.GetPinnableReference(), firstQuery, queryCount, ref destination.GetPinnableReference(), destinationOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderResolveQuerySet(this WebGPU thisApi, Span commandEncoder, QuerySet* querySet, uint firstQuery, uint queryCount, Buffer* destination, ulong destinationOffset) + { + // SpanOverloader + thisApi.CommandEncoderResolveQuerySet(ref commandEncoder.GetPinnableReference(), querySet, firstQuery, queryCount, destination, destinationOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderResolveQuerySet(this WebGPU thisApi, Span commandEncoder, QuerySet* querySet, uint firstQuery, uint queryCount, Span destination, ulong destinationOffset) + { + // SpanOverloader + thisApi.CommandEncoderResolveQuerySet(ref commandEncoder.GetPinnableReference(), querySet, firstQuery, queryCount, ref destination.GetPinnableReference(), destinationOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderResolveQuerySet(this WebGPU thisApi, Span commandEncoder, Span querySet, uint firstQuery, uint queryCount, Buffer* destination, ulong destinationOffset) + { + // SpanOverloader + thisApi.CommandEncoderResolveQuerySet(ref commandEncoder.GetPinnableReference(), ref querySet.GetPinnableReference(), firstQuery, queryCount, destination, destinationOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1446, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderResolveQuerySet(this WebGPU thisApi, Span commandEncoder, Span querySet, uint firstQuery, uint queryCount, Span destination, ulong destinationOffset) + { + // SpanOverloader + thisApi.CommandEncoderResolveQuerySet(ref commandEncoder.GetPinnableReference(), ref querySet.GetPinnableReference(), firstQuery, queryCount, ref destination.GetPinnableReference(), destinationOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderSetLabel(this WebGPU thisApi, CommandEncoder* commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.CommandEncoderSetLabel(commandEncoder, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderSetLabel(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.CommandEncoderSetLabel(ref commandEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderSetLabel(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.CommandEncoderSetLabel(ref commandEncoder.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1447, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderSetLabel(this WebGPU thisApi, Span commandEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.CommandEncoderSetLabel(ref commandEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1448, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderWriteTimestamp(this WebGPU thisApi, CommandEncoder* commandEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.CommandEncoderWriteTimestamp(commandEncoder, ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1448, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderWriteTimestamp(this WebGPU thisApi, Span commandEncoder, QuerySet* querySet, uint queryIndex) + { + // SpanOverloader + thisApi.CommandEncoderWriteTimestamp(ref commandEncoder.GetPinnableReference(), querySet, queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1448, Column 18 in webgpu.h")] + public static unsafe void CommandEncoderWriteTimestamp(this WebGPU thisApi, Span commandEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.CommandEncoderWriteTimestamp(ref commandEncoder.GetPinnableReference(), ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1451, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderBeginPipelineStatisticsQuery(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.ComputePassEncoderBeginPipelineStatisticsQuery(computePassEncoder, ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1451, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderBeginPipelineStatisticsQuery(this WebGPU thisApi, Span computePassEncoder, QuerySet* querySet, uint queryIndex) + { + // SpanOverloader + thisApi.ComputePassEncoderBeginPipelineStatisticsQuery(ref computePassEncoder.GetPinnableReference(), querySet, queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1451, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderBeginPipelineStatisticsQuery(this WebGPU thisApi, Span computePassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.ComputePassEncoderBeginPipelineStatisticsQuery(ref computePassEncoder.GetPinnableReference(), ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1452, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderDispatchWorkgroups(this WebGPU thisApi, Span computePassEncoder, uint workgroupCountX, uint workgroupCountY, uint workgroupCountZ) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatchWorkgroups(ref computePassEncoder.GetPinnableReference(), workgroupCountX, workgroupCountY, workgroupCountZ); + } + + /// To be documented. + [NativeName("Src", "Line 1453, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderDispatchWorkgroupsIndirect(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatchWorkgroupsIndirect(computePassEncoder, ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1453, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderDispatchWorkgroupsIndirect(this WebGPU thisApi, Span computePassEncoder, Buffer* indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatchWorkgroupsIndirect(ref computePassEncoder.GetPinnableReference(), indirectBuffer, indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1453, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderDispatchWorkgroupsIndirect(this WebGPU thisApi, Span computePassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.ComputePassEncoderDispatchWorkgroupsIndirect(ref computePassEncoder.GetPinnableReference(), ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1454, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderEnd(this WebGPU thisApi, Span computePassEncoder) + { + // SpanOverloader + thisApi.ComputePassEncoderEnd(ref computePassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1455, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderEndPipelineStatisticsQuery(this WebGPU thisApi, Span computePassEncoder) + { + // SpanOverloader + thisApi.ComputePassEncoderEndPipelineStatisticsQuery(ref computePassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderInsertDebugMarker(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderInsertDebugMarker(computePassEncoder, in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderInsertDebugMarker(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In)] byte* markerLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderInsertDebugMarker(ref computePassEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderInsertDebugMarker(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderInsertDebugMarker(ref computePassEncoder.GetPinnableReference(), in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1456, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderInsertDebugMarker(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderInsertDebugMarker(ref computePassEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1457, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderPopDebugGroup(this WebGPU thisApi, Span computePassEncoder) + { + // SpanOverloader + thisApi.ComputePassEncoderPopDebugGroup(ref computePassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderPushDebugGroup(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderPushDebugGroup(computePassEncoder, in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderPushDebugGroup(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In)] byte* groupLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderPushDebugGroup(ref computePassEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderPushDebugGroup(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderPushDebugGroup(ref computePassEncoder.GetPinnableReference(), in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1458, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderPushDebugGroup(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel) + { + // SpanOverloader + thisApi.ComputePassEncoderPushDebugGroup(ref computePassEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetBindGroup(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.ComputePassEncoderSetBindGroup(computePassEncoder, groupIndex, group, dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetBindGroup(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.ComputePassEncoderSetBindGroup(computePassEncoder, groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetBindGroup(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.ComputePassEncoderSetBindGroup(computePassEncoder, groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetBindGroup(this WebGPU thisApi, Span computePassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.ComputePassEncoderSetBindGroup(ref computePassEncoder.GetPinnableReference(), groupIndex, group, dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetBindGroup(this WebGPU thisApi, Span computePassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.ComputePassEncoderSetBindGroup(ref computePassEncoder.GetPinnableReference(), groupIndex, group, dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetBindGroup(this WebGPU thisApi, Span computePassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.ComputePassEncoderSetBindGroup(ref computePassEncoder.GetPinnableReference(), groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1459, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetBindGroup(this WebGPU thisApi, Span computePassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.ComputePassEncoderSetBindGroup(ref computePassEncoder.GetPinnableReference(), groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetLabel(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ComputePassEncoderSetLabel(computePassEncoder, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetLabel(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.ComputePassEncoderSetLabel(ref computePassEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetLabel(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ComputePassEncoderSetLabel(ref computePassEncoder.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1460, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetLabel(this WebGPU thisApi, Span computePassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.ComputePassEncoderSetLabel(ref computePassEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1461, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetPipeline(this WebGPU thisApi, ComputePassEncoder* computePassEncoder, Span pipeline) + { + // SpanOverloader + thisApi.ComputePassEncoderSetPipeline(computePassEncoder, ref pipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1461, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetPipeline(this WebGPU thisApi, Span computePassEncoder, ComputePipeline* pipeline) + { + // SpanOverloader + thisApi.ComputePassEncoderSetPipeline(ref computePassEncoder.GetPinnableReference(), pipeline); + } + + /// To be documented. + [NativeName("Src", "Line 1461, Column 18 in webgpu.h")] + public static unsafe void ComputePassEncoderSetPipeline(this WebGPU thisApi, Span computePassEncoder, Span pipeline) + { + // SpanOverloader + thisApi.ComputePassEncoderSetPipeline(ref computePassEncoder.GetPinnableReference(), ref pipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1464, Column 33 in webgpu.h")] + public static unsafe BindGroupLayout* ComputePipelineGetBindGroupLayout(this WebGPU thisApi, Span computePipeline, uint groupIndex) + { + // SpanOverloader + return thisApi.ComputePipelineGetBindGroupLayout(ref computePipeline.GetPinnableReference(), groupIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + public static unsafe void ComputePipelineSetLabel(this WebGPU thisApi, ComputePipeline* computePipeline, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ComputePipelineSetLabel(computePipeline, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + public static unsafe void ComputePipelineSetLabel(this WebGPU thisApi, Span computePipeline, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.ComputePipelineSetLabel(ref computePipeline.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + public static unsafe void ComputePipelineSetLabel(this WebGPU thisApi, Span computePipeline, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ComputePipelineSetLabel(ref computePipeline.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1465, Column 18 in webgpu.h")] + public static unsafe void ComputePipelineSetLabel(this WebGPU thisApi, Span computePipeline, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.ComputePipelineSetLabel(ref computePipeline.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1468, Column 27 in webgpu.h")] + public static unsafe BindGroup* DeviceCreateBindGroup(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBindGroup(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1468, Column 27 in webgpu.h")] + public static unsafe BindGroup* DeviceCreateBindGroup(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] BindGroupDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBindGroup(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1468, Column 27 in webgpu.h")] + public static unsafe BindGroup* DeviceCreateBindGroup(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBindGroup(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1469, Column 33 in webgpu.h")] + public static unsafe BindGroupLayout* DeviceCreateBindGroupLayout(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBindGroupLayout(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1469, Column 33 in webgpu.h")] + public static unsafe BindGroupLayout* DeviceCreateBindGroupLayout(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] BindGroupLayoutDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBindGroupLayout(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1469, Column 33 in webgpu.h")] + public static unsafe BindGroupLayout* DeviceCreateBindGroupLayout(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBindGroupLayout(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1470, Column 24 in webgpu.h")] + public static unsafe Buffer* DeviceCreateBuffer(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBuffer(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1470, Column 24 in webgpu.h")] + public static unsafe Buffer* DeviceCreateBuffer(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] BufferDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBuffer(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1470, Column 24 in webgpu.h")] + public static unsafe Buffer* DeviceCreateBuffer(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateBuffer(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1471, Column 32 in webgpu.h")] + public static unsafe CommandEncoder* DeviceCreateCommandEncoder(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateCommandEncoder(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1471, Column 32 in webgpu.h")] + public static unsafe CommandEncoder* DeviceCreateCommandEncoder(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] CommandEncoderDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateCommandEncoder(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1471, Column 32 in webgpu.h")] + public static unsafe CommandEncoder* DeviceCreateCommandEncoder(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateCommandEncoder(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1472, Column 33 in webgpu.h")] + public static unsafe ComputePipeline* DeviceCreateComputePipeline(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateComputePipeline(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1472, Column 33 in webgpu.h")] + public static unsafe ComputePipeline* DeviceCreateComputePipeline(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateComputePipeline(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1472, Column 33 in webgpu.h")] + public static unsafe ComputePipeline* DeviceCreateComputePipeline(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateComputePipeline(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateComputePipelineAsync(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor, PfnCreateComputePipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateComputePipelineAsync(device, descriptor, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateComputePipelineAsync(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateComputePipelineAsyncCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceCreateComputePipelineAsync(device, in descriptor.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateComputePipelineAsync(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateComputePipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateComputePipelineAsync(device, in descriptor.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateComputePipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor, PfnCreateComputePipelineAsyncCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceCreateComputePipelineAsync(ref device.GetPinnableReference(), descriptor, callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateComputePipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ComputePipelineDescriptor* descriptor, PfnCreateComputePipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateComputePipelineAsync(ref device.GetPinnableReference(), descriptor, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateComputePipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateComputePipelineAsyncCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceCreateComputePipelineAsync(ref device.GetPinnableReference(), in descriptor.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1473, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateComputePipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateComputePipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateComputePipelineAsync(ref device.GetPinnableReference(), in descriptor.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1474, Column 32 in webgpu.h")] + public static unsafe PipelineLayout* DeviceCreatePipelineLayout(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreatePipelineLayout(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1474, Column 32 in webgpu.h")] + public static unsafe PipelineLayout* DeviceCreatePipelineLayout(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] PipelineLayoutDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreatePipelineLayout(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1474, Column 32 in webgpu.h")] + public static unsafe PipelineLayout* DeviceCreatePipelineLayout(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreatePipelineLayout(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1475, Column 26 in webgpu.h")] + public static unsafe QuerySet* DeviceCreateQuerySet(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateQuerySet(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1475, Column 26 in webgpu.h")] + public static unsafe QuerySet* DeviceCreateQuerySet(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] QuerySetDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateQuerySet(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1475, Column 26 in webgpu.h")] + public static unsafe QuerySet* DeviceCreateQuerySet(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateQuerySet(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1476, Column 37 in webgpu.h")] + public static unsafe RenderBundleEncoder* DeviceCreateRenderBundleEncoder(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateRenderBundleEncoder(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1476, Column 37 in webgpu.h")] + public static unsafe RenderBundleEncoder* DeviceCreateRenderBundleEncoder(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] RenderBundleEncoderDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateRenderBundleEncoder(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1476, Column 37 in webgpu.h")] + public static unsafe RenderBundleEncoder* DeviceCreateRenderBundleEncoder(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateRenderBundleEncoder(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1477, Column 32 in webgpu.h")] + public static unsafe RenderPipeline* DeviceCreateRenderPipeline(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateRenderPipeline(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1477, Column 32 in webgpu.h")] + public static unsafe RenderPipeline* DeviceCreateRenderPipeline(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateRenderPipeline(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1477, Column 32 in webgpu.h")] + public static unsafe RenderPipeline* DeviceCreateRenderPipeline(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateRenderPipeline(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateRenderPipelineAsync(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor, PfnCreateRenderPipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateRenderPipelineAsync(device, descriptor, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateRenderPipelineAsync(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateRenderPipelineAsyncCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceCreateRenderPipelineAsync(device, in descriptor.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateRenderPipelineAsync(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateRenderPipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateRenderPipelineAsync(device, in descriptor.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateRenderPipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor, PfnCreateRenderPipelineAsyncCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceCreateRenderPipelineAsync(ref device.GetPinnableReference(), descriptor, callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateRenderPipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] RenderPipelineDescriptor* descriptor, PfnCreateRenderPipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateRenderPipelineAsync(ref device.GetPinnableReference(), descriptor, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateRenderPipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateRenderPipelineAsyncCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceCreateRenderPipelineAsync(ref device.GetPinnableReference(), in descriptor.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1478, Column 18 in webgpu.h")] + public static unsafe void DeviceCreateRenderPipelineAsync(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor, PfnCreateRenderPipelineAsyncCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceCreateRenderPipelineAsync(ref device.GetPinnableReference(), in descriptor.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1479, Column 25 in webgpu.h")] + public static unsafe Sampler* DeviceCreateSampler(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSampler(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1479, Column 25 in webgpu.h")] + public static unsafe Sampler* DeviceCreateSampler(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] SamplerDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSampler(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1479, Column 25 in webgpu.h")] + public static unsafe Sampler* DeviceCreateSampler(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSampler(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1480, Column 30 in webgpu.h")] + public static unsafe ShaderModule* DeviceCreateShaderModule(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateShaderModule(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1480, Column 30 in webgpu.h")] + public static unsafe ShaderModule* DeviceCreateShaderModule(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ShaderModuleDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateShaderModule(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1480, Column 30 in webgpu.h")] + public static unsafe ShaderModule* DeviceCreateShaderModule(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateShaderModule(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + public static unsafe SwapChain* DeviceCreateSwapChain(this WebGPU thisApi, Device* device, Surface* surface, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSwapChain(device, surface, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + public static unsafe SwapChain* DeviceCreateSwapChain(this WebGPU thisApi, Device* device, Span surface, [Flow(FlowDirection.In)] SwapChainDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSwapChain(device, ref surface.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + public static unsafe SwapChain* DeviceCreateSwapChain(this WebGPU thisApi, Device* device, Span surface, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSwapChain(device, ref surface.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + public static unsafe SwapChain* DeviceCreateSwapChain(this WebGPU thisApi, Span device, Surface* surface, [Flow(FlowDirection.In)] SwapChainDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSwapChain(ref device.GetPinnableReference(), surface, descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + public static unsafe SwapChain* DeviceCreateSwapChain(this WebGPU thisApi, Span device, Surface* surface, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSwapChain(ref device.GetPinnableReference(), surface, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + public static unsafe SwapChain* DeviceCreateSwapChain(this WebGPU thisApi, Span device, Span surface, [Flow(FlowDirection.In)] SwapChainDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSwapChain(ref device.GetPinnableReference(), ref surface.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1481, Column 27 in webgpu.h")] + public static unsafe SwapChain* DeviceCreateSwapChain(this WebGPU thisApi, Span device, Span surface, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateSwapChain(ref device.GetPinnableReference(), ref surface.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1482, Column 25 in webgpu.h")] + public static unsafe Texture* DeviceCreateTexture(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateTexture(device, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1482, Column 25 in webgpu.h")] + public static unsafe Texture* DeviceCreateTexture(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] TextureDescriptor* descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateTexture(ref device.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1482, Column 25 in webgpu.h")] + public static unsafe Texture* DeviceCreateTexture(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.DeviceCreateTexture(ref device.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1483, Column 18 in webgpu.h")] + public static unsafe void DeviceDestroy(this WebGPU thisApi, Span device) + { + // SpanOverloader + thisApi.DeviceDestroy(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1484, Column 20 in webgpu.h")] + public static unsafe nuint DeviceEnumerateFeatures(this WebGPU thisApi, Device* device, Span features) + { + // SpanOverloader + return thisApi.DeviceEnumerateFeatures(device, ref features.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1484, Column 20 in webgpu.h")] + public static unsafe nuint DeviceEnumerateFeatures(this WebGPU thisApi, Span device, FeatureName* features) + { + // SpanOverloader + return thisApi.DeviceEnumerateFeatures(ref device.GetPinnableReference(), features); + } + + /// To be documented. + [NativeName("Src", "Line 1484, Column 20 in webgpu.h")] + public static unsafe nuint DeviceEnumerateFeatures(this WebGPU thisApi, Span device, Span features) + { + // SpanOverloader + return thisApi.DeviceEnumerateFeatures(ref device.GetPinnableReference(), ref features.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1485, Column 18 in webgpu.h")] + public static unsafe bool DeviceGetLimits(this WebGPU thisApi, Device* device, Span limits) + { + // SpanOverloader + return thisApi.DeviceGetLimits(device, ref limits.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1485, Column 18 in webgpu.h")] + public static unsafe bool DeviceGetLimits(this WebGPU thisApi, Span device, SupportedLimits* limits) + { + // SpanOverloader + return thisApi.DeviceGetLimits(ref device.GetPinnableReference(), limits); + } + + /// To be documented. + [NativeName("Src", "Line 1485, Column 18 in webgpu.h")] + public static unsafe bool DeviceGetLimits(this WebGPU thisApi, Span device, Span limits) + { + // SpanOverloader + return thisApi.DeviceGetLimits(ref device.GetPinnableReference(), ref limits.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1486, Column 23 in webgpu.h")] + public static unsafe Queue* DeviceGetQueue(this WebGPU thisApi, Span device) + { + // SpanOverloader + return thisApi.DeviceGetQueue(ref device.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1487, Column 18 in webgpu.h")] + public static unsafe bool DeviceHasFeature(this WebGPU thisApi, Span device, FeatureName feature) + { + // SpanOverloader + return thisApi.DeviceHasFeature(ref device.GetPinnableReference(), feature); + } + + /// To be documented. + [NativeName("Src", "Line 1488, Column 18 in webgpu.h")] + public static unsafe bool DevicePopErrorScope(this WebGPU thisApi, Device* device, PfnErrorCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + return thisApi.DevicePopErrorScope(device, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1488, Column 18 in webgpu.h")] + public static unsafe bool DevicePopErrorScope(this WebGPU thisApi, Span device, PfnErrorCallback callback, void* userdata) + { + // SpanOverloader + return thisApi.DevicePopErrorScope(ref device.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1488, Column 18 in webgpu.h")] + public static unsafe bool DevicePopErrorScope(this WebGPU thisApi, Span device, PfnErrorCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + return thisApi.DevicePopErrorScope(ref device.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1489, Column 18 in webgpu.h")] + public static unsafe void DevicePushErrorScope(this WebGPU thisApi, Span device, ErrorFilter filter) + { + // SpanOverloader + thisApi.DevicePushErrorScope(ref device.GetPinnableReference(), filter); + } + + /// To be documented. + [NativeName("Src", "Line 1490, Column 18 in webgpu.h")] + public static unsafe void DeviceSetDeviceLostCallback(this WebGPU thisApi, Device* device, PfnDeviceLostCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceSetDeviceLostCallback(device, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1490, Column 18 in webgpu.h")] + public static unsafe void DeviceSetDeviceLostCallback(this WebGPU thisApi, Span device, PfnDeviceLostCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceSetDeviceLostCallback(ref device.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1490, Column 18 in webgpu.h")] + public static unsafe void DeviceSetDeviceLostCallback(this WebGPU thisApi, Span device, PfnDeviceLostCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceSetDeviceLostCallback(ref device.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + public static unsafe void DeviceSetLabel(this WebGPU thisApi, Device* device, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.DeviceSetLabel(device, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + public static unsafe void DeviceSetLabel(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.DeviceSetLabel(ref device.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + public static unsafe void DeviceSetLabel(this WebGPU thisApi, Span device, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.DeviceSetLabel(ref device.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1491, Column 18 in webgpu.h")] + public static unsafe void DeviceSetLabel(this WebGPU thisApi, Span device, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.DeviceSetLabel(ref device.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1492, Column 18 in webgpu.h")] + public static unsafe void DeviceSetUncapturedErrorCallback(this WebGPU thisApi, Device* device, PfnErrorCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceSetUncapturedErrorCallback(device, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1492, Column 18 in webgpu.h")] + public static unsafe void DeviceSetUncapturedErrorCallback(this WebGPU thisApi, Span device, PfnErrorCallback callback, void* userdata) + { + // SpanOverloader + thisApi.DeviceSetUncapturedErrorCallback(ref device.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1492, Column 18 in webgpu.h")] + public static unsafe void DeviceSetUncapturedErrorCallback(this WebGPU thisApi, Span device, PfnErrorCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.DeviceSetUncapturedErrorCallback(ref device.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1495, Column 25 in webgpu.h")] + public static unsafe Surface* InstanceCreateSurface(this WebGPU thisApi, Instance* instance, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.InstanceCreateSurface(instance, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1495, Column 25 in webgpu.h")] + public static unsafe Surface* InstanceCreateSurface(this WebGPU thisApi, Span instance, [Flow(FlowDirection.In)] SurfaceDescriptor* descriptor) + { + // SpanOverloader + return thisApi.InstanceCreateSurface(ref instance.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1495, Column 25 in webgpu.h")] + public static unsafe Surface* InstanceCreateSurface(this WebGPU thisApi, Span instance, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.InstanceCreateSurface(ref instance.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1496, Column 18 in webgpu.h")] + public static unsafe void InstanceProcessEvents(this WebGPU thisApi, Span instance) + { + // SpanOverloader + thisApi.InstanceProcessEvents(ref instance.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + public static unsafe void InstanceRequestAdapter(this WebGPU thisApi, Instance* instance, [Flow(FlowDirection.In)] RequestAdapterOptions* options, PfnRequestAdapterCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.InstanceRequestAdapter(instance, options, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + public static unsafe void InstanceRequestAdapter(this WebGPU thisApi, Instance* instance, [Flow(FlowDirection.In)] ReadOnlySpan options, PfnRequestAdapterCallback callback, void* userdata) + { + // SpanOverloader + thisApi.InstanceRequestAdapter(instance, in options.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + public static unsafe void InstanceRequestAdapter(this WebGPU thisApi, Instance* instance, [Flow(FlowDirection.In)] ReadOnlySpan options, PfnRequestAdapterCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.InstanceRequestAdapter(instance, in options.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + public static unsafe void InstanceRequestAdapter(this WebGPU thisApi, Span instance, [Flow(FlowDirection.In)] RequestAdapterOptions* options, PfnRequestAdapterCallback callback, void* userdata) + { + // SpanOverloader + thisApi.InstanceRequestAdapter(ref instance.GetPinnableReference(), options, callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + public static unsafe void InstanceRequestAdapter(this WebGPU thisApi, Span instance, [Flow(FlowDirection.In)] RequestAdapterOptions* options, PfnRequestAdapterCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.InstanceRequestAdapter(ref instance.GetPinnableReference(), options, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + public static unsafe void InstanceRequestAdapter(this WebGPU thisApi, Span instance, [Flow(FlowDirection.In)] ReadOnlySpan options, PfnRequestAdapterCallback callback, void* userdata) + { + // SpanOverloader + thisApi.InstanceRequestAdapter(ref instance.GetPinnableReference(), in options.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1497, Column 18 in webgpu.h")] + public static unsafe void InstanceRequestAdapter(this WebGPU thisApi, Span instance, [Flow(FlowDirection.In)] ReadOnlySpan options, PfnRequestAdapterCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.InstanceRequestAdapter(ref instance.GetPinnableReference(), in options.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + public static unsafe void PipelineLayoutSetLabel(this WebGPU thisApi, PipelineLayout* pipelineLayout, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.PipelineLayoutSetLabel(pipelineLayout, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + public static unsafe void PipelineLayoutSetLabel(this WebGPU thisApi, Span pipelineLayout, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.PipelineLayoutSetLabel(ref pipelineLayout.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + public static unsafe void PipelineLayoutSetLabel(this WebGPU thisApi, Span pipelineLayout, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.PipelineLayoutSetLabel(ref pipelineLayout.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1500, Column 18 in webgpu.h")] + public static unsafe void PipelineLayoutSetLabel(this WebGPU thisApi, Span pipelineLayout, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.PipelineLayoutSetLabel(ref pipelineLayout.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1503, Column 18 in webgpu.h")] + public static unsafe void QuerySetDestroy(this WebGPU thisApi, Span querySet) + { + // SpanOverloader + thisApi.QuerySetDestroy(ref querySet.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1504, Column 22 in webgpu.h")] + public static unsafe uint QuerySetGetCount(this WebGPU thisApi, Span querySet) + { + // SpanOverloader + return thisApi.QuerySetGetCount(ref querySet.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1505, Column 27 in webgpu.h")] + public static unsafe QueryType QuerySetGetType(this WebGPU thisApi, Span querySet) + { + // SpanOverloader + return thisApi.QuerySetGetType(ref querySet.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + public static unsafe void QuerySetSetLabel(this WebGPU thisApi, QuerySet* querySet, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.QuerySetSetLabel(querySet, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + public static unsafe void QuerySetSetLabel(this WebGPU thisApi, Span querySet, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.QuerySetSetLabel(ref querySet.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + public static unsafe void QuerySetSetLabel(this WebGPU thisApi, Span querySet, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.QuerySetSetLabel(ref querySet.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1506, Column 18 in webgpu.h")] + public static unsafe void QuerySetSetLabel(this WebGPU thisApi, Span querySet, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.QuerySetSetLabel(ref querySet.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1509, Column 18 in webgpu.h")] + public static unsafe void QueueOnSubmittedWorkDone(this WebGPU thisApi, Queue* queue, PfnQueueWorkDoneCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueOnSubmittedWorkDone(queue, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1509, Column 18 in webgpu.h")] + public static unsafe void QueueOnSubmittedWorkDone(this WebGPU thisApi, Span queue, PfnQueueWorkDoneCallback callback, void* userdata) + { + // SpanOverloader + thisApi.QueueOnSubmittedWorkDone(ref queue.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1509, Column 18 in webgpu.h")] + public static unsafe void QueueOnSubmittedWorkDone(this WebGPU thisApi, Span queue, PfnQueueWorkDoneCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueOnSubmittedWorkDone(ref queue.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + public static unsafe void QueueSetLabel(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.QueueSetLabel(queue, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + public static unsafe void QueueSetLabel(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.QueueSetLabel(ref queue.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + public static unsafe void QueueSetLabel(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.QueueSetLabel(ref queue.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1510, Column 18 in webgpu.h")] + public static unsafe void QueueSetLabel(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.QueueSetLabel(ref queue.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1511, Column 18 in webgpu.h")] + public static unsafe void QueueSubmit(this WebGPU thisApi, Span queue, uint commandCount, CommandBuffer** commands) + { + // SpanOverloader + thisApi.QueueSubmit(ref queue.GetPinnableReference(), commandCount, commands); + } + + /// To be documented. + [NativeName("Src", "Line 1511, Column 18 in webgpu.h")] + public static unsafe void QueueSubmit(this WebGPU thisApi, Span queue, uint commandCount, ref CommandBuffer* commands) + { + // SpanOverloader + thisApi.QueueSubmit(ref queue.GetPinnableReference(), commandCount, ref commands); + } + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + public static unsafe void QueueWriteBuffer(this WebGPU thisApi, Queue* queue, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint size) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteBuffer(queue, buffer, bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + public static unsafe void QueueWriteBuffer(this WebGPU thisApi, Queue* queue, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] void* data, nuint size) + { + // SpanOverloader + thisApi.QueueWriteBuffer(queue, ref buffer.GetPinnableReference(), bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + public static unsafe void QueueWriteBuffer(this WebGPU thisApi, Queue* queue, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint size) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteBuffer(queue, ref buffer.GetPinnableReference(), bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + public static unsafe void QueueWriteBuffer(this WebGPU thisApi, Span queue, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] void* data, nuint size) + { + // SpanOverloader + thisApi.QueueWriteBuffer(ref queue.GetPinnableReference(), buffer, bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + public static unsafe void QueueWriteBuffer(this WebGPU thisApi, Span queue, Buffer* buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint size) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteBuffer(ref queue.GetPinnableReference(), buffer, bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + public static unsafe void QueueWriteBuffer(this WebGPU thisApi, Span queue, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] void* data, nuint size) + { + // SpanOverloader + thisApi.QueueWriteBuffer(ref queue.GetPinnableReference(), ref buffer.GetPinnableReference(), bufferOffset, data, size); + } + + /// To be documented. + [NativeName("Src", "Line 1512, Column 18 in webgpu.h")] + public static unsafe void QueueWriteBuffer(this WebGPU thisApi, Span queue, Span buffer, ulong bufferOffset, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint size) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteBuffer(ref queue.GetPinnableReference(), ref buffer.GetPinnableReference(), bufferOffset, in data.GetPinnableReference(), size); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, destination, data, dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, destination, data, dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, destination, data, dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, destination, in data.GetPinnableReference(), dataSize, dataLayout, writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, destination, in data.GetPinnableReference(), dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, destination, in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, destination, in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), data, dataSize, dataLayout, writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), data, dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), data, dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), data, dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, dataLayout, writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Queue* queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(queue, in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, data, dataSize, dataLayout, writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, data, dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, data, dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, data, dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, in data.GetPinnableReference(), dataSize, dataLayout, writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, in data.GetPinnableReference(), dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ImageCopyTexture* destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), destination, in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), data, dataSize, dataLayout, writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), data, dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), data, dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] void* data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), data, dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, dataLayout, writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] TextureDataLayout* dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, dataLayout, in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] Extent3D* writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), writeSize); + } + + /// To be documented. + [NativeName("Src", "Line 1513, Column 18 in webgpu.h")] + public static unsafe void QueueWriteTexture(this WebGPU thisApi, Span queue, [Flow(FlowDirection.In)] ReadOnlySpan destination, [Flow(FlowDirection.In)] ReadOnlySpan data, nuint dataSize, [Flow(FlowDirection.In)] ReadOnlySpan dataLayout, [Flow(FlowDirection.In)] ReadOnlySpan writeSize) where T0 : unmanaged + { + // SpanOverloader + thisApi.QueueWriteTexture(ref queue.GetPinnableReference(), in destination.GetPinnableReference(), in data.GetPinnableReference(), dataSize, in dataLayout.GetPinnableReference(), in writeSize.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1516, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDraw(this WebGPU thisApi, Span renderBundleEncoder, uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance) + { + // SpanOverloader + thisApi.RenderBundleEncoderDraw(ref renderBundleEncoder.GetPinnableReference(), vertexCount, instanceCount, firstVertex, firstInstance); + } + + /// To be documented. + [NativeName("Src", "Line 1517, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDrawIndexed(this WebGPU thisApi, Span renderBundleEncoder, uint indexCount, uint instanceCount, uint firstIndex, int baseVertex, uint firstInstance) + { + // SpanOverloader + thisApi.RenderBundleEncoderDrawIndexed(ref renderBundleEncoder.GetPinnableReference(), indexCount, instanceCount, firstIndex, baseVertex, firstInstance); + } + + /// To be documented. + [NativeName("Src", "Line 1518, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDrawIndexedIndirect(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderBundleEncoderDrawIndexedIndirect(renderBundleEncoder, ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1518, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDrawIndexedIndirect(this WebGPU thisApi, Span renderBundleEncoder, Buffer* indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderBundleEncoderDrawIndexedIndirect(ref renderBundleEncoder.GetPinnableReference(), indirectBuffer, indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1518, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDrawIndexedIndirect(this WebGPU thisApi, Span renderBundleEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderBundleEncoderDrawIndexedIndirect(ref renderBundleEncoder.GetPinnableReference(), ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1519, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDrawIndirect(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderBundleEncoderDrawIndirect(renderBundleEncoder, ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1519, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDrawIndirect(this WebGPU thisApi, Span renderBundleEncoder, Buffer* indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderBundleEncoderDrawIndirect(ref renderBundleEncoder.GetPinnableReference(), indirectBuffer, indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1519, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderDrawIndirect(this WebGPU thisApi, Span renderBundleEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderBundleEncoderDrawIndirect(ref renderBundleEncoder.GetPinnableReference(), ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1520, Column 30 in webgpu.h")] + public static unsafe RenderBundle* RenderBundleEncoderFinish(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.RenderBundleEncoderFinish(renderBundleEncoder, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1520, Column 30 in webgpu.h")] + public static unsafe RenderBundle* RenderBundleEncoderFinish(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] RenderBundleDescriptor* descriptor) + { + // SpanOverloader + return thisApi.RenderBundleEncoderFinish(ref renderBundleEncoder.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1520, Column 30 in webgpu.h")] + public static unsafe RenderBundle* RenderBundleEncoderFinish(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.RenderBundleEncoderFinish(ref renderBundleEncoder.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderInsertDebugMarker(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderInsertDebugMarker(renderBundleEncoder, in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderInsertDebugMarker(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] byte* markerLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderInsertDebugMarker(ref renderBundleEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderInsertDebugMarker(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderInsertDebugMarker(ref renderBundleEncoder.GetPinnableReference(), in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1521, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderInsertDebugMarker(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderInsertDebugMarker(ref renderBundleEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1522, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderPopDebugGroup(this WebGPU thisApi, Span renderBundleEncoder) + { + // SpanOverloader + thisApi.RenderBundleEncoderPopDebugGroup(ref renderBundleEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderPushDebugGroup(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderPushDebugGroup(renderBundleEncoder, in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderPushDebugGroup(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] byte* groupLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderPushDebugGroup(ref renderBundleEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderPushDebugGroup(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderPushDebugGroup(ref renderBundleEncoder.GetPinnableReference(), in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1523, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderPushDebugGroup(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel) + { + // SpanOverloader + thisApi.RenderBundleEncoderPushDebugGroup(ref renderBundleEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetBindGroup(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetBindGroup(renderBundleEncoder, groupIndex, group, dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetBindGroup(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetBindGroup(renderBundleEncoder, groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetBindGroup(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetBindGroup(renderBundleEncoder, groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetBindGroup(this WebGPU thisApi, Span renderBundleEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetBindGroup(ref renderBundleEncoder.GetPinnableReference(), groupIndex, group, dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetBindGroup(this WebGPU thisApi, Span renderBundleEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetBindGroup(ref renderBundleEncoder.GetPinnableReference(), groupIndex, group, dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetBindGroup(this WebGPU thisApi, Span renderBundleEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetBindGroup(ref renderBundleEncoder.GetPinnableReference(), groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1524, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetBindGroup(this WebGPU thisApi, Span renderBundleEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetBindGroup(ref renderBundleEncoder.GetPinnableReference(), groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1525, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetIndexBuffer(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, Span buffer, IndexFormat format, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetIndexBuffer(renderBundleEncoder, ref buffer.GetPinnableReference(), format, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1525, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetIndexBuffer(this WebGPU thisApi, Span renderBundleEncoder, Buffer* buffer, IndexFormat format, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetIndexBuffer(ref renderBundleEncoder.GetPinnableReference(), buffer, format, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1525, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetIndexBuffer(this WebGPU thisApi, Span renderBundleEncoder, Span buffer, IndexFormat format, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetIndexBuffer(ref renderBundleEncoder.GetPinnableReference(), ref buffer.GetPinnableReference(), format, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetLabel(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetLabel(renderBundleEncoder, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetLabel(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetLabel(ref renderBundleEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetLabel(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetLabel(ref renderBundleEncoder.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1526, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetLabel(this WebGPU thisApi, Span renderBundleEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetLabel(ref renderBundleEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1527, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetPipeline(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, Span pipeline) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetPipeline(renderBundleEncoder, ref pipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1527, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetPipeline(this WebGPU thisApi, Span renderBundleEncoder, RenderPipeline* pipeline) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetPipeline(ref renderBundleEncoder.GetPinnableReference(), pipeline); + } + + /// To be documented. + [NativeName("Src", "Line 1527, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetPipeline(this WebGPU thisApi, Span renderBundleEncoder, Span pipeline) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetPipeline(ref renderBundleEncoder.GetPinnableReference(), ref pipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1528, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetVertexBuffer(this WebGPU thisApi, RenderBundleEncoder* renderBundleEncoder, uint slot, Span buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetVertexBuffer(renderBundleEncoder, slot, ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1528, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetVertexBuffer(this WebGPU thisApi, Span renderBundleEncoder, uint slot, Buffer* buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetVertexBuffer(ref renderBundleEncoder.GetPinnableReference(), slot, buffer, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1528, Column 18 in webgpu.h")] + public static unsafe void RenderBundleEncoderSetVertexBuffer(this WebGPU thisApi, Span renderBundleEncoder, uint slot, Span buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderBundleEncoderSetVertexBuffer(ref renderBundleEncoder.GetPinnableReference(), slot, ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1531, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderBeginOcclusionQuery(this WebGPU thisApi, Span renderPassEncoder, uint queryIndex) + { + // SpanOverloader + thisApi.RenderPassEncoderBeginOcclusionQuery(ref renderPassEncoder.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1532, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderBeginPipelineStatisticsQuery(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.RenderPassEncoderBeginPipelineStatisticsQuery(renderPassEncoder, ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1532, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderBeginPipelineStatisticsQuery(this WebGPU thisApi, Span renderPassEncoder, QuerySet* querySet, uint queryIndex) + { + // SpanOverloader + thisApi.RenderPassEncoderBeginPipelineStatisticsQuery(ref renderPassEncoder.GetPinnableReference(), querySet, queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1532, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderBeginPipelineStatisticsQuery(this WebGPU thisApi, Span renderPassEncoder, Span querySet, uint queryIndex) + { + // SpanOverloader + thisApi.RenderPassEncoderBeginPipelineStatisticsQuery(ref renderPassEncoder.GetPinnableReference(), ref querySet.GetPinnableReference(), queryIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1533, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDraw(this WebGPU thisApi, Span renderPassEncoder, uint vertexCount, uint instanceCount, uint firstVertex, uint firstInstance) + { + // SpanOverloader + thisApi.RenderPassEncoderDraw(ref renderPassEncoder.GetPinnableReference(), vertexCount, instanceCount, firstVertex, firstInstance); + } + + /// To be documented. + [NativeName("Src", "Line 1534, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDrawIndexed(this WebGPU thisApi, Span renderPassEncoder, uint indexCount, uint instanceCount, uint firstIndex, int baseVertex, uint firstInstance) + { + // SpanOverloader + thisApi.RenderPassEncoderDrawIndexed(ref renderPassEncoder.GetPinnableReference(), indexCount, instanceCount, firstIndex, baseVertex, firstInstance); + } + + /// To be documented. + [NativeName("Src", "Line 1535, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDrawIndexedIndirect(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderPassEncoderDrawIndexedIndirect(renderPassEncoder, ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1535, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDrawIndexedIndirect(this WebGPU thisApi, Span renderPassEncoder, Buffer* indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderPassEncoderDrawIndexedIndirect(ref renderPassEncoder.GetPinnableReference(), indirectBuffer, indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1535, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDrawIndexedIndirect(this WebGPU thisApi, Span renderPassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderPassEncoderDrawIndexedIndirect(ref renderPassEncoder.GetPinnableReference(), ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1536, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDrawIndirect(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderPassEncoderDrawIndirect(renderPassEncoder, ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1536, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDrawIndirect(this WebGPU thisApi, Span renderPassEncoder, Buffer* indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderPassEncoderDrawIndirect(ref renderPassEncoder.GetPinnableReference(), indirectBuffer, indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1536, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderDrawIndirect(this WebGPU thisApi, Span renderPassEncoder, Span indirectBuffer, ulong indirectOffset) + { + // SpanOverloader + thisApi.RenderPassEncoderDrawIndirect(ref renderPassEncoder.GetPinnableReference(), ref indirectBuffer.GetPinnableReference(), indirectOffset); + } + + /// To be documented. + [NativeName("Src", "Line 1537, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderEnd(this WebGPU thisApi, Span renderPassEncoder) + { + // SpanOverloader + thisApi.RenderPassEncoderEnd(ref renderPassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1538, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderEndOcclusionQuery(this WebGPU thisApi, Span renderPassEncoder) + { + // SpanOverloader + thisApi.RenderPassEncoderEndOcclusionQuery(ref renderPassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1539, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderEndPipelineStatisticsQuery(this WebGPU thisApi, Span renderPassEncoder) + { + // SpanOverloader + thisApi.RenderPassEncoderEndPipelineStatisticsQuery(ref renderPassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1540, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderExecuteBundles(this WebGPU thisApi, Span renderPassEncoder, uint bundlesCount, RenderBundle** bundles) + { + // SpanOverloader + thisApi.RenderPassEncoderExecuteBundles(ref renderPassEncoder.GetPinnableReference(), bundlesCount, bundles); + } + + /// To be documented. + [NativeName("Src", "Line 1540, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderExecuteBundles(this WebGPU thisApi, Span renderPassEncoder, uint bundlesCount, ref RenderBundle* bundles) + { + // SpanOverloader + thisApi.RenderPassEncoderExecuteBundles(ref renderPassEncoder.GetPinnableReference(), bundlesCount, ref bundles); + } + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderInsertDebugMarker(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderInsertDebugMarker(renderPassEncoder, in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderInsertDebugMarker(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] byte* markerLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderInsertDebugMarker(ref renderPassEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderInsertDebugMarker(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan markerLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderInsertDebugMarker(ref renderPassEncoder.GetPinnableReference(), in markerLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1541, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderInsertDebugMarker(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string markerLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderInsertDebugMarker(ref renderPassEncoder.GetPinnableReference(), markerLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1542, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderPopDebugGroup(this WebGPU thisApi, Span renderPassEncoder) + { + // SpanOverloader + thisApi.RenderPassEncoderPopDebugGroup(ref renderPassEncoder.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderPushDebugGroup(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderPushDebugGroup(renderPassEncoder, in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderPushDebugGroup(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] byte* groupLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderPushDebugGroup(ref renderPassEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderPushDebugGroup(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan groupLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderPushDebugGroup(ref renderPassEncoder.GetPinnableReference(), in groupLabel.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1543, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderPushDebugGroup(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string groupLabel) + { + // SpanOverloader + thisApi.RenderPassEncoderPushDebugGroup(ref renderPassEncoder.GetPinnableReference(), groupLabel); + } + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBindGroup(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBindGroup(renderPassEncoder, groupIndex, group, dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBindGroup(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBindGroup(renderPassEncoder, groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBindGroup(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBindGroup(renderPassEncoder, groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBindGroup(this WebGPU thisApi, Span renderPassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBindGroup(ref renderPassEncoder.GetPinnableReference(), groupIndex, group, dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBindGroup(this WebGPU thisApi, Span renderPassEncoder, uint groupIndex, BindGroup* group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBindGroup(ref renderPassEncoder.GetPinnableReference(), groupIndex, group, dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBindGroup(this WebGPU thisApi, Span renderPassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] uint* dynamicOffsets) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBindGroup(ref renderPassEncoder.GetPinnableReference(), groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, dynamicOffsets); + } + + /// To be documented. + [NativeName("Src", "Line 1544, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBindGroup(this WebGPU thisApi, Span renderPassEncoder, uint groupIndex, Span group, uint dynamicOffsetCount, [Flow(FlowDirection.In)] ReadOnlySpan dynamicOffsets) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBindGroup(ref renderPassEncoder.GetPinnableReference(), groupIndex, ref group.GetPinnableReference(), dynamicOffsetCount, in dynamicOffsets.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1545, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBlendConstant(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan color) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBlendConstant(renderPassEncoder, in color.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1545, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBlendConstant(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] Color* color) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBlendConstant(ref renderPassEncoder.GetPinnableReference(), color); + } + + /// To be documented. + [NativeName("Src", "Line 1545, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetBlendConstant(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan color) + { + // SpanOverloader + thisApi.RenderPassEncoderSetBlendConstant(ref renderPassEncoder.GetPinnableReference(), in color.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1546, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetIndexBuffer(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, Span buffer, IndexFormat format, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderPassEncoderSetIndexBuffer(renderPassEncoder, ref buffer.GetPinnableReference(), format, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1546, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetIndexBuffer(this WebGPU thisApi, Span renderPassEncoder, Buffer* buffer, IndexFormat format, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderPassEncoderSetIndexBuffer(ref renderPassEncoder.GetPinnableReference(), buffer, format, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1546, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetIndexBuffer(this WebGPU thisApi, Span renderPassEncoder, Span buffer, IndexFormat format, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderPassEncoderSetIndexBuffer(ref renderPassEncoder.GetPinnableReference(), ref buffer.GetPinnableReference(), format, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetLabel(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.RenderPassEncoderSetLabel(renderPassEncoder, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetLabel(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.RenderPassEncoderSetLabel(ref renderPassEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetLabel(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.RenderPassEncoderSetLabel(ref renderPassEncoder.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1547, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetLabel(this WebGPU thisApi, Span renderPassEncoder, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.RenderPassEncoderSetLabel(ref renderPassEncoder.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1548, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetPipeline(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, Span pipeline) + { + // SpanOverloader + thisApi.RenderPassEncoderSetPipeline(renderPassEncoder, ref pipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1548, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetPipeline(this WebGPU thisApi, Span renderPassEncoder, RenderPipeline* pipeline) + { + // SpanOverloader + thisApi.RenderPassEncoderSetPipeline(ref renderPassEncoder.GetPinnableReference(), pipeline); + } + + /// To be documented. + [NativeName("Src", "Line 1548, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetPipeline(this WebGPU thisApi, Span renderPassEncoder, Span pipeline) + { + // SpanOverloader + thisApi.RenderPassEncoderSetPipeline(ref renderPassEncoder.GetPinnableReference(), ref pipeline.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1549, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetScissorRect(this WebGPU thisApi, Span renderPassEncoder, uint x, uint y, uint width, uint height) + { + // SpanOverloader + thisApi.RenderPassEncoderSetScissorRect(ref renderPassEncoder.GetPinnableReference(), x, y, width, height); + } + + /// To be documented. + [NativeName("Src", "Line 1550, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetStencilReference(this WebGPU thisApi, Span renderPassEncoder, uint reference) + { + // SpanOverloader + thisApi.RenderPassEncoderSetStencilReference(ref renderPassEncoder.GetPinnableReference(), reference); + } + + /// To be documented. + [NativeName("Src", "Line 1551, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetVertexBuffer(this WebGPU thisApi, RenderPassEncoder* renderPassEncoder, uint slot, Span buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderPassEncoderSetVertexBuffer(renderPassEncoder, slot, ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1551, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetVertexBuffer(this WebGPU thisApi, Span renderPassEncoder, uint slot, Buffer* buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderPassEncoderSetVertexBuffer(ref renderPassEncoder.GetPinnableReference(), slot, buffer, offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1551, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetVertexBuffer(this WebGPU thisApi, Span renderPassEncoder, uint slot, Span buffer, ulong offset, ulong size) + { + // SpanOverloader + thisApi.RenderPassEncoderSetVertexBuffer(ref renderPassEncoder.GetPinnableReference(), slot, ref buffer.GetPinnableReference(), offset, size); + } + + /// To be documented. + [NativeName("Src", "Line 1552, Column 18 in webgpu.h")] + public static unsafe void RenderPassEncoderSetViewport(this WebGPU thisApi, Span renderPassEncoder, float x, float y, float width, float height, float minDepth, float maxDepth) + { + // SpanOverloader + thisApi.RenderPassEncoderSetViewport(ref renderPassEncoder.GetPinnableReference(), x, y, width, height, minDepth, maxDepth); + } + + /// To be documented. + [NativeName("Src", "Line 1555, Column 33 in webgpu.h")] + public static unsafe BindGroupLayout* RenderPipelineGetBindGroupLayout(this WebGPU thisApi, Span renderPipeline, uint groupIndex) + { + // SpanOverloader + return thisApi.RenderPipelineGetBindGroupLayout(ref renderPipeline.GetPinnableReference(), groupIndex); + } + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + public static unsafe void RenderPipelineSetLabel(this WebGPU thisApi, RenderPipeline* renderPipeline, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.RenderPipelineSetLabel(renderPipeline, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + public static unsafe void RenderPipelineSetLabel(this WebGPU thisApi, Span renderPipeline, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.RenderPipelineSetLabel(ref renderPipeline.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + public static unsafe void RenderPipelineSetLabel(this WebGPU thisApi, Span renderPipeline, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.RenderPipelineSetLabel(ref renderPipeline.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1556, Column 18 in webgpu.h")] + public static unsafe void RenderPipelineSetLabel(this WebGPU thisApi, Span renderPipeline, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.RenderPipelineSetLabel(ref renderPipeline.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + public static unsafe void SamplerSetLabel(this WebGPU thisApi, Sampler* sampler, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.SamplerSetLabel(sampler, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + public static unsafe void SamplerSetLabel(this WebGPU thisApi, Span sampler, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.SamplerSetLabel(ref sampler.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + public static unsafe void SamplerSetLabel(this WebGPU thisApi, Span sampler, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.SamplerSetLabel(ref sampler.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1559, Column 18 in webgpu.h")] + public static unsafe void SamplerSetLabel(this WebGPU thisApi, Span sampler, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.SamplerSetLabel(ref sampler.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1562, Column 18 in webgpu.h")] + public static unsafe void ShaderModuleGetCompilationInfo(this WebGPU thisApi, ShaderModule* shaderModule, PfnCompilationInfoCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.ShaderModuleGetCompilationInfo(shaderModule, callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1562, Column 18 in webgpu.h")] + public static unsafe void ShaderModuleGetCompilationInfo(this WebGPU thisApi, Span shaderModule, PfnCompilationInfoCallback callback, void* userdata) + { + // SpanOverloader + thisApi.ShaderModuleGetCompilationInfo(ref shaderModule.GetPinnableReference(), callback, userdata); + } + + /// To be documented. + [NativeName("Src", "Line 1562, Column 18 in webgpu.h")] + public static unsafe void ShaderModuleGetCompilationInfo(this WebGPU thisApi, Span shaderModule, PfnCompilationInfoCallback callback, Span userdata) where T0 : unmanaged + { + // SpanOverloader + thisApi.ShaderModuleGetCompilationInfo(ref shaderModule.GetPinnableReference(), callback, ref userdata.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + public static unsafe void ShaderModuleSetLabel(this WebGPU thisApi, ShaderModule* shaderModule, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ShaderModuleSetLabel(shaderModule, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + public static unsafe void ShaderModuleSetLabel(this WebGPU thisApi, Span shaderModule, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.ShaderModuleSetLabel(ref shaderModule.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + public static unsafe void ShaderModuleSetLabel(this WebGPU thisApi, Span shaderModule, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.ShaderModuleSetLabel(ref shaderModule.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1563, Column 18 in webgpu.h")] + public static unsafe void ShaderModuleSetLabel(this WebGPU thisApi, Span shaderModule, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.ShaderModuleSetLabel(ref shaderModule.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1566, Column 31 in webgpu.h")] + public static unsafe TextureFormat SurfaceGetPreferredFormat(this WebGPU thisApi, Surface* surface, Span adapter) + { + // SpanOverloader + return thisApi.SurfaceGetPreferredFormat(surface, ref adapter.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1566, Column 31 in webgpu.h")] + public static unsafe TextureFormat SurfaceGetPreferredFormat(this WebGPU thisApi, Span surface, Adapter* adapter) + { + // SpanOverloader + return thisApi.SurfaceGetPreferredFormat(ref surface.GetPinnableReference(), adapter); + } + + /// To be documented. + [NativeName("Src", "Line 1566, Column 31 in webgpu.h")] + public static unsafe TextureFormat SurfaceGetPreferredFormat(this WebGPU thisApi, Span surface, Span adapter) + { + // SpanOverloader + return thisApi.SurfaceGetPreferredFormat(ref surface.GetPinnableReference(), ref adapter.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1569, Column 29 in webgpu.h")] + public static unsafe TextureView* SwapChainGetCurrentTextureView(this WebGPU thisApi, Span swapChain) + { + // SpanOverloader + return thisApi.SwapChainGetCurrentTextureView(ref swapChain.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1570, Column 18 in webgpu.h")] + public static unsafe void SwapChainPresent(this WebGPU thisApi, Span swapChain) + { + // SpanOverloader + thisApi.SwapChainPresent(ref swapChain.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1573, Column 29 in webgpu.h")] + public static unsafe TextureView* TextureCreateView(this WebGPU thisApi, Texture* texture, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.TextureCreateView(texture, in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1573, Column 29 in webgpu.h")] + public static unsafe TextureView* TextureCreateView(this WebGPU thisApi, Span texture, [Flow(FlowDirection.In)] TextureViewDescriptor* descriptor) + { + // SpanOverloader + return thisApi.TextureCreateView(ref texture.GetPinnableReference(), descriptor); + } + + /// To be documented. + [NativeName("Src", "Line 1573, Column 29 in webgpu.h")] + public static unsafe TextureView* TextureCreateView(this WebGPU thisApi, Span texture, [Flow(FlowDirection.In)] ReadOnlySpan descriptor) + { + // SpanOverloader + return thisApi.TextureCreateView(ref texture.GetPinnableReference(), in descriptor.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1574, Column 18 in webgpu.h")] + public static unsafe void TextureDestroy(this WebGPU thisApi, Span texture) + { + // SpanOverloader + thisApi.TextureDestroy(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1575, Column 22 in webgpu.h")] + public static unsafe uint TextureGetDepthOrArrayLayers(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetDepthOrArrayLayers(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1576, Column 34 in webgpu.h")] + public static unsafe TextureDimension TextureGetDimension(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetDimension(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1577, Column 31 in webgpu.h")] + public static unsafe TextureFormat TextureGetFormat(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetFormat(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1578, Column 22 in webgpu.h")] + public static unsafe uint TextureGetHeight(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetHeight(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1579, Column 22 in webgpu.h")] + public static unsafe uint TextureGetMipLevelCount(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetMipLevelCount(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1580, Column 22 in webgpu.h")] + public static unsafe uint TextureGetSampleCount(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetSampleCount(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1581, Column 30 in webgpu.h")] + public static unsafe TextureUsage TextureGetUsage(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetUsage(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1582, Column 22 in webgpu.h")] + public static unsafe uint TextureGetWidth(this WebGPU thisApi, Span texture) + { + // SpanOverloader + return thisApi.TextureGetWidth(ref texture.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + public static unsafe void TextureSetLabel(this WebGPU thisApi, Texture* texture, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.TextureSetLabel(texture, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + public static unsafe void TextureSetLabel(this WebGPU thisApi, Span texture, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.TextureSetLabel(ref texture.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + public static unsafe void TextureSetLabel(this WebGPU thisApi, Span texture, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.TextureSetLabel(ref texture.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1583, Column 18 in webgpu.h")] + public static unsafe void TextureSetLabel(this WebGPU thisApi, Span texture, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.TextureSetLabel(ref texture.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + public static unsafe void TextureViewSetLabel(this WebGPU thisApi, TextureView* textureView, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.TextureViewSetLabel(textureView, in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + public static unsafe void TextureViewSetLabel(this WebGPU thisApi, Span textureView, [Flow(FlowDirection.In)] byte* label) + { + // SpanOverloader + thisApi.TextureViewSetLabel(ref textureView.GetPinnableReference(), label); + } + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + public static unsafe void TextureViewSetLabel(this WebGPU thisApi, Span textureView, [Flow(FlowDirection.In)] ReadOnlySpan label) + { + // SpanOverloader + thisApi.TextureViewSetLabel(ref textureView.GetPinnableReference(), in label.GetPinnableReference()); + } + + /// To be documented. + [NativeName("Src", "Line 1586, Column 18 in webgpu.h")] + public static unsafe void TextureViewSetLabel(this WebGPU thisApi, Span textureView, [Flow(FlowDirection.In), UnmanagedType(Silk.NET.Core.Native.UnmanagedType.LPUTF8Str)] string label) + { + // SpanOverloader + thisApi.TextureViewSetLabel(ref textureView.GetPinnableReference(), label); + } + + } +} + diff --git a/src/WebGPU/Silk.NET.WebGPU/WebGPUSurface.cs b/src/WebGPU/Silk.NET.WebGPU/WebGPUSurface.cs new file mode 100644 index 0000000000..cd8e5d9a18 --- /dev/null +++ b/src/WebGPU/Silk.NET.WebGPU/WebGPUSurface.cs @@ -0,0 +1,132 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +using System; +using System.Runtime.InteropServices; +using Silk.NET.Core.Contexts; +using Silk.NET.Core.Native; + +namespace Silk.NET.WebGPU; + +/// +/// A helper class to aid in getting a WebGPU Surface* +/// +public static class WebGPUSurface +{ + /// + /// Creates a WebGPU surface from a window. + /// + /// A WebGPU instance + /// The window to get the surface from + /// A newly created Surface*/ + /// Throws when an unsupported platform is detected. + public static unsafe Surface* CreateWebGPUSurface(this INativeWindowSource view, NET.WebGPU.WebGPU wgpu, Instance* instance = null) + { + var descriptor = new SurfaceDescriptor(); + + if (RuntimeInformation.IsOSPlatform(OSPlatform.Create("BROWSER"))) + { + var htmlDescriptor = new SurfaceDescriptorFromCanvasHTMLSelector + { + Chain = new ChainedStruct + { + Next = null, + SType = SType.SurfaceDescriptorFromCanvasHtmlselector + }, + Selector = (byte*) SilkMarshal.StringToPtr("canvas") + }; + + descriptor.NextInChain = (ChainedStruct*) (&htmlDescriptor); + } + else if (view.Native.X11 != null) + { + var xlibDescriptor = new SurfaceDescriptorFromXlibWindow + { + Chain = new ChainedStruct + { + Next = null, + SType = SType.SurfaceDescriptorFromXlibWindow + }, + Display = (void*) view.Native.X11.Value.Display, + Window = (uint) view.Native.X11.Value.Window + }; + + descriptor.NextInChain = (ChainedStruct*) (&xlibDescriptor); + } + else if (view.Native.Cocoa != null) + { + throw new PlatformNotSupportedException("WebGPU on MacOS is not supported at this time!"); + + var cocoa = view.Native.Cocoa.Value; + + var cocoaDescriptor = new SurfaceDescriptorFromMetalLayer + { + Chain = new ChainedStruct + { + Next = null, + SType = SType.SurfaceDescriptorFromMetalLayer + }, + Layer = null //TODO: Get the layer from the window + }; + } + else if (view.Native.Wayland != null) + { + var waylandDescriptor = new SurfaceDescriptorFromWaylandSurface + { + Chain = new ChainedStruct + { + Next = null, + SType = SType.SurfaceDescriptorFromWaylandSurface + }, + Display = (void*) view.Native.Wayland.Value.Display, + Surface = (void*) view.Native.Wayland.Value.Surface + }; + + descriptor.NextInChain = (ChainedStruct*) (&waylandDescriptor); + } + else if (view.Native.Win32 != null) + { + var win32Descriptor = new SurfaceDescriptorFromWindowsHWND + { + Chain = new ChainedStruct + { + Next = null, + SType = SType.SurfaceDescriptorFromWindowsHwnd + }, + Hwnd = (void*) view.Native.Win32.Value.Hwnd, + Hinstance = (void*) view.Native.Win32.Value.HInstance + }; + + descriptor.NextInChain = (ChainedStruct*) (&win32Descriptor); + } + else if (view.Native.Android != null) + { + var androidDescriptor = new SurfaceDescriptorFromAndroidNativeWindow + { + Chain = new ChainedStruct + { + Next = null, + SType = SType.SurfaceDescriptorFromAndroidNativeWindow + }, + Window = (void*) view.Native.Android.Value.Window + }; + + descriptor.NextInChain = (ChainedStruct*) (&androidDescriptor); + } + else + { + throw new PlatformNotSupportedException($"Your platform is not supported! {view.Native.Kind}"); + } + + var surface = wgpu.InstanceCreateSurface(instance, descriptor); + + if (descriptor.NextInChain->SType == SType.SurfaceDescriptorFromCanvasHtmlselector) + { + var htmlDescriptor = (SurfaceDescriptorFromCanvasHTMLSelector*) descriptor.NextInChain; + + SilkMarshal.Free((IntPtr) htmlDescriptor->Selector); + } + + return surface; + } +} diff --git a/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs b/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs index 97d1d805c9..b4f81a672f 100644 --- a/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs +++ b/src/Windowing/Silk.NET.Windowing.Glfw/GlfwWindow.cs @@ -297,7 +297,7 @@ protected override void CoreInitialize(WindowOptions opts) // Set window class. _windowClass = opts.WindowClass ?? Window.DefaultWindowClass; - _glfw.WindowHintString((int)WindowHintString.X11ClassName, _windowClass); + _glfw.WindowHintString((int) WindowHintString.X11ClassName, _windowClass); // Set window API. switch (opts.API.API) @@ -316,40 +316,46 @@ protected override void CoreInitialize(WindowOptions opts) _glfw.WindowHint(WindowHintBool.Visible, opts.IsVisible); - // Set API version. - _glfw.WindowHint(WindowHintInt.ContextVersionMajor, opts.API.Version.MajorVersion); - _glfw.WindowHint(WindowHintInt.ContextVersionMinor, opts.API.Version.MinorVersion); - - // Set API flags - if ((opts.API.Flags & ContextFlags.ForwardCompatible) != 0) - { - _glfw.WindowHint(WindowHintBool.OpenGLForwardCompat, true); + // If there is an API specified, set the GLFW API version. + if (opts.API.API != ContextAPI.None) + { + _glfw.WindowHint(WindowHintInt.ContextVersionMajor, opts.API.Version.MajorVersion); + _glfw.WindowHint(WindowHintInt.ContextVersionMinor, opts.API.Version.MinorVersion); } - if ((opts.API.Flags & ContextFlags.Debug) != 0) + if (opts.API.API is ContextAPI.OpenGL or ContextAPI.OpenGLES) { - _glfw.WindowHint(WindowHintBool.OpenGLDebugContext, true); - } + // Set API flags + if ((opts.API.Flags & ContextFlags.ForwardCompatible) != 0) + { + _glfw.WindowHint(WindowHintBool.OpenGLForwardCompat, true); + } - if ((opts.API.Version.MajorVersion == 3 && opts.API.Version.MinorVersion >= 2) || opts.API.Version.MajorVersion > 3) - { - // Set API profile - _glfw.WindowHint - ( - WindowHintOpenGlProfile.OpenGlProfile, - opts.API.Profile == ContextProfile.Core ? OpenGlProfile.Core : OpenGlProfile.Compat - ); + if ((opts.API.Flags & ContextFlags.Debug) != 0) + { + _glfw.WindowHint(WindowHintBool.OpenGLDebugContext, true); + } + + if ((opts.API.Version.MajorVersion == 3 && opts.API.Version.MinorVersion >= 2) || opts.API.Version.MajorVersion > 3) + { + // Set API profile + _glfw.WindowHint + ( + WindowHintOpenGlProfile.OpenGlProfile, + opts.API.Profile == ContextProfile.Core ? OpenGlProfile.Core : OpenGlProfile.Compat + ); + } } // Set video mode (-1 = don't care) - _glfw.WindowHint(WindowHintInt.RefreshRate, opts.VideoMode.RefreshRate ?? -1); - _glfw.WindowHint(WindowHintInt.DepthBits, opts.PreferredDepthBufferBits ?? -1); - _glfw.WindowHint(WindowHintInt.StencilBits, opts.PreferredStencilBufferBits ?? -1); + _glfw.WindowHint(WindowHintInt.RefreshRate, opts.VideoMode.RefreshRate ?? GLFW.Glfw.DontCare); + _glfw.WindowHint(WindowHintInt.DepthBits, opts.PreferredDepthBufferBits ?? GLFW.Glfw.DontCare); + _glfw.WindowHint(WindowHintInt.StencilBits, opts.PreferredStencilBufferBits ?? GLFW.Glfw.DontCare); - _glfw.WindowHint(WindowHintInt.RedBits, opts.PreferredBitDepth?.X ?? -1); - _glfw.WindowHint(WindowHintInt.GreenBits, opts.PreferredBitDepth?.Y ?? -1); - _glfw.WindowHint(WindowHintInt.BlueBits, opts.PreferredBitDepth?.Z ?? -1); + _glfw.WindowHint(WindowHintInt.RedBits, opts.PreferredBitDepth?.X ?? GLFW.Glfw.DontCare); + _glfw.WindowHint(WindowHintInt.GreenBits, opts.PreferredBitDepth?.Y ?? GLFW.Glfw.DontCare); + _glfw.WindowHint(WindowHintInt.BlueBits, opts.PreferredBitDepth?.Z ?? GLFW.Glfw.DontCare); if (opts.TransparentFramebuffer && (opts.PreferredBitDepth?.W ?? -1) != -1) { _glfw.WindowHint(WindowHintInt.AlphaBits, opts.PreferredBitDepth?.W ?? -1); @@ -370,7 +376,7 @@ protected override void CoreInitialize(WindowOptions opts) _glfwWindow = _glfw.CreateWindow ( opts.Size.X, opts.Size.Y, opts.Title, - !(_initialMonitor is null) ? _initialMonitor.Handle : null, + _initialMonitor is not null ? _initialMonitor.Handle : null, share switch { null => null, @@ -389,7 +395,7 @@ protected override void CoreInitialize(WindowOptions opts) _glfw.HideWindow(_glfwWindow); } - if (opts.API.API == ContextAPI.OpenGL || opts.API.API == ContextAPI.OpenGLES) + if (opts.API.API is ContextAPI.OpenGL or ContextAPI.OpenGLES) { _glfw.MakeContextCurrent(_glfwWindow); }