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