From 6dfd8c138d9dd15499154f64062c7ce53df6350b Mon Sep 17 00:00:00 2001 From: Dylan Perks Date: Sun, 9 Apr 2023 22:08:16 +0100 Subject: [PATCH] Fix a regression with some OpenGL Span overloads (v2.17.1) (fixes #1394) --- build/props/common.props | 46 +-- .../Silk.NET.BuildTools/Bind/ClassWriter.cs | 8 +- .../Silk.NET.BuildTools/Bind/ProfileWriter.cs | 2 +- .../Silk.NET.BuildTools/Bind/ProjectWriter.cs | 12 +- .../Complex/ImplicitCountSpanOverloader.cs | 2 +- .../ArbBaseInstance.gen.cs | 16 +- .../ArbBufferStorage.gen.cs | 8 +- .../ArbDirectStateAccess.gen.cs | 34 +- .../ArbES2Compatibility.gen.cs | 16 +- .../ArbGetProgramBinary.gen.cs | 10 +- .../ArbGetTextureSubImage.gen.cs | 10 +- .../ArbRobustness.gen.cs | 28 +- .../ExtDirectStateAccess.gen.cs | 156 ++++---- .../NVPathRendering.gen.cs | 4 +- .../AppleTextureRange.gen.cs | 2 +- .../AppleVertexArrayRange.gen.cs | 4 +- .../ArbBaseInstance.gen.cs | 16 +- .../ArbBufferStorage.gen.cs | 8 +- .../ArbDirectStateAccess.gen.cs | 34 +- .../ArbES2Compatibility.gen.cs | 16 +- .../ArbFragmentProgram.gen.cs | 8 +- .../ArbGetProgramBinary.gen.cs | 10 +- .../ArbGetTextureSubImage.gen.cs | 10 +- .../ArbRobustness.gen.cs | 188 +++++----- .../ArbTextureCompression.gen.cs | 48 +-- .../ArbVertexBufferObject.gen.cs | 16 +- .../ArbVertexProgram.gen.cs | 8 +- .../AtiVertexArrayObject.gen.cs | 8 +- .../ExtDirectStateAccess.gen.cs | 156 ++++---- .../GremedyStringMarker.gen.cs | 2 +- .../KhrRobustness.gen.cs | 8 +- .../NVPathRendering.gen.cs | 4 +- .../NVPixelDataRange.gen.cs | 4 +- .../ExtBaseInstance.gen.cs | 16 +- .../ExtBufferStorage.gen.cs | 8 +- .../ExtRobustness.gen.cs | 8 +- .../KhrRobustness.gen.cs | 8 +- .../NVPathRendering.gen.cs | 4 +- .../OesGetProgramBinary.gen.cs | 10 +- .../OesTexture3D.gen.cs | 16 +- src/OpenGL/Silk.NET.OpenGL.Legacy/GL.gen.cs | 346 +++++++++--------- src/OpenGL/Silk.NET.OpenGL/GL.gen.cs | 346 +++++++++--------- src/OpenGL/Silk.NET.OpenGLES/GL.gen.cs | 78 ++-- .../ExtDescriptorBuffer.gen.cs | 4 +- .../ExtOpacityMicromap.gen.cs | 4 +- .../KhrAccelerationStructure.gen.cs | 4 +- .../KhrRayTracingPipeline.gen.cs | 4 +- .../NVRayTracing.gen.cs | 4 +- src/Vulkan/Silk.NET.Vulkan/Vk.gen.cs | 6 +- 49 files changed, 866 insertions(+), 902 deletions(-) diff --git a/build/props/common.props b/build/props/common.props index 1330f9796f..f27efbadb1 100644 --- a/build/props/common.props +++ b/build/props/common.props @@ -12,56 +12,14 @@ 10 .NET Foundation and Contributors - Silk.NET Spring 2023 Update 1 - - - Added zero-cost extension methods for ComPtrs, making our DirectX bindings easier to use and higher quality than ever before. - - Added WebGPU bindings for Dawn and WGPU. - - Added Direct2D bindings. (massive thank you to @curin) - - Added DirectComposition bindings. (again, massive preesh to @curin) - - Added DirectWrite bindings. - - Added d3d11on12 bindings. - - Added WGL bindings. - - Added support for Android 12. - - Added support for OpenAL disconnect extension. (thanks @okaniku) - - Added GLFW API constants for ANGLE. (thanks @cyraid) - - Added extension functions for OpenAL BufferData to make use of AL_EXT_float32 enums. - - Added ReopenDevices extension for OpenAL Soft. (thanks @LeNitrous) - - Added BufferCallback extension for OpenAL Soft. - - Added Vulkan structure chain polymorphism. (thanks @Khitiara for the proposal) - - Added SDL/GLFW native libraries for Windows on ARM64. - - Added IsScancodePressed function in Silk.NET Input. - - Added TopMost in Silk.NET Windowing (thanks @MarioGK) - - Added EGL display and surface to INativeWindow. - - Added an explicit check against calling Reset on a window while within the render loop of said window. - - Added support for multiple native binary candidate paths for a single binding. - - Improved support for WASM and AOT in the Silk.NET loader. - - Improved support for Windows on ARM64. - - Improved Silk.NET.Maths generic specialization codegen. - - Improved support for DXVK, including a new DXHandle property in INativeWindow for getting Linux HWND equivalents. - - Improved support for Silk.NET.Windowing under reflection-free NativeAOT - - Updated to SDL 2.24. - - Updated to Vulkan 1.3.246. - - Updated to DirectStorage 1.1.1. - - Updated to OpenXR 1.0.27. - - Updated to Assimp 5.2.5. - - Updated to latest OpenCL specifications. - - Updated to latest OpenGL specifications. - - Updated to latest ImGui. - - Fixed XInput GetApi not being implemented. (thanks @skyebird189) - - Fixed TransparentBuffer not being applied correctly without specifying a PreferredBitDepth. (thanks @MarioGK) - - Fixed wide string marshalling. - - Fixed string array marshalling on systems where the max DBCS character size is insufficient for UTF8. - - Fixed Span overloads not calculating the correct length value for ommitted (implicit) length parameters. - - Fixed copying of native libraries under .NET Framework 4.6.1. (thanks @paralaxsd) - - Fixed SDL crashing on Android when the screen rotates in some cases. - - Fixed a memory leak when using GlobalMemory to marshal string arrays instead of StringArrayToPtr. (thanks @Khitiara) + Fix a minor regression with some OpenGL Span overloads. Read more about the 2.17 update here: https://dotnet.github.io/Silk.NET/blog/apr-2023/silk2170.html OpenCL;OpenGL;OpenAL;OpenGLES;GLES;Vulkan;Assimp;DirectX;GLFW;SDL;Windowing;Input;Gamepad;Joystick;Keyboard;Mouse;SilkTouch;Source;Generator;C#;F#;.NET;DotNet;Mono;Vector;Math;Maths;Numerics;Game;Graphics;Compute;Audio;Sound;Engine;Silk;Silk.NET;Slim.NET;ElgarTK;GPU;Sharp;Science;Scientific;Visualization;Visual;Audiovisual;Windows;macOS;Linux;Android;Bindings;OSX;Wrapper;Native true $(MSBuildThisFileDirectory)/../output_packages https://github.com/dotnet/Silk.NET Git - 2.17 + 2.17.1 Silk.NET is a high-speed, advanced library, providing bindings to popular low-level APIs such as OpenGL, OpenCL, OpenAL, OpenXR, GLFW, SDL, Vulkan, Assimp, and DirectX. diff --git a/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs b/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs index 8a78e7afca..31022310ff 100644 --- a/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs +++ b/src/Core/Silk.NET.BuildTools/Bind/ClassWriter.cs @@ -65,7 +65,7 @@ public static void WriteNameContainer(this Project project, Profile profile, str /// The current project. /// The profile to write mixed-mode classes for. /// The folder to store the generated classes in. - public static void WriteMixedModeClasses(this Project project, Profile profile, string folder, BindState task) + public static void WriteMixedModeClasses(this Project project, Profile profile, string folder, string manualFolder, BindState task) { // public abstract class MixedModeClass : IMixedModeClass // { @@ -245,9 +245,9 @@ static string GetSignature(Function func) FinishOverloadsFile(swOverloads); sw.Flush(); sw.Dispose(); - if (!File.Exists(Path.Combine(folder, $"{@class.ClassName}.cs")) && allFunctions.Any()) + if (!File.Exists(Path.Combine(manualFolder, $"{@class.ClassName}.cs")) && allFunctions.Any()) { - sw = new StreamWriter(Path.Combine(folder, $"{@class.ClassName}.cs")) {NewLine = "\n"}; + sw = new StreamWriter(Path.Combine(manualFolder, $"{@class.ClassName}.cs")) {NewLine = "\n"}; sw.WriteCoreUsings(); sw.WriteLine("using static Silk.NET.Core.Attributes.ExtensionAttribute;"); sw.WriteLine(); @@ -296,7 +296,7 @@ static string GetSignature(Function func) if (!(task.Task.NameContainer is null)) { project.WriteNameContainer - (profile, Path.Combine(folder, $"{task.Task.NameContainer.ClassName}.cs"), task); + (profile, Path.Combine(manualFolder, $"{task.Task.NameContainer.ClassName}.cs"), task); } } else diff --git a/src/Core/Silk.NET.BuildTools/Bind/ProfileWriter.cs b/src/Core/Silk.NET.BuildTools/Bind/ProfileWriter.cs index 5d33c5f5a5..232dab36be 100644 --- a/src/Core/Silk.NET.BuildTools/Bind/ProfileWriter.cs +++ b/src/Core/Silk.NET.BuildTools/Bind/ProfileWriter.cs @@ -103,7 +103,7 @@ public static void Flush(this Profile profile, BindTask originalTask, Config con Directory.CreateDirectory(folder); } - proj.Value.WriteGeneratedCode(tmpFolder, profile, task); + proj.Value.WriteGeneratedCode(tmpFolder, folder, profile, task); if (doCheck) { var filesBefore = Directory.GetFiles(folder, "*", SearchOption.AllDirectories) diff --git a/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs b/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs index ae5a32fc14..df448d4bf4 100644 --- a/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs +++ b/src/Core/Silk.NET.BuildTools/Bind/ProjectWriter.cs @@ -39,14 +39,20 @@ private static string GetFileName(string name, string ext, params string[] direc /// Writes this project in the given folder, with the given settings and parent subsystem. /// /// The project to write. - /// The folder to write this project to. + /// The folder to write this project's .gen.cs files to. + /// The folder to write this project's .cs (i.e. non-.gen.cs) files to. /// The parent subsystem. - public static void WriteGeneratedCode(this Project project, string folder, Profile profile, BindState task) + public static void WriteGeneratedCode(this Project project, string folder, string manualFolder, Profile profile, BindState task) { if (!Directory.Exists(folder)) { Directory.CreateDirectory(folder); } + + if (!Directory.Exists(manualFolder)) + { + Directory.CreateDirectory(manualFolder); + } if (!Directory.Exists(Path.Combine(folder, ProfileWriter.EnumsSubfolder))) { @@ -92,7 +98,7 @@ public static void WriteGeneratedCode(this Project project, string folder, Profi ); }); - project.WriteMixedModeClasses(profile, folder, task); + project.WriteMixedModeClasses(profile, folder, manualFolder, task); } /// diff --git a/src/Core/Silk.NET.BuildTools/Overloading/Complex/ImplicitCountSpanOverloader.cs b/src/Core/Silk.NET.BuildTools/Overloading/Complex/ImplicitCountSpanOverloader.cs index 9a01bbce46..f3ad81af93 100644 --- a/src/Core/Silk.NET.BuildTools/Overloading/Complex/ImplicitCountSpanOverloader.cs +++ b/src/Core/Silk.NET.BuildTools/Overloading/Complex/ImplicitCountSpanOverloader.cs @@ -143,7 +143,7 @@ public bool TryGetFunctionVariant(Function original, out ImplementedFunction var $"$VAR${original.Parameters[spanParamIndex].Count?.Expression}" ).Replace("$VAR$", $"{original.Parameters[spanParamIndex].Name}.Length"); var lengthParam = $"({original.Parameters[countParamIndex].Type}) " + ( - original.Parameters[spanParamIndex].Type.IsSinglePointerTo("void") + original.Parameters[spanParamIndex].Type.IsGenericTypeParameterReference ? $"(({lengthExpr}) * Unsafe.SizeOf<{original.Parameters[spanParamIndex].Type.Name}>())" : lengthExpr); parameters[countParamIndex] = null; diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBaseInstance.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBaseInstance.gen.cs index 151d1b942d..c8f80c1b1a 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBaseInstance.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBaseInstance.gen.cs @@ -77,49 +77,49 @@ public unsafe partial class ArbBaseInstance : NativeExtension public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public ArbBaseInstance(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBufferStorage.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBufferStorage.gen.cs index 1a16a68431..6475622500 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBufferStorage.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbBufferStorage.gen.cs @@ -47,25 +47,25 @@ public unsafe partial class ArbBufferStorage : NativeExtension public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public ArbBufferStorage(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbDirectStateAccess.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbDirectStateAccess.gen.cs index 4803442a09..3ee6a90403 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbDirectStateAccess.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbDirectStateAccess.gen.cs @@ -1037,37 +1037,37 @@ public unsafe partial class ArbDirectStateAccess : NativeExtension public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe uint CreateBuffer() @@ -1304,37 +1304,37 @@ public unsafe void CreateVertexArrays([Count(Parameter = "n"), Flow(Silk.NET.Cor public unsafe void GetCompressedTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureImage(texture, level, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureImage(texture, level, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetNamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetNamedBufferSubData(buffer, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetNamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void InvalidateNamedFramebufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "numAttachments"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan attachments) @@ -1364,31 +1364,31 @@ public unsafe void InvalidateNamedFramebufferSubData([Flow(Silk.NET.Core.Native. public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VertexBufferObjectUsage usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferSubData(buffer, offset, (nuint) data.Length, in data.GetPinnableReference()); + NamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void NamedFramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bufs) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbES2Compatibility.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbES2Compatibility.gen.cs index ce71f0b02a..db8f80b0b0 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbES2Compatibility.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbES2Compatibility.gen.cs @@ -128,7 +128,7 @@ public unsafe partial class ArbES2Compatibility : NativeExtension public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -140,13 +140,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -158,13 +158,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -176,13 +176,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -194,7 +194,7 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe int GetShaderPrecisionFormat([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB shadertype, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB precisiontype, [Count(Count = 2), Flow(Silk.NET.Core.Native.FlowDirection.Out)] int* range) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetProgramBinary.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetProgramBinary.gen.cs index c0a4e9d8cd..372426ceea 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetProgramBinary.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetProgramBinary.gen.cs @@ -59,31 +59,31 @@ public unsafe partial class ArbGetProgramBinary : NativeExtension public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] ARB* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out ARB binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] ARB* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out ARB binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void ProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe T0 GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] ARB* binaryFormat) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetTextureSubImage.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetTextureSubImage.gen.cs index 75b0ba09ed..ffacc01d95 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetTextureSubImage.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbGetTextureSubImage.gen.cs @@ -53,31 +53,31 @@ public unsafe partial class ArbGetTextureSubImage : NativeExtension public unsafe void GetCompressedTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe T0 GetCompressedTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbRobustness.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbRobustness.gen.cs index e49b74198e..35a06dcd10 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbRobustness.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.ARB/ArbRobustness.gen.cs @@ -134,61 +134,61 @@ public unsafe partial class ArbRobustness : NativeExtension public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) img.Length, out img.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) img.Length, out img.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe float GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location) @@ -227,25 +227,25 @@ public unsafe void GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uin public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe T0 GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.EXT/ExtDirectStateAccess.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.EXT/ExtDirectStateAccess.gen.cs index 4915d37240..b71affc7da 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.EXT/ExtDirectStateAccess.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.EXT/ExtDirectStateAccess.gen.cs @@ -4904,433 +4904,433 @@ public unsafe partial class ExtDirectStateAccess : NativeExtension public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void FramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bufs) @@ -5348,13 +5348,13 @@ public unsafe void FramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirecti public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedProgramLocalParameters4([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint index, [Count(Parameter = "count", Expression = "*4"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @params) @@ -5396,25 +5396,25 @@ public unsafe void NamedProgramLocalParametersI4([Flow(Silk.NET.Core.Native.Flow public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramUniform1([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan value) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.NV/NVPathRendering.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.NV/NVPathRendering.gen.cs index 37393d7913..7f9655fdda 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.NV/NVPathRendering.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Extensions.NV/NVPathRendering.gen.cs @@ -1865,13 +1865,13 @@ public unsafe void PathDashArray([Flow(Silk.NET.Core.Native.FlowDirection.In)] u public unsafe void PathString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] NV format, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pathString) where T0 : unmanaged { // ImplicitCountSpanOverloader - PathString(path, format, (uint) pathString.Length, in pathString.GetPinnableReference()); + PathString(path, format, (uint) ((pathString.Length) * Unsafe.SizeOf()), in pathString.GetPinnableReference()); } public unsafe void PathString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PathStringFormat format, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pathString) where T0 : unmanaged { // ImplicitCountSpanOverloader - PathString(path, format, (uint) pathString.Length, in pathString.GetPinnableReference()); + PathString(path, format, (uint) ((pathString.Length) * Unsafe.SizeOf()), in pathString.GetPinnableReference()); } public unsafe void PathSubCommands([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint commandStart, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint commandsToDelete, [Count(Parameter = "numCommands"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan commands, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint numCoords, [Flow(Silk.NET.Core.Native.FlowDirection.In)] NV coordType, [Count(Computed = "numCoords, coordType"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* coords) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleTextureRange.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleTextureRange.gen.cs index f9d47e0b2d..ceea9dc7ea 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleTextureRange.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleTextureRange.gen.cs @@ -35,7 +35,7 @@ public unsafe partial class AppleTextureRange : NativeExtension public unsafe void TextureRange([Flow(Silk.NET.Core.Native.FlowDirection.In)] APPLE target, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pointer) where T0 : unmanaged { // ImplicitCountSpanOverloader - TextureRange(target, (uint) pointer.Length, in pointer.GetPinnableReference()); + TextureRange(target, (uint) ((pointer.Length) * Unsafe.SizeOf()), in pointer.GetPinnableReference()); } public unsafe void* GetTexParameterPointer([Flow(Silk.NET.Core.Native.FlowDirection.In)] APPLE target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] APPLE pname) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleVertexArrayRange.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleVertexArrayRange.gen.cs index 073e734135..8d2a68e6a0 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleVertexArrayRange.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.APPLE/AppleVertexArrayRange.gen.cs @@ -41,13 +41,13 @@ public unsafe partial class AppleVertexArrayRange : NativeExtension public unsafe void FlushVertexArrayRange([Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pointer) where T0 : unmanaged { // ImplicitCountSpanOverloader - FlushVertexArrayRange((uint) pointer.Length, out pointer.GetPinnableReference()); + FlushVertexArrayRange((uint) ((pointer.Length) * Unsafe.SizeOf()), out pointer.GetPinnableReference()); } public unsafe void VertexArrayRange([Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pointer) where T0 : unmanaged { // ImplicitCountSpanOverloader - VertexArrayRange((uint) pointer.Length, out pointer.GetPinnableReference()); + VertexArrayRange((uint) ((pointer.Length) * Unsafe.SizeOf()), out pointer.GetPinnableReference()); } public unsafe T0 FlushVertexArrayRange([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBaseInstance.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBaseInstance.gen.cs index 5461cb1a29..8a659db66f 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBaseInstance.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBaseInstance.gen.cs @@ -77,49 +77,49 @@ public unsafe partial class ArbBaseInstance : NativeExtension public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public ArbBaseInstance(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBufferStorage.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBufferStorage.gen.cs index f1b10d8af3..1e287f8edd 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBufferStorage.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbBufferStorage.gen.cs @@ -47,25 +47,25 @@ public unsafe partial class ArbBufferStorage : NativeExtension public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public ArbBufferStorage(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbDirectStateAccess.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbDirectStateAccess.gen.cs index a98d64ff49..6bcfde745a 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbDirectStateAccess.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbDirectStateAccess.gen.cs @@ -1037,37 +1037,37 @@ public unsafe partial class ArbDirectStateAccess : NativeExtension public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe uint CreateBuffer() @@ -1304,37 +1304,37 @@ public unsafe void CreateVertexArrays([Count(Parameter = "n"), Flow(Silk.NET.Cor public unsafe void GetCompressedTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureImage(texture, level, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureImage(texture, level, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetNamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetNamedBufferSubData(buffer, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetNamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void InvalidateNamedFramebufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "numAttachments"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan attachments) @@ -1364,31 +1364,31 @@ public unsafe void InvalidateNamedFramebufferSubData([Flow(Silk.NET.Core.Native. public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VertexBufferObjectUsage usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferSubData(buffer, offset, (nuint) data.Length, in data.GetPinnableReference()); + NamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void NamedFramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bufs) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbES2Compatibility.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbES2Compatibility.gen.cs index 5e211081b3..e3424a277d 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbES2Compatibility.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbES2Compatibility.gen.cs @@ -128,7 +128,7 @@ public unsafe partial class ArbES2Compatibility : NativeExtension public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -140,13 +140,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -158,13 +158,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -176,13 +176,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -194,7 +194,7 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe int GetShaderPrecisionFormat([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB shadertype, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB precisiontype, [Count(Count = 2), Flow(Silk.NET.Core.Native.FlowDirection.Out)] int* range) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbFragmentProgram.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbFragmentProgram.gen.cs index 016bafd85f..58806a2bf0 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbFragmentProgram.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbFragmentProgram.gen.cs @@ -287,25 +287,25 @@ public unsafe void GenProgram([Count(Parameter = "n"), Flow(Silk.NET.Core.Native public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe uint GenProgram([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint n) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetProgramBinary.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetProgramBinary.gen.cs index cdf865ad2e..a78349dfc3 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetProgramBinary.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetProgramBinary.gen.cs @@ -59,31 +59,31 @@ public unsafe partial class ArbGetProgramBinary : NativeExtension public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] ARB* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out ARB binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] ARB* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out ARB binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void ProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe T0 GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] ARB* binaryFormat) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetTextureSubImage.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetTextureSubImage.gen.cs index 5400545c8b..b96c919b7b 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetTextureSubImage.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbGetTextureSubImage.gen.cs @@ -53,31 +53,31 @@ public unsafe partial class ArbGetTextureSubImage : NativeExtension public unsafe void GetCompressedTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe T0 GetCompressedTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbRobustness.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbRobustness.gen.cs index 605f90f1f4..f776e174d2 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbRobustness.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbRobustness.gen.cs @@ -635,157 +635,157 @@ public unsafe partial class ArbRobustness : NativeExtension public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) img.Length, out img.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) img.Length, out img.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe double GetnMap([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB query) @@ -899,49 +899,49 @@ public unsafe void GetnMap([Flow(Silk.NET.Core.Native.FlowDirection.In)] MapTarg public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe float GetnPixelMap([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB map) @@ -1022,337 +1022,337 @@ public unsafe void GetnPolygonStipple([Count(Parameter = "bufSize"), Flow(Silk.N public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTargetEXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span img) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) img.Length, out img.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((img.Length) * Unsafe.SizeOf()), out img.GetPinnableReference()); } public unsafe float GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location) @@ -1391,25 +1391,25 @@ public unsafe void GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uin public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe T0 GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbTextureCompression.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbTextureCompression.gen.cs index 1ca20a664c..710b9cf032 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbTextureCompression.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbTextureCompression.gen.cs @@ -179,145 +179,145 @@ public unsafe partial class ArbTextureCompression : NativeExtension public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe T0 GetCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexBufferObject.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexBufferObject.gen.cs index ca8e178257..d3f52051b4 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexBufferObject.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexBufferObject.gen.cs @@ -170,37 +170,37 @@ public unsafe partial class ArbVertexBufferObject : NativeExtension public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void DeleteBuffer([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffers) @@ -245,13 +245,13 @@ public unsafe void GenBuffers([Count(Parameter = "n"), Flow(Silk.NET.Core.Native public unsafe void GetBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetBufferSubData(target, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetBufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void GetBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetBufferSubData(target, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetBufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe uint GenBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint n) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexProgram.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexProgram.gen.cs index c17479c6ec..e1079e57f5 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexProgram.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ARB/ArbVertexProgram.gen.cs @@ -530,25 +530,25 @@ public unsafe void GenProgram([Count(Parameter = "n"), Flow(Silk.NET.Core.Native public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ARB format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramString(target, format, (uint) @string.Length, in @string.GetPinnableReference()); + ProgramString(target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe uint GenProgram([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint n) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ATI/AtiVertexArrayObject.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ATI/AtiVertexArrayObject.gen.cs index 2e45f820b1..19e7bf617d 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ATI/AtiVertexArrayObject.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.ATI/AtiVertexArrayObject.gen.cs @@ -167,25 +167,25 @@ public unsafe partial class AtiVertexArrayObject : NativeExtension public unsafe uint NewObjectBuffer([Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pointer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ATI usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - return NewObjectBuffer((uint) pointer.Length, in pointer.GetPinnableReference(), usage); + return NewObjectBuffer((uint) ((pointer.Length) * Unsafe.SizeOf()), in pointer.GetPinnableReference(), usage); } public unsafe uint NewObjectBuffer([Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pointer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ArrayObjectUsageATI usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - return NewObjectBuffer((uint) pointer.Length, in pointer.GetPinnableReference(), usage); + return NewObjectBuffer((uint) ((pointer.Length) * Unsafe.SizeOf()), in pointer.GetPinnableReference(), usage); } public unsafe void UpdateObjectBuffer([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pointer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ATI preserve) where T0 : unmanaged { // ImplicitCountSpanOverloader - UpdateObjectBuffer(buffer, offset, (uint) pointer.Length, in pointer.GetPinnableReference(), preserve); + UpdateObjectBuffer(buffer, offset, (uint) ((pointer.Length) * Unsafe.SizeOf()), in pointer.GetPinnableReference(), preserve); } public unsafe void UpdateObjectBuffer([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pointer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PreserveModeATI preserve) where T0 : unmanaged { // ImplicitCountSpanOverloader - UpdateObjectBuffer(buffer, offset, (uint) pointer.Length, in pointer.GetPinnableReference(), preserve); + UpdateObjectBuffer(buffer, offset, (uint) ((pointer.Length) * Unsafe.SizeOf()), in pointer.GetPinnableReference(), preserve); } public unsafe float GetArrayObject([Flow(Silk.NET.Core.Native.FlowDirection.In)] ATI array, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ATI pname) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.EXT/ExtDirectStateAccess.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.EXT/ExtDirectStateAccess.gen.cs index cc1f7adc75..44ff936f74 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.EXT/ExtDirectStateAccess.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.EXT/ExtDirectStateAccess.gen.cs @@ -4904,433 +4904,433 @@ public unsafe partial class ExtDirectStateAccess : NativeExtension public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage1D(texunit, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage2D(texunit, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexImage3D(texunit, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage1D(texunit, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage2D(texunit, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedMultiTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureUnit texunit, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedMultiTexSubImage3D(texunit, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage1D(texture, target, level, internalformat, width, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage2D(texture, target, level, internalformat, width, height, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureImage3D(texture, target, level, internalformat, width, height, depth, border, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage1D(texture, target, level, xoffset, width, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage2D(texture, target, level, xoffset, yoffset, width, height, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bits) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) bits.Length, in bits.GetPinnableReference()); + CompressedTextureSubImage3D(texture, target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((bits.Length) * Unsafe.SizeOf()), in bits.GetPinnableReference()); } public unsafe void FramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bufs) @@ -5348,13 +5348,13 @@ public unsafe void FramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirecti public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedProgramLocalParameters4([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint index, [Count(Parameter = "count", Expression = "*4"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @params) @@ -5396,25 +5396,25 @@ public unsafe void NamedProgramLocalParametersI4([Flow(Silk.NET.Core.Native.Flow public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void NamedProgramString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ProgramFormat format, [Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedProgramString(program, target, format, (uint) @string.Length, in @string.GetPinnableReference()); + NamedProgramString(program, target, format, (uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public unsafe void ProgramUniform1([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan value) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.GREMEDY/GremedyStringMarker.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.GREMEDY/GremedyStringMarker.gen.cs index 2a2a961b1a..e44b29afea 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.GREMEDY/GremedyStringMarker.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.GREMEDY/GremedyStringMarker.gen.cs @@ -29,7 +29,7 @@ public unsafe partial class GremedyStringMarker : NativeExtension public unsafe void StringMarker([Count(Parameter = "len"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan @string) where T0 : unmanaged { // ImplicitCountSpanOverloader - StringMarker((uint) @string.Length, in @string.GetPinnableReference()); + StringMarker((uint) ((@string.Length) * Unsafe.SizeOf()), in @string.GetPinnableReference()); } public GremedyStringMarker(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.KHR/KhrRobustness.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.KHR/KhrRobustness.gen.cs index 10be8c8842..c275c47b03 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.KHR/KhrRobustness.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.KHR/KhrRobustness.gen.cs @@ -95,25 +95,25 @@ public unsafe void GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uin public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe float GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPathRendering.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPathRendering.gen.cs index 5e97605822..24aa23f548 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPathRendering.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPathRendering.gen.cs @@ -2039,13 +2039,13 @@ public unsafe void PathDashArray([Flow(Silk.NET.Core.Native.FlowDirection.In)] u public unsafe void PathString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] NV format, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pathString) where T0 : unmanaged { // ImplicitCountSpanOverloader - PathString(path, format, (uint) pathString.Length, in pathString.GetPinnableReference()); + PathString(path, format, (uint) ((pathString.Length) * Unsafe.SizeOf()), in pathString.GetPinnableReference()); } public unsafe void PathString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PathStringFormat format, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pathString) where T0 : unmanaged { // ImplicitCountSpanOverloader - PathString(path, format, (uint) pathString.Length, in pathString.GetPinnableReference()); + PathString(path, format, (uint) ((pathString.Length) * Unsafe.SizeOf()), in pathString.GetPinnableReference()); } public unsafe void PathSubCommands([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint commandStart, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint commandsToDelete, [Count(Parameter = "numCommands"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan commands, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint numCoords, [Flow(Silk.NET.Core.Native.FlowDirection.In)] NV coordType, [Count(Computed = "numCoords, coordType"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* coords) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPixelDataRange.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPixelDataRange.gen.cs index f19b5b14c0..f5477e8914 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPixelDataRange.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGL.Legacy.Extensions.NV/NVPixelDataRange.gen.cs @@ -41,13 +41,13 @@ public unsafe partial class NVPixelDataRange : NativeExtension public unsafe void PixelDataRange([Flow(Silk.NET.Core.Native.FlowDirection.In)] NV target, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pointer) where T0 : unmanaged { // ImplicitCountSpanOverloader - PixelDataRange(target, (uint) pointer.Length, in pointer.GetPinnableReference()); + PixelDataRange(target, (uint) ((pointer.Length) * Unsafe.SizeOf()), in pointer.GetPinnableReference()); } public unsafe void PixelDataRange([Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelDataRangeTargetNV target, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pointer) where T0 : unmanaged { // ImplicitCountSpanOverloader - PixelDataRange(target, (uint) pointer.Length, in pointer.GetPinnableReference()); + PixelDataRange(target, (uint) ((pointer.Length) * Unsafe.SizeOf()), in pointer.GetPinnableReference()); } public NVPixelDataRange(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBaseInstance.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBaseInstance.gen.cs index c02e6d5bab..c234b7eba9 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBaseInstance.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBaseInstance.gen.cs @@ -77,49 +77,49 @@ public unsafe partial class ExtBaseInstance : NativeExtension public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public ExtBaseInstance(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBufferStorage.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBufferStorage.gen.cs index 37980c2820..d2dc1d21f9 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBufferStorage.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtBufferStorage.gen.cs @@ -47,25 +47,25 @@ public unsafe partial class ExtBufferStorage : NativeExtension public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public ExtBufferStorage(INativeContext ctx) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtRobustness.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtRobustness.gen.cs index 1dacc0179c..5aaadc6bcd 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtRobustness.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.EXT/ExtRobustness.gen.cs @@ -83,25 +83,25 @@ public unsafe void GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uin public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] EXT type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe float GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.KHR/KhrRobustness.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.KHR/KhrRobustness.gen.cs index 99bd9f59b2..37767e389c 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.KHR/KhrRobustness.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.KHR/KhrRobustness.gen.cs @@ -95,25 +95,25 @@ public unsafe void GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uin public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] KHR type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe float GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.NV/NVPathRendering.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.NV/NVPathRendering.gen.cs index 0337572a41..4a11e7d7b4 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.NV/NVPathRendering.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.NV/NVPathRendering.gen.cs @@ -1865,13 +1865,13 @@ public unsafe void PathDashArray([Flow(Silk.NET.Core.Native.FlowDirection.In)] u public unsafe void PathString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] NV format, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pathString) where T0 : unmanaged { // ImplicitCountSpanOverloader - PathString(path, format, (uint) pathString.Length, in pathString.GetPinnableReference()); + PathString(path, format, (uint) ((pathString.Length) * Unsafe.SizeOf()), in pathString.GetPinnableReference()); } public unsafe void PathString([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PathStringFormat format, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pathString) where T0 : unmanaged { // ImplicitCountSpanOverloader - PathString(path, format, (uint) pathString.Length, in pathString.GetPinnableReference()); + PathString(path, format, (uint) ((pathString.Length) * Unsafe.SizeOf()), in pathString.GetPinnableReference()); } public unsafe void PathSubCommands([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint path, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint commandStart, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint commandsToDelete, [Count(Parameter = "numCommands"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan commands, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint numCoords, [Flow(Silk.NET.Core.Native.FlowDirection.In)] NV coordType, [Count(Computed = "numCoords, coordType"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* coords) diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesGetProgramBinary.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesGetProgramBinary.gen.cs index b6d4500d0e..c5bb221023 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesGetProgramBinary.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesGetProgramBinary.gen.cs @@ -53,31 +53,31 @@ public unsafe partial class OesGetProgramBinary : NativeExtension public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] OES* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out OES binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] OES* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out OES binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void ProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] OES binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (int) binary.Length); + ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (int) ((binary.Length) * Unsafe.SizeOf())); } public unsafe T0 GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint bufSize, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] OES* binaryFormat) where T0 : unmanaged diff --git a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesTexture3D.gen.cs b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesTexture3D.gen.cs index 8b739cc03d..ae1ca118a6 100644 --- a/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesTexture3D.gen.cs +++ b/src/OpenGL/Extensions/Silk.NET.OpenGLES.Extensions.OES/OesTexture3D.gen.cs @@ -242,49 +242,49 @@ public unsafe partial class OesTexture3D : NativeExtension public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] OES target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] OES internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] OES target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] OES internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] OES target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] OES format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] OES target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] OES format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public OesTexture3D(INativeContext ctx) diff --git a/src/OpenGL/Silk.NET.OpenGL.Legacy/GL.gen.cs b/src/OpenGL/Silk.NET.OpenGL.Legacy/GL.gen.cs index 7c5e194fef..2de79f0a0c 100644 --- a/src/OpenGL/Silk.NET.OpenGL.Legacy/GL.gen.cs +++ b/src/OpenGL/Silk.NET.OpenGL.Legacy/GL.gen.cs @@ -14437,37 +14437,37 @@ public unsafe void SpecializeShader([Flow(Silk.NET.Core.Native.FlowDirection.In) public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe uint CreateBuffer() @@ -14704,223 +14704,223 @@ public unsafe void CreateVertexArrays([Count(Parameter = "n"), Flow(Silk.NET.Cor public unsafe void GetCompressedTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureImage(texture, level, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureImage(texture, level, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetCompressedTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetNamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetNamedBufferSubData(buffer, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetNamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe byte GetnPolygonStipple() @@ -14947,337 +14947,337 @@ public unsafe void GetnPolygonStipple([Count(Parameter = "bufSize"), Flow(Silk.N public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe double GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location) @@ -15316,49 +15316,49 @@ public unsafe void GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uin public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void InvalidateNamedFramebufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "numAttachments"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan attachments) @@ -15388,31 +15388,31 @@ public unsafe void InvalidateNamedFramebufferSubData([Flow(Silk.NET.Core.Native. public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VertexBufferObjectUsage usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferSubData(buffer, offset, (nuint) data.Length, in data.GetPinnableReference()); + NamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void NamedFramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bufs) @@ -15430,25 +15430,25 @@ public unsafe void NamedFramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDi public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void VertexArrayVertexBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint vaobj, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint first, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* buffers, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] nint* offsets, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan strides) @@ -15850,25 +15850,25 @@ public unsafe void BindVertexBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void DebugMessageControl([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum source, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum severity, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan ids, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool enabled) @@ -20954,49 +20954,49 @@ public unsafe void InvalidateSubFramebuffer([Flow(Silk.NET.Core.Native.FlowDirec public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void GetInternalformat([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum pname, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span @params) @@ -21109,25 +21109,25 @@ public unsafe void GenProgramPipelines([Count(Parameter = "n"), Flow(Silk.NET.Co public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] GLEnum* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out GLEnum binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] GLEnum* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out GLEnum binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramPipelineInfoLog([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint pipeline, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span infoLog) @@ -21157,7 +21157,7 @@ public unsafe void GetProgramPipelineInfoLog([Flow(Silk.NET.Core.Native.FlowDire public unsafe void ProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ProgramUniform1([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan value) @@ -21367,7 +21367,7 @@ public unsafe void ProgramUniformMatrix4x3([Flow(Silk.NET.Core.Native.FlowDirect public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -21379,13 +21379,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -21397,13 +21397,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -21415,13 +21415,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -21433,7 +21433,7 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void DeleteTransformFeedback([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint ids) @@ -22952,37 +22952,37 @@ public unsafe void UniformMatrix4([Flow(Silk.NET.Core.Native.FlowDirection.In)] public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void DeleteBuffer([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffers) @@ -23066,13 +23066,13 @@ public unsafe void GenQueries([Count(Parameter = "n"), Flow(Silk.NET.Core.Native public unsafe void GetBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetBufferSubData(target, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetBufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void GetBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetBufferSubData(target, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetBufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void MultiDrawArrays([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Count(Parameter = "drawcount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] int* first, [Count(Parameter = "drawcount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan count) @@ -23162,145 +23162,145 @@ public unsafe void MultiDrawElements([Flow(Silk.NET.Core.Native.FlowDirection.In public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } [System.Obsolete("Deprecated in version 1.1")] diff --git a/src/OpenGL/Silk.NET.OpenGL/GL.gen.cs b/src/OpenGL/Silk.NET.OpenGL/GL.gen.cs index d9be4bb148..6f7fe82ca7 100644 --- a/src/OpenGL/Silk.NET.OpenGL/GL.gen.cs +++ b/src/OpenGL/Silk.NET.OpenGL/GL.gen.cs @@ -11181,37 +11181,37 @@ public unsafe void SpecializeShader([Flow(Silk.NET.Core.Native.FlowDirection.In) public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage1D(texture, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTextureSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe uint CreateBuffer() @@ -11448,223 +11448,223 @@ public unsafe void CreateVertexArrays([Count(Parameter = "n"), Flow(Silk.NET.Cor public unsafe void GetCompressedTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureImage(texture, level, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureImage(texture, level, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetCompressedTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetCompressedTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetNamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetNamedBufferSubData(buffer, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetNamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnColorTable([Flow(Silk.NET.Core.Native.FlowDirection.In)] ColorTableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span table) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnColorTable(target, format, type, (uint) table.Length, out table.GetPinnableReference()); + GetnColorTable(target, format, type, (uint) ((table.Length) * Unsafe.SizeOf()), out table.GetPinnableReference()); } public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnCompressedTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int lod, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnCompressedTexImage(target, lod, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnCompressedTexImage(target, lod, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnConvolutionFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] ConvolutionTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span image) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnConvolutionFilter(target, format, type, (uint) image.Length, out image.GetPinnableReference()); + GetnConvolutionFilter(target, format, type, (uint) ((image.Length) * Unsafe.SizeOf()), out image.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnHistogram([Flow(Silk.NET.Core.Native.FlowDirection.In)] HistogramTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnHistogram(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnHistogram(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe void GetnMinmax([Flow(Silk.NET.Core.Native.FlowDirection.In)] MinmaxTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool reset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnMinmax(target, reset, format, type, (uint) values.Length, out values.GetPinnableReference()); + GetnMinmax(target, reset, format, type, (uint) ((values.Length) * Unsafe.SizeOf()), out values.GetPinnableReference()); } public unsafe byte GetnPolygonStipple() @@ -11691,337 +11691,337 @@ public unsafe void GetnPolygonStipple([Count(Parameter = "bufSize"), Flow(Silk.N public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint rowBufSize, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, rowBufSize, row, (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint columnBufSize, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T1 span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), columnBufSize, column, out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), columnBufSize, column, out span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] void* span) where T0 : unmanaged where T1 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), span); } public unsafe void GetnSeparableFilter([Flow(Silk.NET.Core.Native.FlowDirection.In)] SeparableTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "rowBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span row, [Count(Parameter = "columnBufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span column, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out T2 span) where T0 : unmanaged where T1 : unmanaged where T2 : unmanaged { // ImplicitCountSpanOverloader - GetnSeparableFilter(target, format, type, (uint) row.Length, out row.GetPinnableReference(), (uint) column.Length, out column.GetPinnableReference(), out span); + GetnSeparableFilter(target, format, type, (uint) ((row.Length) * Unsafe.SizeOf()), out row.GetPinnableReference(), (uint) ((column.Length) * Unsafe.SizeOf()), out column.GetPinnableReference(), out span); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetnTexImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetnTexImage(target, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetnTexImage(target, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe double GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location) @@ -12060,49 +12060,49 @@ public unsafe void GetnUniform([Flow(Silk.NET.Core.Native.FlowDirection.In)] uin public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureImage(texture, level, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureImage(texture, level, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void GetTextureSubImage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint texture, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span pixels) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) pixels.Length, out pixels.GetPinnableReference()); + GetTextureSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth, format, type, (uint) ((pixels.Length) * Unsafe.SizeOf()), out pixels.GetPinnableReference()); } public unsafe void InvalidateNamedFramebufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "numAttachments"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan attachments) @@ -12132,31 +12132,31 @@ public unsafe void InvalidateNamedFramebufferSubData([Flow(Silk.NET.Core.Native. public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] VertexBufferObjectUsage usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferData(buffer, (nuint) data.Length, in data.GetPinnableReference(), usage); + NamedBufferData(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferStorage(buffer, (nuint) data.Length, in data.GetPinnableReference(), flags); + NamedBufferStorage(buffer, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void NamedBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffer, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - NamedBufferSubData(buffer, offset, (nuint) data.Length, in data.GetPinnableReference()); + NamedBufferSubData(buffer, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void NamedFramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint framebuffer, [Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan bufs) @@ -12174,25 +12174,25 @@ public unsafe void NamedFramebufferDrawBuffers([Flow(Silk.NET.Core.Native.FlowDi public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void VertexArrayVertexBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint vaobj, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint first, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* buffers, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] nint* offsets, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan strides) @@ -12594,25 +12594,25 @@ public unsafe void BindVertexBuffers([Flow(Silk.NET.Core.Native.FlowDirection.In public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void BufferStorage([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageTarget target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferStorageMask flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferStorage(target, (nuint) data.Length, in data.GetPinnableReference(), flags); + BufferStorage(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), flags); } public unsafe void DebugMessageControl([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum source, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum severity, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan ids, [Flow(Silk.NET.Core.Native.FlowDirection.In)] bool enabled) @@ -17698,49 +17698,49 @@ public unsafe void InvalidateSubFramebuffer([Flow(Silk.NET.Core.Native.FlowDirec public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, baseinstance); + DrawElementsInstancedBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void DrawElementsInstancedBaseVertexBaseInstance([Flow(Silk.NET.Core.Native.FlowDirection.In)] PrimitiveType mode, [Flow(Silk.NET.Core.Native.FlowDirection.In)] DrawElementsType type, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan indices, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint instancecount, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int basevertex, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint baseinstance) where T0 : unmanaged { // ImplicitCountSpanOverloader - DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) indices.Length, type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); + DrawElementsInstancedBaseVertexBaseInstance(mode, (uint) ((indices.Length) * Unsafe.SizeOf()), type, in indices.GetPinnableReference(), instancecount, basevertex, baseinstance); } public unsafe void GetInternalformat([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum pname, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span @params) @@ -17853,25 +17853,25 @@ public unsafe void GenProgramPipelines([Count(Parameter = "n"), Flow(Silk.NET.Co public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] GLEnum* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out GLEnum binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] GLEnum* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out GLEnum binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramPipelineInfoLog([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint pipeline, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span infoLog) @@ -17901,7 +17901,7 @@ public unsafe void GetProgramPipelineInfoLog([Flow(Silk.NET.Core.Native.FlowDire public unsafe void ProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ProgramUniform1([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int location, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan value) @@ -18111,7 +18111,7 @@ public unsafe void ProgramUniformMatrix4x3([Flow(Silk.NET.Core.Native.FlowDirect public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -18123,13 +18123,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -18141,13 +18141,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -18159,13 +18159,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -18177,7 +18177,7 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void DeleteTransformFeedback([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint ids) @@ -19696,37 +19696,37 @@ public unsafe void UniformMatrix4([Flow(Silk.NET.Core.Native.FlowDirection.In)] public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void DeleteBuffer([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffers) @@ -19810,13 +19810,13 @@ public unsafe void GenQueries([Count(Parameter = "n"), Flow(Silk.NET.Core.Native public unsafe void GetBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetBufferSubData(target, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetBufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void GetBufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetBufferSubData(target, offset, (nuint) data.Length, out data.GetPinnableReference()); + GetBufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void MultiDrawArrays([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum mode, [Count(Parameter = "drawcount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] int* first, [Count(Parameter = "drawcount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan count) @@ -19906,145 +19906,145 @@ public unsafe void MultiDrawElements([Flow(Silk.NET.Core.Native.FlowDirection.In public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage1D(target, level, internalformat, width, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage1D(target, level, internalformat, width, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage1D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage1D(target, level, xoffset, width, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void DeleteTexture([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint textures) diff --git a/src/OpenGL/Silk.NET.OpenGLES/GL.gen.cs b/src/OpenGL/Silk.NET.OpenGLES/GL.gen.cs index 5262493e6a..44c8e89e8c 100644 --- a/src/OpenGL/Silk.NET.OpenGLES/GL.gen.cs +++ b/src/OpenGL/Silk.NET.OpenGLES/GL.gen.cs @@ -11551,25 +11551,25 @@ public unsafe void GetObjectPtrLabel([Flow(Silk.NET.Core.Native.FlowDirectio public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe void ReadnPixels([Flow(Silk.NET.Core.Native.FlowDirection.In)] int x, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int y, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelFormat format, [Flow(Silk.NET.Core.Native.FlowDirection.In)] PixelType type, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span data) where T0 : unmanaged { // ImplicitCountSpanOverloader - ReadnPixels(x, y, width, height, format, type, (uint) data.Length, out data.GetPinnableReference()); + ReadnPixels(x, y, width, height, format, type, (uint) ((data.Length) * Unsafe.SizeOf()), out data.GetPinnableReference()); } public unsafe uint CreateShaderProgram([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum type, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] string[] stringsSa) @@ -11976,49 +11976,49 @@ public unsafe void ProgramUniformMatrix4x3([Flow(Silk.NET.Core.Native.FlowDirect public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage3D(target, level, internalformat, width, height, depth, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage3D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int zoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint depth, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void DeleteQuery([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint ids) @@ -12376,25 +12376,25 @@ public unsafe void GetInternalformat([Flow(Silk.NET.Core.Native.FlowDirection.In public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] GLEnum* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out GLEnum binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] GLEnum* binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out uint length, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] out GLEnum binaryFormat, [Count(Parameter = "bufSize"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetProgramBinary(program, (uint) binary.Length, out length, out binaryFormat, out binary.GetPinnableReference()); + GetProgramBinary(program, (uint) ((binary.Length) * Unsafe.SizeOf()), out length, out binaryFormat, out binary.GetPinnableReference()); } public unsafe void GetSync([Flow(Silk.NET.Core.Native.FlowDirection.In)] nint sync, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum pname, [Count(Count = 1), Flow(Silk.NET.Core.Native.FlowDirection.Out)] uint* length, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.Out)] Span values) @@ -12682,7 +12682,7 @@ public unsafe void InvalidateSubFramebuffer([Flow(Silk.NET.Core.Native.FlowDirec public unsafe void ProgramBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ProgramBinary(program, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void TransformFeedbackVaryings([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint program, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] string[] varyingsSa, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum bufferMode) @@ -12766,85 +12766,85 @@ public unsafe void UniformMatrix4x3([Flow(Silk.NET.Core.Native.FlowDirection.In) public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data, [Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferUsageARB usage) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferData(target, (nuint) data.Length, in data.GetPinnableReference(), usage); + BufferData(target, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference(), usage); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void BufferSubData([Flow(Silk.NET.Core.Native.FlowDirection.In)] BufferTargetARB target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] nint offset, [Count(Parameter = "size"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - BufferSubData(target, offset, (nuint) data.Length, in data.GetPinnableReference()); + BufferSubData(target, offset, (nuint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat internalformat, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int border, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexImage2D(target, level, internalformat, width, height, border, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void CompressedTexSubImage2D([Flow(Silk.NET.Core.Native.FlowDirection.In)] TextureTarget target, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int level, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int xoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] int yoffset, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint width, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint height, [Flow(Silk.NET.Core.Native.FlowDirection.In)] InternalFormat format, [Count(Parameter = "imageSize"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan data) where T0 : unmanaged { // ImplicitCountSpanOverloader - CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) data.Length, in data.GetPinnableReference()); + CompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, (uint) ((data.Length) * Unsafe.SizeOf()), in data.GetPinnableReference()); } public unsafe void DeleteBuffer([Count(Parameter = "n"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint buffers) @@ -13534,7 +13534,7 @@ public unsafe void GetShaderSource([Flow(Silk.NET.Core.Native.FlowDirection.In)] public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -13546,13 +13546,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] uint* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -13564,13 +13564,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -13582,13 +13582,13 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] GLEnum binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] Shader* shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary(count, shaders, binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] void* binary, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint length) @@ -13600,7 +13600,7 @@ public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core. public unsafe void ShaderBinary([Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan shaders, [Flow(Silk.NET.Core.Native.FlowDirection.In)] ShaderBinaryFormat binaryFormat, [Count(Parameter = "length"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan binary) where T0 : unmanaged { // ImplicitCountSpanOverloader - ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) binary.Length); + ShaderBinary((uint) shaders.Length, in shaders.GetPinnableReference(), binaryFormat, in binary.GetPinnableReference(), (uint) ((binary.Length) * Unsafe.SizeOf())); } public unsafe void ShaderSource([Flow(Silk.NET.Core.Native.FlowDirection.In)] uint shader, [Flow(Silk.NET.Core.Native.FlowDirection.In)] uint count, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] string[] @stringSa, [Count(Parameter = "count"), Flow(Silk.NET.Core.Native.FlowDirection.In)] int* length) diff --git a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtDescriptorBuffer.gen.cs b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtDescriptorBuffer.gen.cs index adb75179c1..1ca8dba059 100644 --- a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtDescriptorBuffer.gen.cs +++ b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtDescriptorBuffer.gen.cs @@ -192,14 +192,14 @@ public unsafe void CmdSetDescriptorBufferOffsets([Count(Count = 0)] CommandBuffe public unsafe void GetDescriptor([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] DescriptorGetInfoEXT* pDescriptorInfo, [Count(Parameter = "dataSize")] Span pDescriptor) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetDescriptor(device, pDescriptorInfo, (nuint) pDescriptor.Length, ref pDescriptor.GetPinnableReference()); + GetDescriptor(device, pDescriptorInfo, (nuint) ((pDescriptor.Length) * Unsafe.SizeOf()), ref pDescriptor.GetPinnableReference()); } /// To be documented. public unsafe void GetDescriptor([Count(Count = 0)] Device device, [Count(Count = 0), Flow(Silk.NET.Core.Native.FlowDirection.In)] in DescriptorGetInfoEXT pDescriptorInfo, [Count(Parameter = "dataSize")] Span pDescriptor) where T0 : unmanaged { // ImplicitCountSpanOverloader - GetDescriptor(device, in pDescriptorInfo, (nuint) pDescriptor.Length, ref pDescriptor.GetPinnableReference()); + GetDescriptor(device, in pDescriptorInfo, (nuint) ((pDescriptor.Length) * Unsafe.SizeOf()), ref pDescriptor.GetPinnableReference()); } /// To be documented. diff --git a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtOpacityMicromap.gen.cs b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtOpacityMicromap.gen.cs index 5a8330321b..14031db083 100644 --- a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtOpacityMicromap.gen.cs +++ b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.EXT/ExtOpacityMicromap.gen.cs @@ -207,7 +207,7 @@ public unsafe void CmdWriteMicromapsProperties([Count(Count = 0)] CommandBuffer public unsafe Result WriteMicromapsProperties([Count(Count = 0)] Device device, [Count(Count = 0)] uint micromapCount, [Count(Parameter = "micromapCount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] MicromapEXT* pMicromaps, [Count(Count = 0)] QueryType queryType, [Count(Parameter = "dataSize")] Span pData, [Count(Count = 0)] nuint stride) where T0 : unmanaged { // ImplicitCountSpanOverloader - return WriteMicromapsProperties(device, micromapCount, pMicromaps, queryType, (nuint) pData.Length, ref pData.GetPinnableReference(), stride); + return WriteMicromapsProperties(device, micromapCount, pMicromaps, queryType, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference(), stride); } /// To be documented. @@ -221,7 +221,7 @@ public unsafe Result WriteMicromapsProperties([Count(Count = 0)] Device device, public unsafe Result WriteMicromapsProperties([Count(Count = 0)] Device device, [Count(Parameter = "micromapCount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pMicromaps, [Count(Count = 0)] QueryType queryType, [Count(Parameter = "dataSize")] Span pData, [Count(Count = 0)] nuint stride) where T0 : unmanaged { // ImplicitCountSpanOverloader - return WriteMicromapsProperties(device, (uint) pMicromaps.Length, in pMicromaps.GetPinnableReference(), queryType, (nuint) pData.Length, ref pData.GetPinnableReference(), stride); + return WriteMicromapsProperties(device, (uint) pMicromaps.Length, in pMicromaps.GetPinnableReference(), queryType, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference(), stride); } /// To be documented. diff --git a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrAccelerationStructure.gen.cs b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrAccelerationStructure.gen.cs index 3361c55837..da9dac5ec4 100644 --- a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrAccelerationStructure.gen.cs +++ b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrAccelerationStructure.gen.cs @@ -425,7 +425,7 @@ public unsafe void CmdWriteAccelerationStructuresProperties([Count(Count = 0)] C public unsafe Result WriteAccelerationStructuresProperties([Count(Count = 0)] Device device, [Count(Count = 0)] uint accelerationStructureCount, [Count(Parameter = "accelerationStructureCount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] AccelerationStructureKHR* pAccelerationStructures, [Count(Count = 0)] QueryType queryType, [Count(Parameter = "dataSize")] Span pData, [Count(Count = 0)] nuint stride) where T0 : unmanaged { // ImplicitCountSpanOverloader - return WriteAccelerationStructuresProperties(device, accelerationStructureCount, pAccelerationStructures, queryType, (nuint) pData.Length, ref pData.GetPinnableReference(), stride); + return WriteAccelerationStructuresProperties(device, accelerationStructureCount, pAccelerationStructures, queryType, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference(), stride); } /// To be documented. @@ -439,7 +439,7 @@ public unsafe Result WriteAccelerationStructuresProperties([Count(Count = 0)] De public unsafe Result WriteAccelerationStructuresProperties([Count(Count = 0)] Device device, [Count(Parameter = "accelerationStructureCount"), Flow(Silk.NET.Core.Native.FlowDirection.In)] ReadOnlySpan pAccelerationStructures, [Count(Count = 0)] QueryType queryType, [Count(Parameter = "dataSize")] Span pData, [Count(Count = 0)] nuint stride) where T0 : unmanaged { // ImplicitCountSpanOverloader - return WriteAccelerationStructuresProperties(device, (uint) pAccelerationStructures.Length, in pAccelerationStructures.GetPinnableReference(), queryType, (nuint) pData.Length, ref pData.GetPinnableReference(), stride); + return WriteAccelerationStructuresProperties(device, (uint) pAccelerationStructures.Length, in pAccelerationStructures.GetPinnableReference(), queryType, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference(), stride); } /// To be documented. diff --git a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrRayTracingPipeline.gen.cs b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrRayTracingPipeline.gen.cs index 0aeb3338cf..ae178ce004 100644 --- a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrRayTracingPipeline.gen.cs +++ b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.KHR/KhrRayTracingPipeline.gen.cs @@ -250,14 +250,14 @@ public unsafe Result CreateRayTracingPipelines([Count(Count = 0)] Device device, public unsafe Result GetRayTracingCaptureReplayShaderGroupHandles([Count(Count = 0)] Device device, [Count(Count = 0)] Pipeline pipeline, [Count(Count = 0)] uint firstGroup, [Count(Count = 0)] uint groupCount, [Count(Parameter = "dataSize")] Span pData) where T0 : unmanaged { // ImplicitCountSpanOverloader - return GetRayTracingCaptureReplayShaderGroupHandles(device, pipeline, firstGroup, groupCount, (nuint) pData.Length, ref pData.GetPinnableReference()); + return GetRayTracingCaptureReplayShaderGroupHandles(device, pipeline, firstGroup, groupCount, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference()); } /// To be documented. public unsafe Result GetRayTracingShaderGroupHandles([Count(Count = 0)] Device device, [Count(Count = 0)] Pipeline pipeline, [Count(Count = 0)] uint firstGroup, [Count(Count = 0)] uint groupCount, [Count(Parameter = "dataSize")] Span pData) where T0 : unmanaged { // ImplicitCountSpanOverloader - return GetRayTracingShaderGroupHandles(device, pipeline, firstGroup, groupCount, (nuint) pData.Length, ref pData.GetPinnableReference()); + return GetRayTracingShaderGroupHandles(device, pipeline, firstGroup, groupCount, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference()); } public KhrRayTracingPipeline(INativeContext ctx) diff --git a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVRayTracing.gen.cs b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVRayTracing.gen.cs index a258e2faa2..84efa91196 100644 --- a/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVRayTracing.gen.cs +++ b/src/Vulkan/Extensions/Silk.NET.Vulkan.Extensions.NV/NVRayTracing.gen.cs @@ -222,14 +222,14 @@ public unsafe Result CreateRayTracingPipelines([Count(Count = 0)] Device device, public unsafe Result GetAccelerationStructureHandle([Count(Count = 0)] Device device, [Count(Count = 0)] AccelerationStructureNV accelerationStructure, [Count(Parameter = "dataSize")] Span pData) where T0 : unmanaged { // ImplicitCountSpanOverloader - return GetAccelerationStructureHandle(device, accelerationStructure, (nuint) pData.Length, ref pData.GetPinnableReference()); + return GetAccelerationStructureHandle(device, accelerationStructure, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference()); } /// To be documented. public unsafe Result GetRayTracingShaderGroupHandles([Count(Count = 0)] Device device, [Count(Count = 0)] Pipeline pipeline, [Count(Count = 0)] uint firstGroup, [Count(Count = 0)] uint groupCount, [Count(Parameter = "dataSize")] Span pData) where T0 : unmanaged { // ImplicitCountSpanOverloader - return GetRayTracingShaderGroupHandles(device, pipeline, firstGroup, groupCount, (nuint) pData.Length, ref pData.GetPinnableReference()); + return GetRayTracingShaderGroupHandles(device, pipeline, firstGroup, groupCount, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference()); } /// To be documented. diff --git a/src/Vulkan/Silk.NET.Vulkan/Vk.gen.cs b/src/Vulkan/Silk.NET.Vulkan/Vk.gen.cs index 077c8fbde8..1461439ea9 100644 --- a/src/Vulkan/Silk.NET.Vulkan/Vk.gen.cs +++ b/src/Vulkan/Silk.NET.Vulkan/Vk.gen.cs @@ -3201,7 +3201,7 @@ public unsafe void CmdPipelineBarrier([Count(Count = 0)] CommandBuffer commandBu public unsafe void CmdPushConstants([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] PipelineLayout layout, [Count(Count = 0)] ShaderStageFlags stageFlags, [Count(Count = 0)] uint offset, [Count(Parameter = "size")] Span pValues) where T0 : unmanaged { // ImplicitCountSpanOverloader - CmdPushConstants(commandBuffer, layout, stageFlags, offset, (uint) pValues.Length, ref pValues.GetPinnableReference()); + CmdPushConstants(commandBuffer, layout, stageFlags, offset, (uint) ((pValues.Length) * Unsafe.SizeOf()), ref pValues.GetPinnableReference()); } /// To be documented. @@ -3229,7 +3229,7 @@ public unsafe void CmdSetViewport([Count(Count = 0)] CommandBuffer commandBuffer public unsafe void CmdUpdateBuffer([Count(Count = 0)] CommandBuffer commandBuffer, [Count(Count = 0)] Buffer dstBuffer, [Count(Count = 0)] ulong dstOffset, [Count(Parameter = "dataSize")] Span pData) where T0 : unmanaged { // ImplicitCountSpanOverloader - CmdUpdateBuffer(commandBuffer, dstBuffer, dstOffset, (ulong) pData.Length, ref pData.GetPinnableReference()); + CmdUpdateBuffer(commandBuffer, dstBuffer, dstOffset, (ulong) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference()); } /// To be documented. @@ -3473,7 +3473,7 @@ public unsafe PhysicalDeviceProperties GetPhysicalDeviceProperty([Count(Count = public unsafe Result GetQueryPoolResults([Count(Count = 0)] Device device, [Count(Count = 0)] QueryPool queryPool, [Count(Count = 0)] uint firstQuery, [Count(Count = 0)] uint queryCount, [Count(Parameter = "dataSize")] Span pData, [Count(Count = 0)] ulong stride, [Count(Count = 0)] QueryResultFlags flags) where T0 : unmanaged { // ImplicitCountSpanOverloader - return GetQueryPoolResults(device, queryPool, firstQuery, queryCount, (nuint) pData.Length, ref pData.GetPinnableReference(), stride, flags); + return GetQueryPoolResults(device, queryPool, firstQuery, queryCount, (nuint) ((pData.Length) * Unsafe.SizeOf()), ref pData.GetPinnableReference(), stride, flags); } /// To be documented.