mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-08 08:00:35 +00:00
The last parameter of GL.ShaderSource should be an array.
This commit is contained in:
parent
f65965aaf7
commit
1a1ef03396
|
@ -103082,6 +103082,50 @@ namespace OpenTK.Graphics.OpenGL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>[requires: v2.0]
|
||||||
|
/// Replaces the source code in a shader object
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="shader">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies the handle of the shader object whose source code is to be replaced.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
/// <param name="count">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies the number of elements in the string and length arrays.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
/// <param name="string">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies an array of pointers to strings containing the source code to be loaded into the shader.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
/// <param name="length">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies an array of string lengths.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
[AutoGenerated(Category = "VERSION_2_0", Version = "2.0", EntryPoint = "glShaderSource")]
|
||||||
|
public static
|
||||||
|
void ShaderSource(Int32 shader, Int32 count, String[] @string, Int32[] length)
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
|
using (new ErrorHelper(GraphicsContext.CurrentContext))
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
unsafe
|
||||||
|
{
|
||||||
|
fixed (Int32* length_ptr = length)
|
||||||
|
{
|
||||||
|
Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#if DEBUG
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>[requires: v2.0]
|
/// <summary>[requires: v2.0]
|
||||||
/// Replaces the source code in a shader object
|
/// Replaces the source code in a shader object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -103165,6 +103209,51 @@ namespace OpenTK.Graphics.OpenGL
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>[requires: v2.0]
|
||||||
|
/// Replaces the source code in a shader object
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="shader">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies the handle of the shader object whose source code is to be replaced.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
/// <param name="count">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies the number of elements in the string and length arrays.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
/// <param name="string">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies an array of pointers to strings containing the source code to be loaded into the shader.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
/// <param name="length">
|
||||||
|
/// <para>
|
||||||
|
/// Specifies an array of string lengths.
|
||||||
|
/// </para>
|
||||||
|
/// </param>
|
||||||
|
[System.CLSCompliant(false)]
|
||||||
|
[AutoGenerated(Category = "VERSION_2_0", Version = "2.0", EntryPoint = "glShaderSource")]
|
||||||
|
public static
|
||||||
|
void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32[] length)
|
||||||
|
{
|
||||||
|
#if DEBUG
|
||||||
|
using (new ErrorHelper(GraphicsContext.CurrentContext))
|
||||||
|
{
|
||||||
|
#endif
|
||||||
|
unsafe
|
||||||
|
{
|
||||||
|
fixed (Int32* length_ptr = length)
|
||||||
|
{
|
||||||
|
Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#if DEBUG
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>[requires: v2.0]
|
/// <summary>[requires: v2.0]
|
||||||
/// Replaces the source code in a shader object
|
/// Replaces the source code in a shader object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in a new issue