mirror of
https://github.com/ahwootech/BRUTAL.git
synced 2026-11-25 20:48:24 +01:00
4532 lines
160 KiB
C#
4532 lines
160 KiB
C#
/*
|
|
* @brief Contains generated OpenGL functions that wrap the native function pointers.
|
|
*
|
|
* @note If you want to override function behavior, you can do so in GenerationRules.xml and OpenGl.cs.
|
|
*
|
|
* @warning This file is auto-generated by Brutal.OpenGl.Generate.
|
|
* Do not edit this file directly.
|
|
* If you want to change the generated code, modify the generation rules.
|
|
*/
|
|
using System.Runtime.CompilerServices;
|
|
|
|
namespace Brutal.OpenGlApi
|
|
{
|
|
public static partial class OpenGl
|
|
{
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CullFace(GlFace mode)
|
|
{
|
|
Native.glCullFace(mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FrontFace(GlFrontFace mode)
|
|
{
|
|
Native.glFrontFace(mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Hint(GlHint target, GlBehavior mode)
|
|
{
|
|
Native.glHint(target, mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void LineWidth(float width)
|
|
{
|
|
Native.glLineWidth(width);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PointSize(float size)
|
|
{
|
|
Native.glPointSize(size);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PolygonMode(GlFace face, GlEnum mode)
|
|
{
|
|
Native.glPolygonMode(face, mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Scissor(int x, int y, int width, int height)
|
|
{
|
|
Native.glScissor(x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexImage1D(
|
|
GlEnum target,
|
|
int level,
|
|
int internalformat,
|
|
int width,
|
|
int border,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTexImage1D(target, level, internalformat, width, border, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexImage2D(
|
|
GlEnum target,
|
|
int level,
|
|
int internalformat,
|
|
int width,
|
|
int height,
|
|
int border,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTexImage2D(target, level, internalformat, width, height, border, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearStencil(int s)
|
|
{
|
|
Native.glClearStencil(s);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearDepth(double depth)
|
|
{
|
|
Native.glClearDepth(depth);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void StencilMask(uint mask)
|
|
{
|
|
Native.glStencilMask(mask);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ColorMask(Brutal.Bool8 red, Brutal.Bool8 green, Brutal.Bool8 blue, Brutal.Bool8 alpha)
|
|
{
|
|
Native.glColorMask(red, green, blue, alpha);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DepthMask(Brutal.Bool8 flag)
|
|
{
|
|
Native.glDepthMask(flag);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Disable(GlCapability cap)
|
|
{
|
|
Native.glDisable(cap);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Enable(GlCapability cap)
|
|
{
|
|
Native.glEnable(cap);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Finish()
|
|
{
|
|
Native.glFinish();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Flush()
|
|
{
|
|
Native.glFlush();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendFunc(GlEnum sfactor, GlEnum dfactor)
|
|
{
|
|
Native.glBlendFunc(sfactor, dfactor);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void LogicOp(GlLogicOp opcode)
|
|
{
|
|
Native.glLogicOp(opcode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void StencilFunc(GlFunc func, int @ref, uint mask)
|
|
{
|
|
Native.glStencilFunc(func, @ref, mask);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void StencilOp(GlStencilOp fail, GlStencilOp zfail, GlStencilOp zpass)
|
|
{
|
|
Native.glStencilOp(fail, zfail, zpass);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DepthFunc(GlFunc func)
|
|
{
|
|
Native.glDepthFunc(func);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PixelStoref(GlEnum pname, float param)
|
|
{
|
|
Native.glPixelStoref(pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PixelStorei(GlEnum pname, int param)
|
|
{
|
|
Native.glPixelStorei(pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ReadBuffer(GlEnum src)
|
|
{
|
|
Native.glReadBuffer(src);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ReadPixels(
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glReadPixels(x, y, width, height, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetBooleanv(GlEnum pname, ReadOnlySpan<Brutal.Bool8> data)
|
|
{
|
|
fixed (Brutal.Bool8* dataPtr = data)
|
|
Native.glGetBooleanv(pname, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetDoublev(GlEnum pname, ReadOnlySpan<double> data)
|
|
{
|
|
fixed (double* dataPtr = data)
|
|
Native.glGetDoublev(pname, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlEnum GetError()
|
|
{
|
|
return Native.glGetError();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetFloatv(GlEnum pname, ReadOnlySpan<float> data)
|
|
{
|
|
fixed (float* dataPtr = data)
|
|
Native.glGetFloatv(pname, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetIntegerv(GlEnum pname, ReadOnlySpan<int> data)
|
|
{
|
|
fixed (int* dataPtr = data)
|
|
Native.glGetIntegerv(pname, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe byte* GetString(GlEnum name)
|
|
{
|
|
return Native.glGetString(name);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTexImage(GlEnum target, int level, GlEnum format, GlEnum type, void* pixels)
|
|
{
|
|
Native.glGetTexImage(target, level, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTexLevelParameterfv(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum pname,
|
|
ReadOnlySpan<float> @params
|
|
)
|
|
{
|
|
fixed (float* @paramsPtr = @params)
|
|
Native.glGetTexLevelParameterfv(target, level, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTexLevelParameteriv(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetTexLevelParameteriv(target, level, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsEnabled(GlEnum cap)
|
|
{
|
|
return Native.glIsEnabled(cap);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DepthRange(double n, double f)
|
|
{
|
|
Native.glDepthRange(n, f);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Viewport(int x, int y, int width, int height)
|
|
{
|
|
Native.glViewport(x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PolygonOffset(float factor, float units)
|
|
{
|
|
Native.glPolygonOffset(factor, units);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTexImage1D(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum internalformat,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int border
|
|
)
|
|
{
|
|
Native.glCopyTexImage1D(target, level, internalformat, x, y, width, border);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTexImage2D(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum internalformat,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height,
|
|
int border
|
|
)
|
|
{
|
|
Native.glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTexSubImage1D(GlEnum target, int level, int xoffset, int x, int y, int width)
|
|
{
|
|
Native.glCopyTexSubImage1D(target, level, xoffset, x, y, width);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTexSubImage2D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexSubImage1D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int width,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTexSubImage1D(target, level, xoffset, width, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexSubImage2D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int width,
|
|
int height,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindTexture(GlEnum target, uint texture)
|
|
{
|
|
Native.glBindTexture(target, texture);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteTextures(ReadOnlySpan<GlTexture> textures)
|
|
{
|
|
fixed (GlTexture* texturesPtr = textures)
|
|
Native.glDeleteTextures(textures.Length, texturesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenTextures(ReadOnlySpan<GlTexture> textures)
|
|
{
|
|
fixed (GlTexture* texturesPtr = textures)
|
|
Native.glGenTextures(textures.Length, texturesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsTexture(uint texture)
|
|
{
|
|
return Native.glIsTexture(texture);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexImage3D(
|
|
GlEnum target,
|
|
int level,
|
|
int internalformat,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
int border,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexSubImage3D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTexSubImage3D(
|
|
target,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
zoffset,
|
|
width,
|
|
height,
|
|
depth,
|
|
format,
|
|
type,
|
|
pixels
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTexSubImage3D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ActiveTexture(GlEnum texture)
|
|
{
|
|
Native.glActiveTexture(texture);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SampleCoverage(float value, Brutal.Bool8 invert)
|
|
{
|
|
Native.glSampleCoverage(value, invert);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTexImage3D(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
int border,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imageSize, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTexImage2D(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
int border,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTexImage2D(target, level, internalformat, width, height, border, imageSize, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTexImage1D(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int border,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTexImage1D(target, level, internalformat, width, border, imageSize, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTexSubImage3D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
GlEnum format,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTexSubImage3D(
|
|
target,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
zoffset,
|
|
width,
|
|
height,
|
|
depth,
|
|
format,
|
|
imageSize,
|
|
data
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTexSubImage2D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int width,
|
|
int height,
|
|
GlEnum format,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imageSize, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTexSubImage1D(
|
|
GlEnum target,
|
|
int level,
|
|
int xoffset,
|
|
int width,
|
|
GlEnum format,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTexSubImage1D(target, level, xoffset, width, format, imageSize, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetCompressedTexImage(GlEnum target, int level, void* img)
|
|
{
|
|
Native.glGetCompressedTexImage(target, level, img);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendFuncSeparate(
|
|
GlEnum sfactorRGB,
|
|
GlEnum dfactorRGB,
|
|
GlEnum sfactorAlpha,
|
|
GlEnum dfactorAlpha
|
|
)
|
|
{
|
|
Native.glBlendFuncSeparate(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PointParameterf(GlEnum pname, float param)
|
|
{
|
|
Native.glPointParameterf(pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PointParameterfv(GlEnum pname, ReadOnlySpan<float> @params)
|
|
{
|
|
fixed (float* @paramsPtr = @params)
|
|
Native.glPointParameterfv(pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PointParameteri(GlEnum pname, int param)
|
|
{
|
|
Native.glPointParameteri(pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PointParameteriv(GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glPointParameteriv(pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendColor(float red, float green, float blue, float alpha)
|
|
{
|
|
Native.glBlendColor(red, green, blue, alpha);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendEquation(GlEnum mode)
|
|
{
|
|
Native.glBlendEquation(mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenQueries(ReadOnlySpan<GlQuery> ids)
|
|
{
|
|
fixed (GlQuery* idsPtr = ids)
|
|
Native.glGenQueries(ids.Length, idsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteQueries(ReadOnlySpan<GlQuery> ids)
|
|
{
|
|
fixed (GlQuery* idsPtr = ids)
|
|
Native.glDeleteQueries(ids.Length, idsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsQuery(uint id)
|
|
{
|
|
return Native.glIsQuery(id);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BeginQuery(GlEnum target, GlQuery id)
|
|
{
|
|
Native.glBeginQuery(target, id);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void EndQuery(GlEnum target)
|
|
{
|
|
Native.glEndQuery(target);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryiv(GlEnum target, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetQueryiv(target, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryObjectiv(uint id, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetQueryObjectiv(id, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryObjectuiv(uint id, GlEnum pname, ReadOnlySpan<uint> @params)
|
|
{
|
|
fixed (uint* @paramsPtr = @params)
|
|
Native.glGetQueryObjectuiv(id, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteBuffers(ReadOnlySpan<GlBuffer> buffers)
|
|
{
|
|
fixed (GlBuffer* buffersPtr = buffers)
|
|
Native.glDeleteBuffers(buffers.Length, buffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenBuffers(ReadOnlySpan<GlBuffer> buffers)
|
|
{
|
|
fixed (GlBuffer* buffersPtr = buffers)
|
|
Native.glGenBuffers(buffers.Length, buffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsBuffer(GlBuffer buffer)
|
|
{
|
|
return Native.glIsBuffer(buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BufferSubData(GlEnum target, nint offset, nint size, void* data)
|
|
{
|
|
Native.glBufferSubData(target, offset, size, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetBufferSubData(GlEnum target, nint offset, nint size, void* data)
|
|
{
|
|
Native.glGetBufferSubData(target, offset, size, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void* MapBuffer(GlEnum target, GlEnum access)
|
|
{
|
|
return Native.glMapBuffer(target, access);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 UnmapBuffer(GlEnum target)
|
|
{
|
|
return Native.glUnmapBuffer(target);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetBufferParameteriv(GlEnum target, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetBufferParameteriv(target, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetBufferPointerv(GlEnum target, GlEnum pname, void** @params)
|
|
{
|
|
Native.glGetBufferPointerv(target, pname, @params);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendEquationSeparate(GlEnum modeRGB, GlEnum modeAlpha)
|
|
{
|
|
Native.glBlendEquationSeparate(modeRGB, modeAlpha);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void StencilOpSeparate(GlFace face, GlEnum sfail, GlEnum dpfail, GlEnum dppass)
|
|
{
|
|
Native.glStencilOpSeparate(face, sfail, dpfail, dppass);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void StencilFuncSeparate(GlFace face, GlFunc func, int @ref, uint mask)
|
|
{
|
|
Native.glStencilFuncSeparate(face, func, @ref, mask);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void StencilMaskSeparate(GlFace face, uint mask)
|
|
{
|
|
Native.glStencilMaskSeparate(face, mask);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindAttribLocation(GlProgram program, uint index, ReadOnlySpan<byte> name)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glBindAttribLocation(program, index, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlProgram CreateProgram()
|
|
{
|
|
return Native.glCreateProgram();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlShader CreateShader(GlShaderType type)
|
|
{
|
|
return Native.glCreateShader(type);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DetachShader(GlProgram program, GlShader shader)
|
|
{
|
|
Native.glDetachShader(program, shader);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DisableVertexAttribArray(uint index)
|
|
{
|
|
Native.glDisableVertexAttribArray(index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void EnableVertexAttribArray(uint index)
|
|
{
|
|
Native.glEnableVertexAttribArray(index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveAttrib(
|
|
GlProgram program,
|
|
uint index,
|
|
int bufSize,
|
|
int* length,
|
|
int* size,
|
|
GlEnum* type,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glGetActiveAttrib(program, index, bufSize, length, size, type, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveUniform(
|
|
GlProgram program,
|
|
uint index,
|
|
int bufSize,
|
|
int* length,
|
|
int* size,
|
|
GlEnum* type,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glGetActiveUniform(program, index, bufSize, length, size, type, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe int GetAttribLocation(GlProgram program, ReadOnlySpan<byte> name)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetAttribLocation(program, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetVertexAttribPointerv(uint index, GlEnum pname, void** pointer)
|
|
{
|
|
Native.glGetVertexAttribPointerv(index, pname, pointer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsProgram(GlProgram program)
|
|
{
|
|
return Native.glIsProgram(program);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsShader(GlShader shader)
|
|
{
|
|
return Native.glIsShader(shader);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ValidateProgram(GlProgram program)
|
|
{
|
|
Native.glValidateProgram(program);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ColorMaski(uint index, Brutal.Bool8 r, Brutal.Bool8 g, Brutal.Bool8 b, Brutal.Bool8 a)
|
|
{
|
|
Native.glColorMaski(index, r, g, b, a);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetBooleani_v(GlEnum target, uint index, ReadOnlySpan<Brutal.Bool8> data)
|
|
{
|
|
fixed (Brutal.Bool8* dataPtr = data)
|
|
Native.glGetBooleani_v(target, index, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetIntegeri_v(GlEnum target, uint index, ReadOnlySpan<int> data)
|
|
{
|
|
fixed (int* dataPtr = data)
|
|
Native.glGetIntegeri_v(target, index, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Enablei(GlEnum target, uint index)
|
|
{
|
|
Native.glEnablei(target, index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void Disablei(GlEnum target, uint index)
|
|
{
|
|
Native.glDisablei(target, index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsEnabledi(GlEnum target, uint index)
|
|
{
|
|
return Native.glIsEnabledi(target, index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BeginTransformFeedback(GlEnum primitiveMode)
|
|
{
|
|
Native.glBeginTransformFeedback(primitiveMode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void EndTransformFeedback()
|
|
{
|
|
Native.glEndTransformFeedback();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindBufferRange(GlEnum target, uint index, GlBuffer buffer, nint offset, nint size)
|
|
{
|
|
Native.glBindBufferRange(target, index, buffer, offset, size);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindBufferBase(GlEnum target, uint index, GlBuffer buffer)
|
|
{
|
|
Native.glBindBufferBase(target, index, buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TransformFeedbackVaryings(
|
|
GlProgram program,
|
|
int count,
|
|
byte** varyings,
|
|
GlEnum bufferMode
|
|
)
|
|
{
|
|
Native.glTransformFeedbackVaryings(program, count, varyings, bufferMode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTransformFeedbackVarying(
|
|
GlProgram program,
|
|
uint index,
|
|
int bufSize,
|
|
int* length,
|
|
int* size,
|
|
GlEnum* type,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glGetTransformFeedbackVarying(program, index, bufSize, length, size, type, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClampColor(GlEnum target, GlEnum clamp)
|
|
{
|
|
Native.glClampColor(target, clamp);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BeginConditionalRender(uint id, GlEnum mode)
|
|
{
|
|
Native.glBeginConditionalRender(id, mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void EndConditionalRender()
|
|
{
|
|
Native.glEndConditionalRender();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe int GetFragDataLocation(GlProgram program, ReadOnlySpan<byte> name)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetFragDataLocation(program, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearBufferiv(GlBuffer buffer, int drawbuffer, ReadOnlySpan<int> value)
|
|
{
|
|
fixed (int* valuePtr = value)
|
|
Native.glClearBufferiv(buffer, drawbuffer, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearBufferuiv(GlBuffer buffer, int drawbuffer, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glClearBufferuiv(buffer, drawbuffer, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearBufferfv(GlBuffer buffer, int drawbuffer, ReadOnlySpan<float> value)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glClearBufferfv(buffer, drawbuffer, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearBufferfi(GlBuffer buffer, int drawbuffer, float depth, int stencil)
|
|
{
|
|
Native.glClearBufferfi(buffer, drawbuffer, depth, stencil);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe byte* GetStringi(GlEnum name, uint index)
|
|
{
|
|
return Native.glGetStringi(name, index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsRenderbuffer(GlRenderbuffer renderbuffer)
|
|
{
|
|
return Native.glIsRenderbuffer(renderbuffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindRenderbuffer(GlEnum target, GlRenderbuffer renderbuffer)
|
|
{
|
|
Native.glBindRenderbuffer(target, renderbuffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteRenderbuffers(ReadOnlySpan<GlRenderbuffer> renderbuffers)
|
|
{
|
|
fixed (GlRenderbuffer* renderbuffersPtr = renderbuffers)
|
|
Native.glDeleteRenderbuffers(renderbuffers.Length, renderbuffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenRenderbuffers(ReadOnlySpan<GlRenderbuffer> renderbuffers)
|
|
{
|
|
fixed (GlRenderbuffer* renderbuffersPtr = renderbuffers)
|
|
Native.glGenRenderbuffers(renderbuffers.Length, renderbuffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void RenderbufferStorage(GlEnum target, GlEnum internalformat, int width, int height)
|
|
{
|
|
Native.glRenderbufferStorage(target, internalformat, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetRenderbufferParameteriv(GlEnum target, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetRenderbufferParameteriv(target, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsFramebuffer(GlFramebuffer framebuffer)
|
|
{
|
|
return Native.glIsFramebuffer(framebuffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindFramebuffer(GlEnum target, GlFramebuffer framebuffer)
|
|
{
|
|
Native.glBindFramebuffer(target, framebuffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteFramebuffers(ReadOnlySpan<GlFramebuffer> framebuffers)
|
|
{
|
|
fixed (GlFramebuffer* framebuffersPtr = framebuffers)
|
|
Native.glDeleteFramebuffers(framebuffers.Length, framebuffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenFramebuffers(ReadOnlySpan<GlFramebuffer> framebuffers)
|
|
{
|
|
fixed (GlFramebuffer* framebuffersPtr = framebuffers)
|
|
Native.glGenFramebuffers(framebuffers.Length, framebuffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlEnum CheckFramebufferStatus(GlEnum target)
|
|
{
|
|
return Native.glCheckFramebufferStatus(target);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FramebufferTexture1D(
|
|
GlEnum target,
|
|
GlEnum attachment,
|
|
GlEnum textarget,
|
|
uint texture,
|
|
int level
|
|
)
|
|
{
|
|
Native.glFramebufferTexture1D(target, attachment, textarget, texture, level);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FramebufferTexture2D(
|
|
GlEnum target,
|
|
GlEnum attachment,
|
|
GlEnum textarget,
|
|
uint texture,
|
|
int level
|
|
)
|
|
{
|
|
Native.glFramebufferTexture2D(target, attachment, textarget, texture, level);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FramebufferTexture3D(
|
|
GlEnum target,
|
|
GlEnum attachment,
|
|
GlEnum textarget,
|
|
uint texture,
|
|
int level,
|
|
int zoffset
|
|
)
|
|
{
|
|
Native.glFramebufferTexture3D(target, attachment, textarget, texture, level, zoffset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FramebufferRenderbuffer(
|
|
GlEnum target,
|
|
GlEnum attachment,
|
|
GlEnum renderbuffertarget,
|
|
GlRenderbuffer renderbuffer
|
|
)
|
|
{
|
|
Native.glFramebufferRenderbuffer(target, attachment, renderbuffertarget, renderbuffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetFramebufferAttachmentParameteriv(
|
|
GlEnum target,
|
|
GlEnum attachment,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetFramebufferAttachmentParameteriv(target, attachment, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenerateMipmap(GlEnum target)
|
|
{
|
|
Native.glGenerateMipmap(target);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlitFramebuffer(
|
|
int srcX0,
|
|
int srcY0,
|
|
int srcX1,
|
|
int srcY1,
|
|
int dstX0,
|
|
int dstY0,
|
|
int dstX1,
|
|
int dstY1,
|
|
GlBitfield mask,
|
|
GlEnum filter
|
|
)
|
|
{
|
|
Native.glBlitFramebuffer(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void RenderbufferStorageMultisample(
|
|
GlEnum target,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glRenderbufferStorageMultisample(target, samples, internalformat, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FramebufferTextureLayer(
|
|
GlEnum target,
|
|
GlEnum attachment,
|
|
uint texture,
|
|
int level,
|
|
int layer
|
|
)
|
|
{
|
|
Native.glFramebufferTextureLayer(target, attachment, texture, level, layer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void* MapBufferRange(GlEnum target, nint offset, nint length, GlBitfield access)
|
|
{
|
|
return Native.glMapBufferRange(target, offset, length, access);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FlushMappedBufferRange(GlEnum target, nint offset, nint length)
|
|
{
|
|
Native.glFlushMappedBufferRange(target, offset, length);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteVertexArrays(ReadOnlySpan<GlVertexArray> arrays)
|
|
{
|
|
fixed (GlVertexArray* arraysPtr = arrays)
|
|
Native.glDeleteVertexArrays(arrays.Length, arraysPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenVertexArrays(ReadOnlySpan<GlVertexArray> arrays)
|
|
{
|
|
fixed (GlVertexArray* arraysPtr = arrays)
|
|
Native.glGenVertexArrays(arrays.Length, arraysPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsVertexArray(GlVertexArray array)
|
|
{
|
|
return Native.glIsVertexArray(array);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexBuffer(GlEnum target, GlEnum internalformat, GlBuffer buffer)
|
|
{
|
|
Native.glTexBuffer(target, internalformat, buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PrimitiveRestartIndex(uint index)
|
|
{
|
|
Native.glPrimitiveRestartIndex(index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyBufferSubData(
|
|
GlEnum readTarget,
|
|
GlEnum writeTarget,
|
|
nint readOffset,
|
|
nint writeOffset,
|
|
nint size
|
|
)
|
|
{
|
|
Native.glCopyBufferSubData(readTarget, writeTarget, readOffset, writeOffset, size);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetUniformIndices(
|
|
GlProgram program,
|
|
int uniformCount,
|
|
byte** uniformNames,
|
|
ReadOnlySpan<uint> uniformIndices
|
|
)
|
|
{
|
|
fixed (uint* uniformIndicesPtr = uniformIndices)
|
|
Native.glGetUniformIndices(program, uniformCount, uniformNames, uniformIndicesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveUniformsiv(
|
|
GlProgram program,
|
|
int uniformCount,
|
|
uint* uniformIndices,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetActiveUniformsiv(program, uniformCount, uniformIndices, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveUniformName(
|
|
GlProgram program,
|
|
uint uniformIndex,
|
|
int bufSize,
|
|
int* length,
|
|
ReadOnlySpan<byte> uniformName
|
|
)
|
|
{
|
|
fixed (byte* uniformNamePtr = uniformName)
|
|
Native.glGetActiveUniformName(program, uniformIndex, bufSize, length, uniformNamePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe uint GetUniformBlockIndex(GlProgram program, ReadOnlySpan<byte> uniformBlockName)
|
|
{
|
|
fixed (byte* uniformBlockNamePtr = uniformBlockName)
|
|
return Native.glGetUniformBlockIndex(program, uniformBlockNamePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveUniformBlockiv(
|
|
GlProgram program,
|
|
uint uniformBlockIndex,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetActiveUniformBlockiv(program, uniformBlockIndex, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveUniformBlockName(
|
|
GlProgram program,
|
|
uint uniformBlockIndex,
|
|
int bufSize,
|
|
int* length,
|
|
ReadOnlySpan<byte> uniformBlockName
|
|
)
|
|
{
|
|
fixed (byte* uniformBlockNamePtr = uniformBlockName)
|
|
Native.glGetActiveUniformBlockName(program, uniformBlockIndex, bufSize, length, uniformBlockNamePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void UniformBlockBinding(
|
|
GlProgram program,
|
|
uint uniformBlockIndex,
|
|
uint uniformBlockBinding
|
|
)
|
|
{
|
|
Native.glUniformBlockBinding(program, uniformBlockIndex, uniformBlockBinding);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProvokingVertex(GlEnum mode)
|
|
{
|
|
Native.glProvokingVertex(mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlSync FenceSync(GlEnum condition, GlBitfield flags)
|
|
{
|
|
return Native.glFenceSync(condition, flags);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsSync(GlSync sync)
|
|
{
|
|
return Native.glIsSync(sync);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteSync(GlSync sync)
|
|
{
|
|
Native.glDeleteSync(sync);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlEnum ClientWaitSync(GlSync sync, GlBitfield flags, ulong timeout)
|
|
{
|
|
return Native.glClientWaitSync(sync, flags, timeout);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void WaitSync(GlSync sync, GlBitfield flags, ulong timeout)
|
|
{
|
|
Native.glWaitSync(sync, flags, timeout);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetInteger64v(GlEnum pname, ReadOnlySpan<long> data)
|
|
{
|
|
fixed (long* dataPtr = data)
|
|
Native.glGetInteger64v(pname, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetSynciv(GlSync sync, GlEnum pname, int count, int* length, ReadOnlySpan<int> values)
|
|
{
|
|
fixed (int* valuesPtr = values)
|
|
Native.glGetSynciv(sync, pname, count, length, valuesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetInteger64i_v(GlEnum target, uint index, ReadOnlySpan<long> data)
|
|
{
|
|
fixed (long* dataPtr = data)
|
|
Native.glGetInteger64i_v(target, index, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetBufferParameteri64v(GlEnum target, GlEnum pname, ReadOnlySpan<long> @params)
|
|
{
|
|
fixed (long* @paramsPtr = @params)
|
|
Native.glGetBufferParameteri64v(target, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FramebufferTexture(GlEnum target, GlEnum attachment, uint texture, int level)
|
|
{
|
|
Native.glFramebufferTexture(target, attachment, texture, level);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexImage2DMultisample(
|
|
GlEnum target,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
Brutal.Bool8 fixedsamplelocations
|
|
)
|
|
{
|
|
Native.glTexImage2DMultisample(target, samples, internalformat, width, height, fixedsamplelocations);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexImage3DMultisample(
|
|
GlEnum target,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
Brutal.Bool8 fixedsamplelocations
|
|
)
|
|
{
|
|
Native.glTexImage3DMultisample(target, samples, internalformat, width, height, depth, fixedsamplelocations);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetMultisamplefv(GlEnum pname, uint index, ReadOnlySpan<float> val)
|
|
{
|
|
fixed (float* valPtr = val)
|
|
Native.glGetMultisamplefv(pname, index, valPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SampleMaski(uint maskNumber, GlBitfield mask)
|
|
{
|
|
Native.glSampleMaski(maskNumber, mask);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindFragDataLocationIndexed(
|
|
GlProgram program,
|
|
uint colorNumber,
|
|
uint index,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glBindFragDataLocationIndexed(program, colorNumber, index, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe int GetFragDataIndex(GlProgram program, ReadOnlySpan<byte> name)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetFragDataIndex(program, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenSamplers(ReadOnlySpan<GlSampler> samplers)
|
|
{
|
|
fixed (GlSampler* samplersPtr = samplers)
|
|
Native.glGenSamplers(samplers.Length, samplersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteSamplers(ReadOnlySpan<GlSampler> samplers)
|
|
{
|
|
fixed (GlSampler* samplersPtr = samplers)
|
|
Native.glDeleteSamplers(samplers.Length, samplersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsSampler(GlSampler sampler)
|
|
{
|
|
return Native.glIsSampler(sampler);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindSampler(uint unit, GlSampler sampler)
|
|
{
|
|
Native.glBindSampler(unit, sampler);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SamplerParameteri(GlSampler sampler, GlEnum pname, int param)
|
|
{
|
|
Native.glSamplerParameteri(sampler, pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SamplerParameteriv(GlSampler sampler, GlEnum pname, ReadOnlySpan<int> param)
|
|
{
|
|
fixed (int* paramPtr = param)
|
|
Native.glSamplerParameteriv(sampler, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SamplerParameterf(GlSampler sampler, GlEnum pname, float param)
|
|
{
|
|
Native.glSamplerParameterf(sampler, pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SamplerParameterfv(GlSampler sampler, GlEnum pname, ReadOnlySpan<float> param)
|
|
{
|
|
fixed (float* paramPtr = param)
|
|
Native.glSamplerParameterfv(sampler, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SamplerParameterIiv(GlSampler sampler, GlEnum pname, ReadOnlySpan<int> param)
|
|
{
|
|
fixed (int* paramPtr = param)
|
|
Native.glSamplerParameterIiv(sampler, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SamplerParameterIuiv(GlSampler sampler, GlEnum pname, ReadOnlySpan<uint> param)
|
|
{
|
|
fixed (uint* paramPtr = param)
|
|
Native.glSamplerParameterIuiv(sampler, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetSamplerParameteriv(GlSampler sampler, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetSamplerParameteriv(sampler, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetSamplerParameterIiv(GlSampler sampler, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetSamplerParameterIiv(sampler, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetSamplerParameterfv(GlSampler sampler, GlEnum pname, ReadOnlySpan<float> @params)
|
|
{
|
|
fixed (float* @paramsPtr = @params)
|
|
Native.glGetSamplerParameterfv(sampler, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetSamplerParameterIuiv(GlSampler sampler, GlEnum pname, ReadOnlySpan<uint> @params)
|
|
{
|
|
fixed (uint* @paramsPtr = @params)
|
|
Native.glGetSamplerParameterIuiv(sampler, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void QueryCounter(uint id, GlEnum target)
|
|
{
|
|
Native.glQueryCounter(id, target);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryObjecti64v(uint id, GlEnum pname, ReadOnlySpan<long> @params)
|
|
{
|
|
fixed (long* @paramsPtr = @params)
|
|
Native.glGetQueryObjecti64v(id, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryObjectui64v(uint id, GlEnum pname, ReadOnlySpan<ulong> @params)
|
|
{
|
|
fixed (ulong* @paramsPtr = @params)
|
|
Native.glGetQueryObjectui64v(id, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribDivisor(uint index, uint divisor)
|
|
{
|
|
Native.glVertexAttribDivisor(index, divisor);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP1ui(uint index, GlEnum type, Brutal.Bool8 normalized, uint value)
|
|
{
|
|
Native.glVertexAttribP1ui(index, type, normalized, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP1uiv(
|
|
uint index,
|
|
GlEnum type,
|
|
Brutal.Bool8 normalized,
|
|
ReadOnlySpan<uint> value
|
|
)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glVertexAttribP1uiv(index, type, normalized, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP2ui(uint index, GlEnum type, Brutal.Bool8 normalized, uint value)
|
|
{
|
|
Native.glVertexAttribP2ui(index, type, normalized, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP2uiv(
|
|
uint index,
|
|
GlEnum type,
|
|
Brutal.Bool8 normalized,
|
|
ReadOnlySpan<uint> value
|
|
)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glVertexAttribP2uiv(index, type, normalized, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP3ui(uint index, GlEnum type, Brutal.Bool8 normalized, uint value)
|
|
{
|
|
Native.glVertexAttribP3ui(index, type, normalized, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP3uiv(
|
|
uint index,
|
|
GlEnum type,
|
|
Brutal.Bool8 normalized,
|
|
ReadOnlySpan<uint> value
|
|
)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glVertexAttribP3uiv(index, type, normalized, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP4ui(uint index, GlEnum type, Brutal.Bool8 normalized, uint value)
|
|
{
|
|
Native.glVertexAttribP4ui(index, type, normalized, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribP4uiv(
|
|
uint index,
|
|
GlEnum type,
|
|
Brutal.Bool8 normalized,
|
|
ReadOnlySpan<uint> value
|
|
)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glVertexAttribP4uiv(index, type, normalized, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexP2ui(GlEnum type, uint value)
|
|
{
|
|
Native.glVertexP2ui(type, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexP2uiv(GlEnum type, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glVertexP2uiv(type, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexP3ui(GlEnum type, uint value)
|
|
{
|
|
Native.glVertexP3ui(type, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexP3uiv(GlEnum type, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glVertexP3uiv(type, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexP4ui(GlEnum type, uint value)
|
|
{
|
|
Native.glVertexP4ui(type, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexP4uiv(GlEnum type, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glVertexP4uiv(type, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP1ui(GlEnum type, uint coords)
|
|
{
|
|
Native.glTexCoordP1ui(type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP1uiv(GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glTexCoordP1uiv(type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP2ui(GlEnum type, uint coords)
|
|
{
|
|
Native.glTexCoordP2ui(type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP2uiv(GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glTexCoordP2uiv(type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP3ui(GlEnum type, uint coords)
|
|
{
|
|
Native.glTexCoordP3ui(type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP3uiv(GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glTexCoordP3uiv(type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP4ui(GlEnum type, uint coords)
|
|
{
|
|
Native.glTexCoordP4ui(type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexCoordP4uiv(GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glTexCoordP4uiv(type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP1ui(GlEnum texture, GlEnum type, uint coords)
|
|
{
|
|
Native.glMultiTexCoordP1ui(texture, type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP1uiv(GlEnum texture, GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glMultiTexCoordP1uiv(texture, type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP2ui(GlEnum texture, GlEnum type, uint coords)
|
|
{
|
|
Native.glMultiTexCoordP2ui(texture, type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP2uiv(GlEnum texture, GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glMultiTexCoordP2uiv(texture, type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP3ui(GlEnum texture, GlEnum type, uint coords)
|
|
{
|
|
Native.glMultiTexCoordP3ui(texture, type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP3uiv(GlEnum texture, GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glMultiTexCoordP3uiv(texture, type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP4ui(GlEnum texture, GlEnum type, uint coords)
|
|
{
|
|
Native.glMultiTexCoordP4ui(texture, type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MultiTexCoordP4uiv(GlEnum texture, GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glMultiTexCoordP4uiv(texture, type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NormalP3ui(GlEnum type, uint coords)
|
|
{
|
|
Native.glNormalP3ui(type, coords);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NormalP3uiv(GlEnum type, ReadOnlySpan<uint> coords)
|
|
{
|
|
fixed (uint* coordsPtr = coords)
|
|
Native.glNormalP3uiv(type, coordsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ColorP3ui(GlEnum type, uint color)
|
|
{
|
|
Native.glColorP3ui(type, color);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ColorP3uiv(GlEnum type, ReadOnlySpan<uint> color)
|
|
{
|
|
fixed (uint* colorPtr = color)
|
|
Native.glColorP3uiv(type, colorPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ColorP4ui(GlEnum type, uint color)
|
|
{
|
|
Native.glColorP4ui(type, color);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ColorP4uiv(GlEnum type, ReadOnlySpan<uint> color)
|
|
{
|
|
fixed (uint* colorPtr = color)
|
|
Native.glColorP4uiv(type, colorPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SecondaryColorP3ui(GlEnum type, uint color)
|
|
{
|
|
Native.glSecondaryColorP3ui(type, color);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SecondaryColorP3uiv(GlEnum type, ReadOnlySpan<uint> color)
|
|
{
|
|
fixed (uint* colorPtr = color)
|
|
Native.glSecondaryColorP3uiv(type, colorPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MinSampleShading(float value)
|
|
{
|
|
Native.glMinSampleShading(value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendEquationi(uint buf, GlEnum mode)
|
|
{
|
|
Native.glBlendEquationi(buf, mode);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendEquationSeparatei(uint buf, GlEnum modeRGB, GlEnum modeAlpha)
|
|
{
|
|
Native.glBlendEquationSeparatei(buf, modeRGB, modeAlpha);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendFunci(uint buf, GlEnum src, GlEnum dst)
|
|
{
|
|
Native.glBlendFunci(buf, src, dst);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlendFuncSeparatei(
|
|
uint buf,
|
|
GlEnum srcRGB,
|
|
GlEnum dstRGB,
|
|
GlEnum srcAlpha,
|
|
GlEnum dstAlpha
|
|
)
|
|
{
|
|
Native.glBlendFuncSeparatei(buf, srcRGB, dstRGB, srcAlpha, dstAlpha);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe int GetSubroutineUniformLocation(
|
|
GlProgram program,
|
|
GlEnum shadertype,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetSubroutineUniformLocation(program, shadertype, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe uint GetSubroutineIndex(GlProgram program, GlEnum shadertype, ReadOnlySpan<byte> name)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetSubroutineIndex(program, shadertype, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveSubroutineUniformiv(
|
|
GlProgram program,
|
|
GlEnum shadertype,
|
|
uint index,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> values
|
|
)
|
|
{
|
|
fixed (int* valuesPtr = values)
|
|
Native.glGetActiveSubroutineUniformiv(program, shadertype, index, pname, valuesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveSubroutineUniformName(
|
|
GlProgram program,
|
|
GlEnum shadertype,
|
|
uint index,
|
|
int bufSize,
|
|
int* length,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glGetActiveSubroutineUniformName(program, shadertype, index, bufSize, length, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveSubroutineName(
|
|
GlProgram program,
|
|
GlEnum shadertype,
|
|
uint index,
|
|
int bufSize,
|
|
int* length,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glGetActiveSubroutineName(program, shadertype, index, bufSize, length, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void UniformSubroutinesuiv(GlEnum shadertype, ReadOnlySpan<uint> indices)
|
|
{
|
|
fixed (uint* indicesPtr = indices)
|
|
Native.glUniformSubroutinesuiv(shadertype, indices.Length, indicesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetUniformSubroutineuiv(GlEnum shadertype, int location, ReadOnlySpan<uint> @params)
|
|
{
|
|
fixed (uint* @paramsPtr = @params)
|
|
Native.glGetUniformSubroutineuiv(shadertype, location, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetProgramStageiv(
|
|
GlProgram program,
|
|
GlEnum shadertype,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> values
|
|
)
|
|
{
|
|
fixed (int* valuesPtr = values)
|
|
Native.glGetProgramStageiv(program, shadertype, pname, valuesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PatchParameteri(GlEnum pname, int value)
|
|
{
|
|
Native.glPatchParameteri(pname, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PatchParameterfv(GlEnum pname, ReadOnlySpan<float> values)
|
|
{
|
|
fixed (float* valuesPtr = values)
|
|
Native.glPatchParameterfv(pname, valuesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindTransformFeedback(GlEnum target, uint id)
|
|
{
|
|
Native.glBindTransformFeedback(target, id);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteTransformFeedbacks(ReadOnlySpan<uint> ids)
|
|
{
|
|
fixed (uint* idsPtr = ids)
|
|
Native.glDeleteTransformFeedbacks(ids.Length, idsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenTransformFeedbacks(ReadOnlySpan<uint> ids)
|
|
{
|
|
fixed (uint* idsPtr = ids)
|
|
Native.glGenTransformFeedbacks(ids.Length, idsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsTransformFeedback(uint id)
|
|
{
|
|
return Native.glIsTransformFeedback(id);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PauseTransformFeedback()
|
|
{
|
|
Native.glPauseTransformFeedback();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ResumeTransformFeedback()
|
|
{
|
|
Native.glResumeTransformFeedback();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BeginQueryIndexed(GlEnum target, uint index, GlQuery id)
|
|
{
|
|
Native.glBeginQueryIndexed(target, index, id);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void EndQueryIndexed(GlEnum target, uint index)
|
|
{
|
|
Native.glEndQueryIndexed(target, index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryIndexediv(GlEnum target, uint index, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetQueryIndexediv(target, index, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ReleaseShaderCompiler()
|
|
{
|
|
Native.glReleaseShaderCompiler();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ShaderBinary(
|
|
int count,
|
|
GlShader* shaders,
|
|
GlEnum binaryFormat,
|
|
void* binary,
|
|
int length
|
|
)
|
|
{
|
|
Native.glShaderBinary(count, shaders, binaryFormat, binary, length);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetShaderPrecisionFormat(
|
|
GlEnum shadertype,
|
|
GlEnum precisiontype,
|
|
int* range,
|
|
ReadOnlySpan<int> precision
|
|
)
|
|
{
|
|
fixed (int* precisionPtr = precision)
|
|
Native.glGetShaderPrecisionFormat(shadertype, precisiontype, range, precisionPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DepthRangef(float n, float f)
|
|
{
|
|
Native.glDepthRangef(n, f);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearDepthf(float d)
|
|
{
|
|
Native.glClearDepthf(d);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetProgramBinary(
|
|
GlProgram program,
|
|
int bufSize,
|
|
int* length,
|
|
GlEnum* binaryFormat,
|
|
void* binary
|
|
)
|
|
{
|
|
Native.glGetProgramBinary(program, bufSize, length, binaryFormat, binary);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramBinary(GlProgram program, GlEnum binaryFormat, void* binary, int length)
|
|
{
|
|
Native.glProgramBinary(program, binaryFormat, binary, length);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramParameteri(GlProgram program, GlEnum pname, int value)
|
|
{
|
|
Native.glProgramParameteri(program, pname, value);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void UseProgramStages(GlPipeline pipeline, GlBitfield stages, GlProgram program)
|
|
{
|
|
Native.glUseProgramStages(pipeline, stages, program);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ActiveShaderProgram(GlPipeline pipeline, GlProgram program)
|
|
{
|
|
Native.glActiveShaderProgram(pipeline, program);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindProgramPipeline(GlPipeline pipeline)
|
|
{
|
|
Native.glBindProgramPipeline(pipeline);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DeleteProgramPipelines(ReadOnlySpan<GlPipeline> pipelines)
|
|
{
|
|
fixed (GlPipeline* pipelinesPtr = pipelines)
|
|
Native.glDeleteProgramPipelines(pipelines.Length, pipelinesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenProgramPipelines(ReadOnlySpan<GlPipeline> pipelines)
|
|
{
|
|
fixed (GlPipeline* pipelinesPtr = pipelines)
|
|
Native.glGenProgramPipelines(pipelines.Length, pipelinesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 IsProgramPipeline(GlPipeline pipeline)
|
|
{
|
|
return Native.glIsProgramPipeline(pipeline);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetProgramPipelineiv(GlPipeline pipeline, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetProgramPipelineiv(pipeline, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1i(GlProgram program, int location, int v0)
|
|
{
|
|
Native.glProgramUniform1i(program, location, v0);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1iv(GlProgram program, int location, ReadOnlySpan<int> value)
|
|
{
|
|
fixed (int* valuePtr = value)
|
|
Native.glProgramUniform1iv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1f(GlProgram program, int location, float v0)
|
|
{
|
|
Native.glProgramUniform1f(program, location, v0);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1fv(GlProgram program, int location, ReadOnlySpan<float> value)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniform1fv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1d(GlProgram program, int location, double v0)
|
|
{
|
|
Native.glProgramUniform1d(program, location, v0);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1dv(GlProgram program, int location, ReadOnlySpan<double> value)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniform1dv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1ui(GlProgram program, int location, uint v0)
|
|
{
|
|
Native.glProgramUniform1ui(program, location, v0);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform1uiv(GlProgram program, int location, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glProgramUniform1uiv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2i(GlProgram program, int location, int v0, int v1)
|
|
{
|
|
Native.glProgramUniform2i(program, location, v0, v1);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2iv(GlProgram program, int location, ReadOnlySpan<int> value)
|
|
{
|
|
fixed (int* valuePtr = value)
|
|
Native.glProgramUniform2iv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2f(GlProgram program, int location, float v0, float v1)
|
|
{
|
|
Native.glProgramUniform2f(program, location, v0, v1);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2fv(GlProgram program, int location, ReadOnlySpan<float> value)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniform2fv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2d(GlProgram program, int location, double v0, double v1)
|
|
{
|
|
Native.glProgramUniform2d(program, location, v0, v1);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2dv(GlProgram program, int location, ReadOnlySpan<double> value)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniform2dv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2ui(GlProgram program, int location, uint v0, uint v1)
|
|
{
|
|
Native.glProgramUniform2ui(program, location, v0, v1);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform2uiv(GlProgram program, int location, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glProgramUniform2uiv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3i(GlProgram program, int location, int v0, int v1, int v2)
|
|
{
|
|
Native.glProgramUniform3i(program, location, v0, v1, v2);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3iv(GlProgram program, int location, ReadOnlySpan<int> value)
|
|
{
|
|
fixed (int* valuePtr = value)
|
|
Native.glProgramUniform3iv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3f(GlProgram program, int location, float v0, float v1, float v2)
|
|
{
|
|
Native.glProgramUniform3f(program, location, v0, v1, v2);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3fv(GlProgram program, int location, ReadOnlySpan<float> value)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniform3fv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3d(GlProgram program, int location, double v0, double v1, double v2)
|
|
{
|
|
Native.glProgramUniform3d(program, location, v0, v1, v2);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3dv(GlProgram program, int location, ReadOnlySpan<double> value)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniform3dv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3ui(GlProgram program, int location, uint v0, uint v1, uint v2)
|
|
{
|
|
Native.glProgramUniform3ui(program, location, v0, v1, v2);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform3uiv(GlProgram program, int location, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glProgramUniform3uiv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4i(GlProgram program, int location, int v0, int v1, int v2, int v3)
|
|
{
|
|
Native.glProgramUniform4i(program, location, v0, v1, v2, v3);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4iv(GlProgram program, int location, ReadOnlySpan<int> value)
|
|
{
|
|
fixed (int* valuePtr = value)
|
|
Native.glProgramUniform4iv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4f(
|
|
GlProgram program,
|
|
int location,
|
|
float v0,
|
|
float v1,
|
|
float v2,
|
|
float v3
|
|
)
|
|
{
|
|
Native.glProgramUniform4f(program, location, v0, v1, v2, v3);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4fv(GlProgram program, int location, ReadOnlySpan<float> value)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniform4fv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4d(
|
|
GlProgram program,
|
|
int location,
|
|
double v0,
|
|
double v1,
|
|
double v2,
|
|
double v3
|
|
)
|
|
{
|
|
Native.glProgramUniform4d(program, location, v0, v1, v2, v3);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4dv(GlProgram program, int location, ReadOnlySpan<double> value)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniform4dv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4ui(GlProgram program, int location, uint v0, uint v1, uint v2, uint v3)
|
|
{
|
|
Native.glProgramUniform4ui(program, location, v0, v1, v2, v3);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniform4uiv(GlProgram program, int location, ReadOnlySpan<uint> value)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glProgramUniform4uiv(program, location, value.Length, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix2fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix2fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix3fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix3fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix4fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix4fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix2dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix2dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix3dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix3dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix4dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix4dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix2x3fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix2x3fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix3x2fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix3x2fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix2x4fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix2x4fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix4x2fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix4x2fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix3x4fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix3x4fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix4x3fv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glProgramUniformMatrix4x3fv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix2x3dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix2x3dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix3x2dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix3x2dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix2x4dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix2x4dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix4x2dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix4x2dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix3x4dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix3x4dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ProgramUniformMatrix4x3dv(
|
|
GlProgram program,
|
|
int location,
|
|
int count,
|
|
Brutal.Bool8 transpose,
|
|
ReadOnlySpan<double> value
|
|
)
|
|
{
|
|
fixed (double* valuePtr = value)
|
|
Native.glProgramUniformMatrix4x3dv(program, location, count, transpose, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ValidateProgramPipeline(GlPipeline pipeline)
|
|
{
|
|
Native.glValidateProgramPipeline(pipeline);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetProgramPipelineInfoLog(
|
|
GlPipeline pipeline,
|
|
int bufSize,
|
|
int* length,
|
|
ReadOnlySpan<byte> infoLog
|
|
)
|
|
{
|
|
fixed (byte* infoLogPtr = infoLog)
|
|
Native.glGetProgramPipelineInfoLog(pipeline, bufSize, length, infoLogPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL1d(uint index, double x)
|
|
{
|
|
Native.glVertexAttribL1d(index, x);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL2d(uint index, double x, double y)
|
|
{
|
|
Native.glVertexAttribL2d(index, x, y);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL3d(uint index, double x, double y, double z)
|
|
{
|
|
Native.glVertexAttribL3d(index, x, y, z);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL4d(uint index, double x, double y, double z, double w)
|
|
{
|
|
Native.glVertexAttribL4d(index, x, y, z, w);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL1dv(uint index, ReadOnlySpan<double> v)
|
|
{
|
|
fixed (double* vPtr = v)
|
|
Native.glVertexAttribL1dv(index, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL2dv(uint index, ReadOnlySpan<double> v)
|
|
{
|
|
fixed (double* vPtr = v)
|
|
Native.glVertexAttribL2dv(index, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL3dv(uint index, ReadOnlySpan<double> v)
|
|
{
|
|
fixed (double* vPtr = v)
|
|
Native.glVertexAttribL3dv(index, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribL4dv(uint index, ReadOnlySpan<double> v)
|
|
{
|
|
fixed (double* vPtr = v)
|
|
Native.glVertexAttribL4dv(index, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribLPointer(uint index, int size, GlEnum type, int stride, void* pointer)
|
|
{
|
|
Native.glVertexAttribLPointer(index, size, type, stride, pointer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ViewportArrayv(uint first, ReadOnlySpan<float> v)
|
|
{
|
|
fixed (float* vPtr = v)
|
|
Native.glViewportArrayv(first, v.Length, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ViewportIndexedf(uint index, float x, float y, float w, float h)
|
|
{
|
|
Native.glViewportIndexedf(index, x, y, w, h);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ViewportIndexedfv(uint index, ReadOnlySpan<float> v)
|
|
{
|
|
fixed (float* vPtr = v)
|
|
Native.glViewportIndexedfv(index, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ScissorArrayv(uint first, ReadOnlySpan<int> v)
|
|
{
|
|
fixed (int* vPtr = v)
|
|
Native.glScissorArrayv(first, v.Length, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ScissorIndexed(uint index, int left, int bottom, int width, int height)
|
|
{
|
|
Native.glScissorIndexed(index, left, bottom, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ScissorIndexedv(uint index, ReadOnlySpan<int> v)
|
|
{
|
|
fixed (int* vPtr = v)
|
|
Native.glScissorIndexedv(index, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DepthRangeArrayv(uint first, ReadOnlySpan<double> v)
|
|
{
|
|
fixed (double* vPtr = v)
|
|
Native.glDepthRangeArrayv(first, v.Length, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DepthRangeIndexed(uint index, double n, double f)
|
|
{
|
|
Native.glDepthRangeIndexed(index, n, f);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetFloati_v(GlEnum target, uint index, ReadOnlySpan<float> data)
|
|
{
|
|
fixed (float* dataPtr = data)
|
|
Native.glGetFloati_v(target, index, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetDoublei_v(GlEnum target, uint index, ReadOnlySpan<double> data)
|
|
{
|
|
fixed (double* dataPtr = data)
|
|
Native.glGetDoublei_v(target, index, dataPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetInternalformativ(
|
|
GlEnum target,
|
|
GlEnum internalformat,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetInternalformativ(target, internalformat, pname, @params.Length, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetActiveAtomicCounterBufferiv(
|
|
GlProgram program,
|
|
uint bufferIndex,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetActiveAtomicCounterBufferiv(program, bufferIndex, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindImageTexture(
|
|
uint unit,
|
|
uint texture,
|
|
int level,
|
|
Brutal.Bool8 layered,
|
|
int layer,
|
|
GlEnum access,
|
|
GlEnum format
|
|
)
|
|
{
|
|
Native.glBindImageTexture(unit, texture, level, layered, layer, access, format);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MemoryBarrier(GlBitfield barriers)
|
|
{
|
|
Native.glMemoryBarrier(barriers);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexStorage1D(GlEnum target, int levels, GlEnum internalformat, int width)
|
|
{
|
|
Native.glTexStorage1D(target, levels, internalformat, width);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexStorage2D(GlEnum target, int levels, GlEnum internalformat, int width, int height)
|
|
{
|
|
Native.glTexStorage2D(target, levels, internalformat, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexStorage3D(
|
|
GlEnum target,
|
|
int levels,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
int depth
|
|
)
|
|
{
|
|
Native.glTexStorage3D(target, levels, internalformat, width, height, depth);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearBufferData(
|
|
GlEnum target,
|
|
GlEnum internalformat,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glClearBufferData(target, internalformat, format, type, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearBufferSubData(
|
|
GlEnum target,
|
|
GlEnum internalformat,
|
|
nint offset,
|
|
nint size,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glClearBufferSubData(target, internalformat, offset, size, format, type, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DispatchCompute(uint num_groups_x, uint num_groups_y, uint num_groups_z)
|
|
{
|
|
Native.glDispatchCompute(num_groups_x, num_groups_y, num_groups_z);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DispatchComputeIndirect(nint indirect)
|
|
{
|
|
Native.glDispatchComputeIndirect(indirect);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyImageSubData(
|
|
uint srcName,
|
|
GlEnum srcTarget,
|
|
int srcLevel,
|
|
int srcX,
|
|
int srcY,
|
|
int srcZ,
|
|
uint dstName,
|
|
GlEnum dstTarget,
|
|
int dstLevel,
|
|
int dstX,
|
|
int dstY,
|
|
int dstZ,
|
|
int srcWidth,
|
|
int srcHeight,
|
|
int srcDepth
|
|
)
|
|
{
|
|
Native.glCopyImageSubData(
|
|
srcName,
|
|
srcTarget,
|
|
srcLevel,
|
|
srcX,
|
|
srcY,
|
|
srcZ,
|
|
dstName,
|
|
dstTarget,
|
|
dstLevel,
|
|
dstX,
|
|
dstY,
|
|
dstZ,
|
|
srcWidth,
|
|
srcHeight,
|
|
srcDepth
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FramebufferParameteri(GlEnum target, GlEnum pname, int param)
|
|
{
|
|
Native.glFramebufferParameteri(target, pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetFramebufferParameteriv(GlEnum target, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetFramebufferParameteriv(target, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetInternalformati64v(
|
|
GlEnum target,
|
|
GlEnum internalformat,
|
|
GlEnum pname,
|
|
ReadOnlySpan<long> @params
|
|
)
|
|
{
|
|
fixed (long* @paramsPtr = @params)
|
|
Native.glGetInternalformati64v(target, internalformat, pname, @params.Length, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateTexSubImage(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth
|
|
)
|
|
{
|
|
Native.glInvalidateTexSubImage(texture, level, xoffset, yoffset, zoffset, width, height, depth);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateTexImage(uint texture, int level)
|
|
{
|
|
Native.glInvalidateTexImage(texture, level);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateBufferSubData(GlBuffer buffer, nint offset, nint length)
|
|
{
|
|
Native.glInvalidateBufferSubData(buffer, offset, length);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateBufferData(GlBuffer buffer)
|
|
{
|
|
Native.glInvalidateBufferData(buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateFramebuffer(
|
|
GlEnum target,
|
|
int numAttachments,
|
|
ReadOnlySpan<GlEnum> attachments
|
|
)
|
|
{
|
|
fixed (GlEnum* attachmentsPtr = attachments)
|
|
Native.glInvalidateFramebuffer(target, numAttachments, attachmentsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateSubFramebuffer(
|
|
GlEnum target,
|
|
int numAttachments,
|
|
GlEnum* attachments,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glInvalidateSubFramebuffer(target, numAttachments, attachments, x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetProgramInterfaceiv(
|
|
GlProgram program,
|
|
GlEnum programInterface,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetProgramInterfaceiv(program, programInterface, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe uint GetProgramResourceIndex(
|
|
GlProgram program,
|
|
GlEnum programInterface,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetProgramResourceIndex(program, programInterface, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetProgramResourceName(
|
|
GlProgram program,
|
|
GlEnum programInterface,
|
|
uint index,
|
|
int bufSize,
|
|
int* length,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
Native.glGetProgramResourceName(program, programInterface, index, bufSize, length, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetProgramResourceiv(
|
|
GlProgram program,
|
|
GlEnum programInterface,
|
|
uint index,
|
|
int propCount,
|
|
GlEnum* props,
|
|
int count,
|
|
int* length,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetProgramResourceiv(
|
|
program,
|
|
programInterface,
|
|
index,
|
|
propCount,
|
|
props,
|
|
count,
|
|
length,
|
|
@paramsPtr
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe int GetProgramResourceLocation(
|
|
GlProgram program,
|
|
GlEnum programInterface,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetProgramResourceLocation(program, programInterface, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe int GetProgramResourceLocationIndex(
|
|
GlProgram program,
|
|
GlEnum programInterface,
|
|
ReadOnlySpan<byte> name
|
|
)
|
|
{
|
|
fixed (byte* namePtr = name)
|
|
return Native.glGetProgramResourceLocationIndex(program, programInterface, namePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ShaderStorageBlockBinding(
|
|
GlProgram program,
|
|
uint storageBlockIndex,
|
|
uint storageBlockBinding
|
|
)
|
|
{
|
|
Native.glShaderStorageBlockBinding(program, storageBlockIndex, storageBlockBinding);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexBufferRange(
|
|
GlEnum target,
|
|
GlEnum internalformat,
|
|
GlBuffer buffer,
|
|
nint offset,
|
|
nint size
|
|
)
|
|
{
|
|
Native.glTexBufferRange(target, internalformat, buffer, offset, size);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexStorage2DMultisample(
|
|
GlEnum target,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
Brutal.Bool8 fixedsamplelocations
|
|
)
|
|
{
|
|
Native.glTexStorage2DMultisample(target, samples, internalformat, width, height, fixedsamplelocations);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TexStorage3DMultisample(
|
|
GlEnum target,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
Brutal.Bool8 fixedsamplelocations
|
|
)
|
|
{
|
|
Native.glTexStorage3DMultisample(
|
|
target,
|
|
samples,
|
|
internalformat,
|
|
width,
|
|
height,
|
|
depth,
|
|
fixedsamplelocations
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureView(
|
|
uint texture,
|
|
GlEnum target,
|
|
uint origtexture,
|
|
GlEnum internalformat,
|
|
uint minlevel,
|
|
uint numlevels,
|
|
uint minlayer,
|
|
uint numlayers
|
|
)
|
|
{
|
|
Native.glTextureView(
|
|
texture,
|
|
target,
|
|
origtexture,
|
|
internalformat,
|
|
minlevel,
|
|
numlevels,
|
|
minlayer,
|
|
numlayers
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindVertexBuffer(uint bindingindex, GlBuffer buffer, nint offset, int stride)
|
|
{
|
|
Native.glBindVertexBuffer(bindingindex, buffer, offset, stride);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribFormat(
|
|
uint attribindex,
|
|
int size,
|
|
GlEnum type,
|
|
Brutal.Bool8 normalized,
|
|
uint relativeoffset
|
|
)
|
|
{
|
|
Native.glVertexAttribFormat(attribindex, size, type, normalized, relativeoffset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribIFormat(uint attribindex, int size, GlEnum type, uint relativeoffset)
|
|
{
|
|
Native.glVertexAttribIFormat(attribindex, size, type, relativeoffset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribLFormat(uint attribindex, int size, GlEnum type, uint relativeoffset)
|
|
{
|
|
Native.glVertexAttribLFormat(attribindex, size, type, relativeoffset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexAttribBinding(uint attribindex, uint bindingindex)
|
|
{
|
|
Native.glVertexAttribBinding(attribindex, bindingindex);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexBindingDivisor(uint bindingindex, uint divisor)
|
|
{
|
|
Native.glVertexBindingDivisor(bindingindex, divisor);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DebugMessageControl(
|
|
GlEnum source,
|
|
GlEnum type,
|
|
GlEnum severity,
|
|
int count,
|
|
uint* ids,
|
|
Brutal.Bool8 enabled
|
|
)
|
|
{
|
|
Native.glDebugMessageControl(source, type, severity, count, ids, enabled);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DebugMessageInsert(
|
|
GlEnum source,
|
|
GlEnum type,
|
|
uint id,
|
|
GlEnum severity,
|
|
int length,
|
|
ReadOnlySpan<byte> buf
|
|
)
|
|
{
|
|
fixed (byte* bufPtr = buf)
|
|
Native.glDebugMessageInsert(source, type, id, severity, length, bufPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DebugMessageCallback(nint* callback, void* userParam)
|
|
{
|
|
Native.glDebugMessageCallback(callback, userParam);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe uint GetDebugMessageLog(
|
|
uint count,
|
|
int bufSize,
|
|
GlEnum* sources,
|
|
GlEnum* types,
|
|
uint* ids,
|
|
GlEnum* severities,
|
|
int* lengths,
|
|
ReadOnlySpan<byte> messageLog
|
|
)
|
|
{
|
|
fixed (byte* messageLogPtr = messageLog)
|
|
return Native.glGetDebugMessageLog(
|
|
count,
|
|
bufSize,
|
|
sources,
|
|
types,
|
|
ids,
|
|
severities,
|
|
lengths,
|
|
messageLogPtr
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PushDebugGroup(GlEnum source, uint id, int length, ReadOnlySpan<byte> message)
|
|
{
|
|
fixed (byte* messagePtr = message)
|
|
Native.glPushDebugGroup(source, id, length, messagePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PopDebugGroup()
|
|
{
|
|
Native.glPopDebugGroup();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ObjectLabel(GlEnum identifier, uint name, int length, ReadOnlySpan<byte> label)
|
|
{
|
|
fixed (byte* labelPtr = label)
|
|
Native.glObjectLabel(identifier, name, length, labelPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetObjectLabel(
|
|
GlEnum identifier,
|
|
uint name,
|
|
int bufSize,
|
|
int* length,
|
|
ReadOnlySpan<byte> label
|
|
)
|
|
{
|
|
fixed (byte* labelPtr = label)
|
|
Native.glGetObjectLabel(identifier, name, bufSize, length, labelPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ObjectPtrLabel(void* ptr, int length, ReadOnlySpan<byte> label)
|
|
{
|
|
fixed (byte* labelPtr = label)
|
|
Native.glObjectPtrLabel(ptr, length, labelPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetObjectPtrLabel(void* ptr, int bufSize, int* length, ReadOnlySpan<byte> label)
|
|
{
|
|
fixed (byte* labelPtr = label)
|
|
Native.glGetObjectPtrLabel(ptr, bufSize, length, labelPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetPointerv(GlEnum pname, void** @params)
|
|
{
|
|
Native.glGetPointerv(pname, @params);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BufferStorage(GlEnum target, nint size, void* data, GlBitfield flags)
|
|
{
|
|
Native.glBufferStorage(target, size, data, flags);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearTexImage(uint texture, int level, GlEnum format, GlEnum type, void* data)
|
|
{
|
|
Native.glClearTexImage(texture, level, format, type, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearTexSubImage(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glClearTexSubImage(
|
|
texture,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
zoffset,
|
|
width,
|
|
height,
|
|
depth,
|
|
format,
|
|
type,
|
|
data
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindBuffersBase(GlEnum target, uint first, ReadOnlySpan<GlBuffer> buffers)
|
|
{
|
|
fixed (GlBuffer* buffersPtr = buffers)
|
|
Native.glBindBuffersBase(target, first, buffers.Length, buffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindBuffersRange(
|
|
GlEnum target,
|
|
uint first,
|
|
int count,
|
|
GlBuffer* buffers,
|
|
nint* offsets,
|
|
ReadOnlySpan<nint> sizes
|
|
)
|
|
{
|
|
fixed (nint* sizesPtr = sizes)
|
|
Native.glBindBuffersRange(target, first, count, buffers, offsets, sizesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindTextures(uint first, ReadOnlySpan<GlTexture> textures)
|
|
{
|
|
fixed (GlTexture* texturesPtr = textures)
|
|
Native.glBindTextures(first, textures.Length, texturesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindSamplers(uint first, ReadOnlySpan<GlSampler> samplers)
|
|
{
|
|
fixed (GlSampler* samplersPtr = samplers)
|
|
Native.glBindSamplers(first, samplers.Length, samplersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindImageTextures(uint first, ReadOnlySpan<GlTexture> textures)
|
|
{
|
|
fixed (GlTexture* texturesPtr = textures)
|
|
Native.glBindImageTextures(first, textures.Length, texturesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindVertexBuffers(
|
|
uint first,
|
|
int count,
|
|
GlBuffer* buffers,
|
|
nint* offsets,
|
|
ReadOnlySpan<int> strides
|
|
)
|
|
{
|
|
fixed (int* stridesPtr = strides)
|
|
Native.glBindVertexBuffers(first, count, buffers, offsets, stridesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClipControl(GlEnum origin, GlEnum depth)
|
|
{
|
|
Native.glClipControl(origin, depth);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateTransformFeedbacks(ReadOnlySpan<uint> ids)
|
|
{
|
|
fixed (uint* idsPtr = ids)
|
|
Native.glCreateTransformFeedbacks(ids.Length, idsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TransformFeedbackBufferBase(uint xfb, uint index, GlBuffer buffer)
|
|
{
|
|
Native.glTransformFeedbackBufferBase(xfb, index, buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TransformFeedbackBufferRange(
|
|
uint xfb,
|
|
uint index,
|
|
GlBuffer buffer,
|
|
nint offset,
|
|
nint size
|
|
)
|
|
{
|
|
Native.glTransformFeedbackBufferRange(xfb, index, buffer, offset, size);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTransformFeedbackiv(uint xfb, GlEnum pname, ReadOnlySpan<int> param)
|
|
{
|
|
fixed (int* paramPtr = param)
|
|
Native.glGetTransformFeedbackiv(xfb, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTransformFeedbacki_v(uint xfb, GlEnum pname, uint index, ReadOnlySpan<int> param)
|
|
{
|
|
fixed (int* paramPtr = param)
|
|
Native.glGetTransformFeedbacki_v(xfb, pname, index, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTransformFeedbacki64_v(
|
|
uint xfb,
|
|
GlEnum pname,
|
|
uint index,
|
|
ReadOnlySpan<long> param
|
|
)
|
|
{
|
|
fixed (long* paramPtr = param)
|
|
Native.glGetTransformFeedbacki64_v(xfb, pname, index, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateBuffers(ReadOnlySpan<GlBuffer> buffers)
|
|
{
|
|
fixed (GlBuffer* buffersPtr = buffers)
|
|
Native.glCreateBuffers(buffers.Length, buffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedBufferStorage(GlBuffer buffer, nint size, void* data, GlBitfield flags)
|
|
{
|
|
Native.glNamedBufferStorage(buffer, size, data, flags);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedBufferData(GlBuffer buffer, nint size, void* data, GlEnum usage)
|
|
{
|
|
Native.glNamedBufferData(buffer, size, data, usage);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedBufferSubData(GlBuffer buffer, nint offset, nint size, void* data)
|
|
{
|
|
Native.glNamedBufferSubData(buffer, offset, size, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyNamedBufferSubData(
|
|
uint readBuffer,
|
|
uint writeBuffer,
|
|
nint readOffset,
|
|
nint writeOffset,
|
|
nint size
|
|
)
|
|
{
|
|
Native.glCopyNamedBufferSubData(readBuffer, writeBuffer, readOffset, writeOffset, size);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearNamedBufferData(
|
|
GlBuffer buffer,
|
|
GlEnum internalformat,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glClearNamedBufferData(buffer, internalformat, format, type, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearNamedBufferSubData(
|
|
GlBuffer buffer,
|
|
GlEnum internalformat,
|
|
nint offset,
|
|
nint size,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glClearNamedBufferSubData(buffer, internalformat, offset, size, format, type, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void* MapNamedBuffer(GlBuffer buffer, GlEnum access)
|
|
{
|
|
return Native.glMapNamedBuffer(buffer, access);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void* MapNamedBufferRange(GlBuffer buffer, nint offset, nint length, GlBitfield access)
|
|
{
|
|
return Native.glMapNamedBufferRange(buffer, offset, length, access);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe Brutal.Bool8 UnmapNamedBuffer(GlBuffer buffer)
|
|
{
|
|
return Native.glUnmapNamedBuffer(buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void FlushMappedNamedBufferRange(GlBuffer buffer, nint offset, nint length)
|
|
{
|
|
Native.glFlushMappedNamedBufferRange(buffer, offset, length);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetNamedBufferParameteriv(GlBuffer buffer, GlEnum pname, ReadOnlySpan<int> @params)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetNamedBufferParameteriv(buffer, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetNamedBufferParameteri64v(GlBuffer buffer, GlEnum pname, ReadOnlySpan<long> @params)
|
|
{
|
|
fixed (long* @paramsPtr = @params)
|
|
Native.glGetNamedBufferParameteri64v(buffer, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetNamedBufferPointerv(GlBuffer buffer, GlEnum pname, void** @params)
|
|
{
|
|
Native.glGetNamedBufferPointerv(buffer, pname, @params);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetNamedBufferSubData(GlBuffer buffer, nint offset, nint size, void* data)
|
|
{
|
|
Native.glGetNamedBufferSubData(buffer, offset, size, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateFramebuffers(ReadOnlySpan<GlFramebuffer> framebuffers)
|
|
{
|
|
fixed (GlFramebuffer* framebuffersPtr = framebuffers)
|
|
Native.glCreateFramebuffers(framebuffers.Length, framebuffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedFramebufferRenderbuffer(
|
|
GlFramebuffer framebuffer,
|
|
GlEnum attachment,
|
|
GlEnum renderbuffertarget,
|
|
GlRenderbuffer renderbuffer
|
|
)
|
|
{
|
|
Native.glNamedFramebufferRenderbuffer(framebuffer, attachment, renderbuffertarget, renderbuffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedFramebufferParameteri(GlFramebuffer framebuffer, GlEnum pname, int param)
|
|
{
|
|
Native.glNamedFramebufferParameteri(framebuffer, pname, param);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedFramebufferTexture(
|
|
GlFramebuffer framebuffer,
|
|
GlEnum attachment,
|
|
uint texture,
|
|
int level
|
|
)
|
|
{
|
|
Native.glNamedFramebufferTexture(framebuffer, attachment, texture, level);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedFramebufferTextureLayer(
|
|
GlFramebuffer framebuffer,
|
|
GlEnum attachment,
|
|
uint texture,
|
|
int level,
|
|
int layer
|
|
)
|
|
{
|
|
Native.glNamedFramebufferTextureLayer(framebuffer, attachment, texture, level, layer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedFramebufferDrawBuffer(GlFramebuffer framebuffer, GlEnum buf)
|
|
{
|
|
Native.glNamedFramebufferDrawBuffer(framebuffer, buf);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedFramebufferDrawBuffers(GlFramebuffer framebuffer, ReadOnlySpan<GlEnum> bufs)
|
|
{
|
|
fixed (GlEnum* bufsPtr = bufs)
|
|
Native.glNamedFramebufferDrawBuffers(framebuffer, bufs.Length, bufsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedFramebufferReadBuffer(GlFramebuffer framebuffer, GlEnum src)
|
|
{
|
|
Native.glNamedFramebufferReadBuffer(framebuffer, src);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateNamedFramebufferData(
|
|
GlFramebuffer framebuffer,
|
|
int numAttachments,
|
|
ReadOnlySpan<GlEnum> attachments
|
|
)
|
|
{
|
|
fixed (GlEnum* attachmentsPtr = attachments)
|
|
Native.glInvalidateNamedFramebufferData(framebuffer, numAttachments, attachmentsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void InvalidateNamedFramebufferSubData(
|
|
GlFramebuffer framebuffer,
|
|
int numAttachments,
|
|
GlEnum* attachments,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glInvalidateNamedFramebufferSubData(framebuffer, numAttachments, attachments, x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearNamedFramebufferiv(
|
|
GlFramebuffer framebuffer,
|
|
GlBuffer buffer,
|
|
int drawbuffer,
|
|
ReadOnlySpan<int> value
|
|
)
|
|
{
|
|
fixed (int* valuePtr = value)
|
|
Native.glClearNamedFramebufferiv(framebuffer, buffer, drawbuffer, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearNamedFramebufferuiv(
|
|
GlFramebuffer framebuffer,
|
|
GlBuffer buffer,
|
|
int drawbuffer,
|
|
ReadOnlySpan<uint> value
|
|
)
|
|
{
|
|
fixed (uint* valuePtr = value)
|
|
Native.glClearNamedFramebufferuiv(framebuffer, buffer, drawbuffer, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearNamedFramebufferfv(
|
|
GlFramebuffer framebuffer,
|
|
GlBuffer buffer,
|
|
int drawbuffer,
|
|
ReadOnlySpan<float> value
|
|
)
|
|
{
|
|
fixed (float* valuePtr = value)
|
|
Native.glClearNamedFramebufferfv(framebuffer, buffer, drawbuffer, valuePtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ClearNamedFramebufferfi(
|
|
GlFramebuffer framebuffer,
|
|
GlBuffer buffer,
|
|
int drawbuffer,
|
|
float depth,
|
|
int stencil
|
|
)
|
|
{
|
|
Native.glClearNamedFramebufferfi(framebuffer, buffer, drawbuffer, depth, stencil);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BlitNamedFramebuffer(
|
|
uint readFramebuffer,
|
|
uint drawFramebuffer,
|
|
int srcX0,
|
|
int srcY0,
|
|
int srcX1,
|
|
int srcY1,
|
|
int dstX0,
|
|
int dstY0,
|
|
int dstX1,
|
|
int dstY1,
|
|
GlBitfield mask,
|
|
GlEnum filter
|
|
)
|
|
{
|
|
Native.glBlitNamedFramebuffer(
|
|
readFramebuffer,
|
|
drawFramebuffer,
|
|
srcX0,
|
|
srcY0,
|
|
srcX1,
|
|
srcY1,
|
|
dstX0,
|
|
dstY0,
|
|
dstX1,
|
|
dstY1,
|
|
mask,
|
|
filter
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlEnum CheckNamedFramebufferStatus(GlFramebuffer framebuffer, GlEnum target)
|
|
{
|
|
return Native.glCheckNamedFramebufferStatus(framebuffer, target);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetNamedFramebufferParameteriv(
|
|
GlFramebuffer framebuffer,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> param
|
|
)
|
|
{
|
|
fixed (int* paramPtr = param)
|
|
Native.glGetNamedFramebufferParameteriv(framebuffer, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetNamedFramebufferAttachmentParameteriv(
|
|
GlFramebuffer framebuffer,
|
|
GlEnum attachment,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetNamedFramebufferAttachmentParameteriv(framebuffer, attachment, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateRenderbuffers(ReadOnlySpan<GlRenderbuffer> renderbuffers)
|
|
{
|
|
fixed (GlRenderbuffer* renderbuffersPtr = renderbuffers)
|
|
Native.glCreateRenderbuffers(renderbuffers.Length, renderbuffersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedRenderbufferStorage(
|
|
GlRenderbuffer renderbuffer,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glNamedRenderbufferStorage(renderbuffer, internalformat, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void NamedRenderbufferStorageMultisample(
|
|
GlRenderbuffer renderbuffer,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glNamedRenderbufferStorageMultisample(renderbuffer, samples, internalformat, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetNamedRenderbufferParameteriv(
|
|
GlRenderbuffer renderbuffer,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetNamedRenderbufferParameteriv(renderbuffer, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateTextures(GlEnum target, ReadOnlySpan<GlTexture> textures)
|
|
{
|
|
fixed (GlTexture* texturesPtr = textures)
|
|
Native.glCreateTextures(target, textures.Length, texturesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureBuffer(uint texture, GlEnum internalformat, GlBuffer buffer)
|
|
{
|
|
Native.glTextureBuffer(texture, internalformat, buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureBufferRange(
|
|
uint texture,
|
|
GlEnum internalformat,
|
|
GlBuffer buffer,
|
|
nint offset,
|
|
nint size
|
|
)
|
|
{
|
|
Native.glTextureBufferRange(texture, internalformat, buffer, offset, size);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureStorage1D(uint texture, int levels, GlEnum internalformat, int width)
|
|
{
|
|
Native.glTextureStorage1D(texture, levels, internalformat, width);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureStorage2D(
|
|
uint texture,
|
|
int levels,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glTextureStorage2D(texture, levels, internalformat, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureStorage3D(
|
|
uint texture,
|
|
int levels,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
int depth
|
|
)
|
|
{
|
|
Native.glTextureStorage3D(texture, levels, internalformat, width, height, depth);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureStorage2DMultisample(
|
|
uint texture,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
Brutal.Bool8 fixedsamplelocations
|
|
)
|
|
{
|
|
Native.glTextureStorage2DMultisample(texture, samples, internalformat, width, height, fixedsamplelocations);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureStorage3DMultisample(
|
|
uint texture,
|
|
int samples,
|
|
GlEnum internalformat,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
Brutal.Bool8 fixedsamplelocations
|
|
)
|
|
{
|
|
Native.glTextureStorage3DMultisample(
|
|
texture,
|
|
samples,
|
|
internalformat,
|
|
width,
|
|
height,
|
|
depth,
|
|
fixedsamplelocations
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureSubImage1D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int width,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTextureSubImage1D(texture, level, xoffset, width, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureSubImage2D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int width,
|
|
int height,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTextureSubImage2D(texture, level, xoffset, yoffset, width, height, format, type, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureSubImage3D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glTextureSubImage3D(
|
|
texture,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
zoffset,
|
|
width,
|
|
height,
|
|
depth,
|
|
format,
|
|
type,
|
|
pixels
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTextureSubImage1D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int width,
|
|
GlEnum format,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTextureSubImage1D(texture, level, xoffset, width, format, imageSize, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTextureSubImage2D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int width,
|
|
int height,
|
|
GlEnum format,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTextureSubImage2D(
|
|
texture,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
width,
|
|
height,
|
|
format,
|
|
imageSize,
|
|
data
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CompressedTextureSubImage3D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
GlEnum format,
|
|
int imageSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glCompressedTextureSubImage3D(
|
|
texture,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
zoffset,
|
|
width,
|
|
height,
|
|
depth,
|
|
format,
|
|
imageSize,
|
|
data
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTextureSubImage1D(uint texture, int level, int xoffset, int x, int y, int width)
|
|
{
|
|
Native.glCopyTextureSubImage1D(texture, level, xoffset, x, y, width);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTextureSubImage2D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glCopyTextureSubImage2D(texture, level, xoffset, yoffset, x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CopyTextureSubImage3D(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height
|
|
)
|
|
{
|
|
Native.glCopyTextureSubImage3D(texture, level, xoffset, yoffset, zoffset, x, y, width, height);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GenerateTextureMipmap(uint texture)
|
|
{
|
|
Native.glGenerateTextureMipmap(texture);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void BindTextureUnit(uint unit, uint texture)
|
|
{
|
|
Native.glBindTextureUnit(unit, texture);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTextureImage(
|
|
uint texture,
|
|
int level,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int bufSize,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glGetTextureImage(texture, level, format, type, bufSize, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetCompressedTextureImage(uint texture, int level, int bufSize, void* pixels)
|
|
{
|
|
Native.glGetCompressedTextureImage(texture, level, bufSize, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTextureLevelParameterfv(
|
|
uint texture,
|
|
int level,
|
|
GlEnum pname,
|
|
ReadOnlySpan<float> @params
|
|
)
|
|
{
|
|
fixed (float* @paramsPtr = @params)
|
|
Native.glGetTextureLevelParameterfv(texture, level, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTextureLevelParameteriv(
|
|
uint texture,
|
|
int level,
|
|
GlEnum pname,
|
|
ReadOnlySpan<int> @params
|
|
)
|
|
{
|
|
fixed (int* @paramsPtr = @params)
|
|
Native.glGetTextureLevelParameteriv(texture, level, pname, @paramsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateVertexArrays(ReadOnlySpan<GlVertexArray> arrays)
|
|
{
|
|
fixed (GlVertexArray* arraysPtr = arrays)
|
|
Native.glCreateVertexArrays(arrays.Length, arraysPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void DisableVertexArrayAttrib(uint vaobj, uint index)
|
|
{
|
|
Native.glDisableVertexArrayAttrib(vaobj, index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void EnableVertexArrayAttrib(uint vaobj, uint index)
|
|
{
|
|
Native.glEnableVertexArrayAttrib(vaobj, index);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayElementBuffer(uint vaobj, GlBuffer buffer)
|
|
{
|
|
Native.glVertexArrayElementBuffer(vaobj, buffer);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayVertexBuffer(
|
|
uint vaobj,
|
|
uint bindingindex,
|
|
GlBuffer buffer,
|
|
nint offset,
|
|
int stride
|
|
)
|
|
{
|
|
Native.glVertexArrayVertexBuffer(vaobj, bindingindex, buffer, offset, stride);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayVertexBuffers(
|
|
uint vaobj,
|
|
uint first,
|
|
int count,
|
|
GlBuffer* buffers,
|
|
nint* offsets,
|
|
ReadOnlySpan<int> strides
|
|
)
|
|
{
|
|
fixed (int* stridesPtr = strides)
|
|
Native.glVertexArrayVertexBuffers(vaobj, first, count, buffers, offsets, stridesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayAttribBinding(uint vaobj, uint attribindex, uint bindingindex)
|
|
{
|
|
Native.glVertexArrayAttribBinding(vaobj, attribindex, bindingindex);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayAttribFormat(
|
|
uint vaobj,
|
|
uint attribindex,
|
|
int size,
|
|
GlEnum type,
|
|
Brutal.Bool8 normalized,
|
|
uint relativeoffset
|
|
)
|
|
{
|
|
Native.glVertexArrayAttribFormat(vaobj, attribindex, size, type, normalized, relativeoffset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayAttribIFormat(
|
|
uint vaobj,
|
|
uint attribindex,
|
|
int size,
|
|
GlEnum type,
|
|
uint relativeoffset
|
|
)
|
|
{
|
|
Native.glVertexArrayAttribIFormat(vaobj, attribindex, size, type, relativeoffset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayAttribLFormat(
|
|
uint vaobj,
|
|
uint attribindex,
|
|
int size,
|
|
GlEnum type,
|
|
uint relativeoffset
|
|
)
|
|
{
|
|
Native.glVertexArrayAttribLFormat(vaobj, attribindex, size, type, relativeoffset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void VertexArrayBindingDivisor(uint vaobj, uint bindingindex, uint divisor)
|
|
{
|
|
Native.glVertexArrayBindingDivisor(vaobj, bindingindex, divisor);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetVertexArrayiv(uint vaobj, GlEnum pname, ReadOnlySpan<int> param)
|
|
{
|
|
fixed (int* paramPtr = param)
|
|
Native.glGetVertexArrayiv(vaobj, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetVertexArrayIndexediv(uint vaobj, uint index, GlEnum pname, ReadOnlySpan<int> param)
|
|
{
|
|
fixed (int* paramPtr = param)
|
|
Native.glGetVertexArrayIndexediv(vaobj, index, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetVertexArrayIndexed64iv(
|
|
uint vaobj,
|
|
uint index,
|
|
GlEnum pname,
|
|
ReadOnlySpan<long> param
|
|
)
|
|
{
|
|
fixed (long* paramPtr = param)
|
|
Native.glGetVertexArrayIndexed64iv(vaobj, index, pname, paramPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateSamplers(ReadOnlySpan<GlSampler> samplers)
|
|
{
|
|
fixed (GlSampler* samplersPtr = samplers)
|
|
Native.glCreateSamplers(samplers.Length, samplersPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateProgramPipelines(ReadOnlySpan<GlPipeline> pipelines)
|
|
{
|
|
fixed (GlPipeline* pipelinesPtr = pipelines)
|
|
Native.glCreateProgramPipelines(pipelines.Length, pipelinesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void CreateQueries(GlEnum target, ReadOnlySpan<uint> ids)
|
|
{
|
|
fixed (uint* idsPtr = ids)
|
|
Native.glCreateQueries(target, ids.Length, idsPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryBufferObjecti64v(uint id, GlBuffer buffer, GlEnum pname, nint offset)
|
|
{
|
|
Native.glGetQueryBufferObjecti64v(id, buffer, pname, offset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryBufferObjectiv(uint id, GlBuffer buffer, GlEnum pname, nint offset)
|
|
{
|
|
Native.glGetQueryBufferObjectiv(id, buffer, pname, offset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryBufferObjectui64v(uint id, GlBuffer buffer, GlEnum pname, nint offset)
|
|
{
|
|
Native.glGetQueryBufferObjectui64v(id, buffer, pname, offset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetQueryBufferObjectuiv(uint id, GlBuffer buffer, GlEnum pname, nint offset)
|
|
{
|
|
Native.glGetQueryBufferObjectuiv(id, buffer, pname, offset);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void MemoryBarrierByRegion(GlBitfield barriers)
|
|
{
|
|
Native.glMemoryBarrierByRegion(barriers);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetTextureSubImage(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int bufSize,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glGetTextureSubImage(
|
|
texture,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
zoffset,
|
|
width,
|
|
height,
|
|
depth,
|
|
format,
|
|
type,
|
|
bufSize,
|
|
pixels
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetCompressedTextureSubImage(
|
|
uint texture,
|
|
int level,
|
|
int xoffset,
|
|
int yoffset,
|
|
int zoffset,
|
|
int width,
|
|
int height,
|
|
int depth,
|
|
int bufSize,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glGetCompressedTextureSubImage(
|
|
texture,
|
|
level,
|
|
xoffset,
|
|
yoffset,
|
|
zoffset,
|
|
width,
|
|
height,
|
|
depth,
|
|
bufSize,
|
|
pixels
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe GlEnum GetGraphicsResetStatus()
|
|
{
|
|
return Native.glGetGraphicsResetStatus();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnCompressedTexImage(GlEnum target, int lod, int bufSize, void* pixels)
|
|
{
|
|
Native.glGetnCompressedTexImage(target, lod, bufSize, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnTexImage(
|
|
GlEnum target,
|
|
int level,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int bufSize,
|
|
void* pixels
|
|
)
|
|
{
|
|
Native.glGetnTexImage(target, level, format, type, bufSize, pixels);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void ReadnPixels(
|
|
int x,
|
|
int y,
|
|
int width,
|
|
int height,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int bufSize,
|
|
void* data
|
|
)
|
|
{
|
|
Native.glReadnPixels(x, y, width, height, format, type, bufSize, data);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnMapdv(GlEnum target, GlQuery query, int bufSize, ReadOnlySpan<double> v)
|
|
{
|
|
fixed (double* vPtr = v)
|
|
Native.glGetnMapdv(target, query, bufSize, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnMapfv(GlEnum target, GlQuery query, int bufSize, ReadOnlySpan<float> v)
|
|
{
|
|
fixed (float* vPtr = v)
|
|
Native.glGetnMapfv(target, query, bufSize, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnMapiv(GlEnum target, GlQuery query, int bufSize, ReadOnlySpan<int> v)
|
|
{
|
|
fixed (int* vPtr = v)
|
|
Native.glGetnMapiv(target, query, bufSize, vPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnPixelMapfv(GlEnum map, int bufSize, ReadOnlySpan<float> values)
|
|
{
|
|
fixed (float* valuesPtr = values)
|
|
Native.glGetnPixelMapfv(map, bufSize, valuesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnPixelMapuiv(GlEnum map, int bufSize, ReadOnlySpan<uint> values)
|
|
{
|
|
fixed (uint* valuesPtr = values)
|
|
Native.glGetnPixelMapuiv(map, bufSize, valuesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnPixelMapusv(GlEnum map, int bufSize, ReadOnlySpan<ushort> values)
|
|
{
|
|
fixed (ushort* valuesPtr = values)
|
|
Native.glGetnPixelMapusv(map, bufSize, valuesPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnPolygonStipple(int bufSize, ReadOnlySpan<byte> pattern)
|
|
{
|
|
fixed (byte* patternPtr = pattern)
|
|
Native.glGetnPolygonStipple(bufSize, patternPtr);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnColorTable(GlEnum target, GlEnum format, GlEnum type, int bufSize, void* table)
|
|
{
|
|
Native.glGetnColorTable(target, format, type, bufSize, table);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnConvolutionFilter(
|
|
GlEnum target,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int bufSize,
|
|
void* image
|
|
)
|
|
{
|
|
Native.glGetnConvolutionFilter(target, format, type, bufSize, image);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnSeparableFilter(
|
|
GlEnum target,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int rowBufSize,
|
|
void* row,
|
|
int columnBufSize,
|
|
void* column,
|
|
void* span
|
|
)
|
|
{
|
|
Native.glGetnSeparableFilter(target, format, type, rowBufSize, row, columnBufSize, column, span);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnHistogram(
|
|
GlEnum target,
|
|
Brutal.Bool8 reset,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int bufSize,
|
|
void* values
|
|
)
|
|
{
|
|
Native.glGetnHistogram(target, reset, format, type, bufSize, values);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void GetnMinmax(
|
|
GlEnum target,
|
|
Brutal.Bool8 reset,
|
|
GlEnum format,
|
|
GlEnum type,
|
|
int bufSize,
|
|
void* values
|
|
)
|
|
{
|
|
Native.glGetnMinmax(target, reset, format, type, bufSize, values);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void TextureBarrier()
|
|
{
|
|
Native.glTextureBarrier();
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void SpecializeShader(
|
|
GlShader shader,
|
|
byte* pEntryPoint,
|
|
uint numSpecializationConstants,
|
|
uint* pConstantIndex,
|
|
ReadOnlySpan<uint> pConstantValue
|
|
)
|
|
{
|
|
fixed (uint* pConstantValuePtr = pConstantValue)
|
|
Native.glSpecializeShader(
|
|
shader,
|
|
pEntryPoint,
|
|
numSpecializationConstants,
|
|
pConstantIndex,
|
|
pConstantValuePtr
|
|
);
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
public static unsafe void PolygonOffsetClamp(float factor, float units, float clamp)
|
|
{
|
|
Native.glPolygonOffsetClamp(factor, units, clamp);
|
|
}
|
|
}
|
|
}
|