mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-25 03:46:53 +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]
|
||||
/// Replaces the source code in a shader object
|
||||
/// </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]
|
||||
/// Replaces the source code in a shader object
|
||||
/// </summary>
|
||||
|
|
Loading…
Reference in a new issue