Double add sub mul sc-mul ok

This commit is contained in:
Youmu Liu
2025-12-31 18:15:43 +08:00
parent 6484307b8a
commit 0e93787fa2
18 changed files with 1210 additions and 944 deletions
+145 -142
View File
@@ -25,10 +25,6 @@
//
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// <auto-generated>
// Generated by StgSharp.GenerateGL on 2025-12-30 02:54:41Z
// Version: 4.5
// </auto-generated>
using StgSharp.Graphics.OpenGL;
using System;
using System.Runtime.CompilerServices;
@@ -45,7 +41,7 @@ namespace StgSharp.Graphics.OpenGL
GlHandle texture
)
{
Context.glBindTextureUnit(unit, texture.Value);
_context->glBindTextureUnit(unit, texture.Value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -64,9 +60,9 @@ namespace StgSharp.Graphics.OpenGL
uint filter
)
{
Context.glBlitNamedFramebuffer(readFramebuffer.Value, drawFramebuffer.Value, srcX0,
srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask,
filter);
_context->glBlitNamedFramebuffer(readFramebuffer.Value, drawFramebuffer.Value, srcX0,
srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask,
filter);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -75,7 +71,7 @@ namespace StgSharp.Graphics.OpenGL
uint target
)
{
return Context.glCheckNamedFramebufferStatus(framebuffer.Value, target);
return _context->glCheckNamedFramebufferStatus(framebuffer.Value, target);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -88,8 +84,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glClearNamedBufferData(buffer.Value, internalformat, format, (uint)type,
dataPtr);
_context->glClearNamedBufferData(buffer.Value, internalformat, format, (uint)type,
dataPtr);
}
}
@@ -105,8 +101,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glClearNamedBufferSubData(buffer.Value, internalformat, offset, size,
format, (uint)type, dataPtr);
_context->glClearNamedBufferSubData(buffer.Value, internalformat, offset, size,
format, (uint)type, dataPtr);
}
}
@@ -119,8 +115,8 @@ namespace StgSharp.Graphics.OpenGL
int stencil
)
{
Context.glClearNamedFramebufferfi(framebuffer.Value, buffer, drawbuffer, depth,
stencil);
_context->glClearNamedFramebufferfi(framebuffer.Value, buffer, drawbuffer, depth,
stencil);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -132,7 +128,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (float* valuePtr = value) {
Context.glClearNamedFramebufferfv(framebuffer.Value, buffer, drawbuffer, valuePtr);
_context->glClearNamedFramebufferfv(framebuffer.Value, buffer, drawbuffer,
valuePtr);
}
}
@@ -145,7 +142,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (int* valuePtr = value) {
Context.glClearNamedFramebufferiv(framebuffer.Value, buffer, drawbuffer, valuePtr);
_context->glClearNamedFramebufferiv(framebuffer.Value, buffer, drawbuffer,
valuePtr);
}
}
@@ -158,7 +156,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (uint* valuePtr = value) {
Context.glClearNamedFramebufferuiv(framebuffer.Value, buffer, drawbuffer, valuePtr);
_context->glClearNamedFramebufferuiv(framebuffer.Value, buffer, drawbuffer,
valuePtr);
}
}
@@ -168,7 +167,7 @@ namespace StgSharp.Graphics.OpenGL
uint depth
)
{
Context.glClipControl(origin, depth);
_context->glClipControl(origin, depth);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -183,8 +182,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glCompressedTextureSubImage1D(texture.Value, level, xoffset, width, format,
imageSize, dataPtr);
_context->glCompressedTextureSubImage1D(texture.Value, level, xoffset, width,
format, imageSize, dataPtr);
}
}
@@ -202,8 +201,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glCompressedTextureSubImage2D(texture.Value, level, xoffset, yoffset, width,
height, format, imageSize, dataPtr);
_context->glCompressedTextureSubImage2D(texture.Value, level, xoffset, yoffset,
width, height, format, imageSize, dataPtr);
}
}
@@ -223,9 +222,9 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glCompressedTextureSubImage3D(texture.Value, level, xoffset, yoffset,
zoffset, width, height, depth, format,
imageSize, dataPtr);
_context->glCompressedTextureSubImage3D(texture.Value, level, xoffset, yoffset,
zoffset, width, height, depth, format,
imageSize, dataPtr);
}
}
@@ -238,8 +237,8 @@ namespace StgSharp.Graphics.OpenGL
nuint size
)
{
Context.glCopyNamedBufferSubData(readBuffer.Value, writeBuffer.Value, readOffset,
writeOffset, size);
_context->glCopyNamedBufferSubData(readBuffer.Value, writeBuffer.Value, readOffset,
writeOffset, size);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -252,7 +251,7 @@ namespace StgSharp.Graphics.OpenGL
int width
)
{
Context.glCopyTextureSubImage1D(texture.Value, level, xoffset, x, y, width);
_context->glCopyTextureSubImage1D(texture.Value, level, xoffset, x, y, width);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -267,8 +266,8 @@ namespace StgSharp.Graphics.OpenGL
int height
)
{
Context.glCopyTextureSubImage2D(texture.Value, level, xoffset, yoffset, x, y, width,
height);
_context->glCopyTextureSubImage2D(texture.Value, level, xoffset, yoffset, x, y, width,
height);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -284,8 +283,8 @@ namespace StgSharp.Graphics.OpenGL
int height
)
{
Context.glCopyTextureSubImage3D(texture.Value, level, xoffset, yoffset, zoffset, x, y,
width, height);
_context->glCopyTextureSubImage3D(texture.Value, level, xoffset, yoffset, zoffset, x, y,
width, height);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -294,7 +293,7 @@ namespace StgSharp.Graphics.OpenGL
uint* buffers
)
{
Context.glCreateBuffers(n, buffers);
_context->glCreateBuffers(n, buffers);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -303,7 +302,7 @@ namespace StgSharp.Graphics.OpenGL
uint* framebuffers
)
{
Context.glCreateFramebuffers(n, framebuffers);
_context->glCreateFramebuffers(n, framebuffers);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -312,7 +311,7 @@ namespace StgSharp.Graphics.OpenGL
uint* pipelines
)
{
Context.glCreateProgramPipelines(n, pipelines);
_context->glCreateProgramPipelines(n, pipelines);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -322,7 +321,7 @@ namespace StgSharp.Graphics.OpenGL
uint* ids
)
{
Context.glCreateQueries(target, n, ids);
_context->glCreateQueries(target, n, ids);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -331,7 +330,7 @@ namespace StgSharp.Graphics.OpenGL
uint* renderbuffers
)
{
Context.glCreateRenderbuffers(n, renderbuffers);
_context->glCreateRenderbuffers(n, renderbuffers);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -340,7 +339,7 @@ namespace StgSharp.Graphics.OpenGL
uint* samplers
)
{
Context.glCreateSamplers(n, samplers);
_context->glCreateSamplers(n, samplers);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -350,7 +349,7 @@ namespace StgSharp.Graphics.OpenGL
uint* textures
)
{
Context.glCreateTextures(target, n, textures);
_context->glCreateTextures(target, n, textures);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -359,7 +358,7 @@ namespace StgSharp.Graphics.OpenGL
uint* ids
)
{
Context.glCreateTransformFeedbacks(n, ids);
_context->glCreateTransformFeedbacks(n, ids);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -368,7 +367,7 @@ namespace StgSharp.Graphics.OpenGL
uint* arrays
)
{
Context.glCreateVertexArrays(n, arrays);
_context->glCreateVertexArrays(n, arrays);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -377,7 +376,7 @@ namespace StgSharp.Graphics.OpenGL
uint index
)
{
Context.glDisableVertexArrayAttrib(vaobj, index);
_context->glDisableVertexArrayAttrib(vaobj, index);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -386,7 +385,7 @@ namespace StgSharp.Graphics.OpenGL
uint index
)
{
Context.glEnableVertexArrayAttrib(vaobj, index);
_context->glEnableVertexArrayAttrib(vaobj, index);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -396,7 +395,7 @@ namespace StgSharp.Graphics.OpenGL
nuint length
)
{
Context.glFlushMappedNamedBufferRange(buffer.Value, offset, length);
_context->glFlushMappedNamedBufferRange(buffer.Value, offset, length);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -404,7 +403,7 @@ namespace StgSharp.Graphics.OpenGL
GlHandle texture
)
{
Context.glGenerateTextureMipmap(texture.Value);
_context->glGenerateTextureMipmap(texture.Value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -415,7 +414,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* pixels
)
{
Context.glGetCompressedTextureImage(texture.Value, level, bufSize, pixels);
_context->glGetCompressedTextureImage(texture.Value, level, bufSize, pixels);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -432,14 +431,15 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* pixels
)
{
Context.glGetCompressedTextureSubImage(texture.Value, level, xoffset, yoffset, zoffset,
width, height, depth, bufSize, pixels);
_context->glGetCompressedTextureSubImage(texture.Value, level, xoffset, yoffset,
zoffset, width, height, depth, bufSize,
pixels);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public uint GetGraphicsResetStatus()
{
return Context.glGetGraphicsResetStatus();
return _context->glGetGraphicsResetStatus();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -449,7 +449,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* @params
)
{
Context.glGetNamedBufferParameteri64v(buffer.Value, pname, @params);
_context->glGetNamedBufferParameteri64v(buffer.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -459,7 +459,7 @@ namespace StgSharp.Graphics.OpenGL
int* @params
)
{
Context.glGetNamedBufferParameteriv(buffer.Value, pname, @params);
_context->glGetNamedBufferParameteriv(buffer.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -469,7 +469,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* @params
)
{
Context.glGetNamedBufferPointerv(buffer.Value, pname, @params);
_context->glGetNamedBufferPointerv(buffer.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -480,7 +480,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* data
)
{
Context.glGetNamedBufferSubData(buffer.Value, offset, size, data);
_context->glGetNamedBufferSubData(buffer.Value, offset, size, data);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -491,8 +491,8 @@ namespace StgSharp.Graphics.OpenGL
int* @params
)
{
Context.glGetNamedFramebufferAttachmentParameteriv(framebuffer.Value, attachment, pname,
@params);
_context->glGetNamedFramebufferAttachmentParameteriv(framebuffer.Value, attachment,
pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -502,7 +502,7 @@ namespace StgSharp.Graphics.OpenGL
int* param
)
{
Context.glGetNamedFramebufferParameteriv(framebuffer.Value, pname, param);
_context->glGetNamedFramebufferParameteriv(framebuffer.Value, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -512,7 +512,7 @@ namespace StgSharp.Graphics.OpenGL
int* @params
)
{
Context.glGetNamedRenderbufferParameteriv(renderbuffer.Value, pname, @params);
_context->glGetNamedRenderbufferParameteriv(renderbuffer.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -523,7 +523,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* pixels
)
{
Context.glGetnCompressedTexImage(target, lod, bufSize, pixels);
_context->glGetnCompressedTexImage(target, lod, bufSize, pixels);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -536,7 +536,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* pixels
)
{
Context.glGetnTexImage(target, level, format, (uint)type, bufSize, pixels);
_context->glGetnTexImage(target, level, format, (uint)type, bufSize, pixels);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -547,7 +547,7 @@ namespace StgSharp.Graphics.OpenGL
double* @params
)
{
Context.glGetnUniformdv(program.Value, location, bufSize, @params);
_context->glGetnUniformdv(program.Value, location, bufSize, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -558,7 +558,7 @@ namespace StgSharp.Graphics.OpenGL
float* @params
)
{
Context.glGetnUniformfv(program.Value, location, bufSize, @params);
_context->glGetnUniformfv(program.Value, location, bufSize, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -569,7 +569,7 @@ namespace StgSharp.Graphics.OpenGL
int* @params
)
{
Context.glGetnUniformiv(program.Value, location, bufSize, @params);
_context->glGetnUniformiv(program.Value, location, bufSize, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -580,7 +580,7 @@ namespace StgSharp.Graphics.OpenGL
uint* @params
)
{
Context.glGetnUniformuiv(program.Value, location, bufSize, @params);
_context->glGetnUniformuiv(program.Value, location, bufSize, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -591,7 +591,7 @@ namespace StgSharp.Graphics.OpenGL
nint offset
)
{
Context.glGetQueryBufferObjecti64v(id, buffer.Value, pname, offset);
_context->glGetQueryBufferObjecti64v(id, buffer.Value, pname, offset);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -602,7 +602,7 @@ namespace StgSharp.Graphics.OpenGL
nint offset
)
{
Context.glGetQueryBufferObjectiv(id, buffer.Value, pname, offset);
_context->glGetQueryBufferObjectiv(id, buffer.Value, pname, offset);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -613,7 +613,7 @@ namespace StgSharp.Graphics.OpenGL
nint offset
)
{
Context.glGetQueryBufferObjectui64v(id, buffer.Value, pname, offset);
_context->glGetQueryBufferObjectui64v(id, buffer.Value, pname, offset);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -624,7 +624,7 @@ namespace StgSharp.Graphics.OpenGL
nint offset
)
{
Context.glGetQueryBufferObjectuiv(id, buffer.Value, pname, offset);
_context->glGetQueryBufferObjectuiv(id, buffer.Value, pname, offset);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -637,7 +637,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* pixels
)
{
Context.glGetTextureImage(texture.Value, level, format, (uint)type, bufSize, pixels);
_context->glGetTextureImage(texture.Value, level, format, (uint)type, bufSize, pixels);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -648,7 +648,7 @@ namespace StgSharp.Graphics.OpenGL
float* @params
)
{
Context.glGetTextureLevelParameterfv(texture.Value, level, pname, @params);
_context->glGetTextureLevelParameterfv(texture.Value, level, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -659,7 +659,7 @@ namespace StgSharp.Graphics.OpenGL
int* @params
)
{
Context.glGetTextureLevelParameteriv(texture.Value, level, pname, @params);
_context->glGetTextureLevelParameteriv(texture.Value, level, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -669,7 +669,7 @@ namespace StgSharp.Graphics.OpenGL
float* @params
)
{
Context.glGetTextureParameterfv(texture.Value, pname, @params);
_context->glGetTextureParameterfv(texture.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -679,7 +679,7 @@ namespace StgSharp.Graphics.OpenGL
int* @params
)
{
Context.glGetTextureParameterIiv(texture.Value, pname, @params);
_context->glGetTextureParameterIiv(texture.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -689,7 +689,7 @@ namespace StgSharp.Graphics.OpenGL
uint* @params
)
{
Context.glGetTextureParameterIuiv(texture.Value, pname, @params);
_context->glGetTextureParameterIuiv(texture.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -699,7 +699,7 @@ namespace StgSharp.Graphics.OpenGL
int* @params
)
{
Context.glGetTextureParameteriv(texture.Value, pname, @params);
_context->glGetTextureParameteriv(texture.Value, pname, @params);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -718,8 +718,8 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* pixels
)
{
Context.glGetTextureSubImage(texture.Value, level, xoffset, yoffset, zoffset, width,
height, depth, format, (uint)type, bufSize, pixels);
_context->glGetTextureSubImage(texture.Value, level, xoffset, yoffset, zoffset, width,
height, depth, format, (uint)type, bufSize, pixels);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -730,7 +730,7 @@ namespace StgSharp.Graphics.OpenGL
int* param
)
{
Context.glGetTransformFeedbacki_v(xfb, pname, index, param);
_context->glGetTransformFeedbacki_v(xfb, pname, index, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -741,7 +741,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* param
)
{
Context.glGetTransformFeedbacki64_v(xfb, pname, index, param);
_context->glGetTransformFeedbacki64_v(xfb, pname, index, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -751,7 +751,7 @@ namespace StgSharp.Graphics.OpenGL
int* param
)
{
Context.glGetTransformFeedbackiv(xfb, pname, param);
_context->glGetTransformFeedbackiv(xfb, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -762,7 +762,7 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* param
)
{
Context.glGetVertexArrayIndexed64iv(vaobj, index, pname, param);
_context->glGetVertexArrayIndexed64iv(vaobj, index, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -773,7 +773,7 @@ namespace StgSharp.Graphics.OpenGL
int* param
)
{
Context.glGetVertexArrayIndexediv(vaobj, index, pname, param);
_context->glGetVertexArrayIndexediv(vaobj, index, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -783,7 +783,7 @@ namespace StgSharp.Graphics.OpenGL
int* param
)
{
Context.glGetVertexArrayiv(vaobj, pname, param);
_context->glGetVertexArrayiv(vaobj, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -794,7 +794,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (uint* attachmentsPtr = attachments) {
Context.glInvalidateNamedFramebufferData(framebuffer.Value, numAttachments, attachmentsPtr);
_context->glInvalidateNamedFramebufferData(framebuffer.Value, numAttachments, attachmentsPtr);
}
}
@@ -810,8 +810,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (uint* attachmentsPtr = attachments) {
Context.glInvalidateNamedFramebufferSubData(framebuffer.Value, numAttachments,
attachmentsPtr, x, y, width, height);
_context->glInvalidateNamedFramebufferSubData(framebuffer.Value, numAttachments,
attachmentsPtr, x, y, width, height);
}
}
@@ -821,7 +821,7 @@ namespace StgSharp.Graphics.OpenGL
uint access
)
{
Context.glMapNamedBuffer(buffer.Value, access);
_context->glMapNamedBuffer(buffer.Value, access);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -832,7 +832,7 @@ namespace StgSharp.Graphics.OpenGL
uint access
)
{
Context.glMapNamedBufferRange(buffer.Value, offset, length, access);
_context->glMapNamedBufferRange(buffer.Value, offset, length, access);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -840,7 +840,7 @@ namespace StgSharp.Graphics.OpenGL
uint barriers
)
{
Context.glMemoryBarrierByRegion(barriers);
_context->glMemoryBarrierByRegion(barriers);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -852,7 +852,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glNamedBufferData(buffer.Value, size, dataPtr, usage);
_context->glNamedBufferData(buffer.Value, size, dataPtr, usage);
}
}
@@ -865,7 +865,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glNamedBufferStorage(buffer.Value, size, dataPtr, flags);
_context->glNamedBufferStorage(buffer.Value, size, dataPtr, flags);
}
}
@@ -878,7 +878,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* dataPtr = data) {
Context.glNamedBufferSubData(buffer.Value, offset, size, dataPtr);
_context->glNamedBufferSubData(buffer.Value, offset, size, dataPtr);
}
}
@@ -888,7 +888,7 @@ namespace StgSharp.Graphics.OpenGL
uint buf
)
{
Context.glNamedFramebufferDrawBuffer(framebuffer.Value, buf);
_context->glNamedFramebufferDrawBuffer(framebuffer.Value, buf);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -899,7 +899,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (uint* bufsPtr = bufs) {
Context.glNamedFramebufferDrawBuffers(framebuffer.Value, n, bufsPtr);
_context->glNamedFramebufferDrawBuffers(framebuffer.Value, n, bufsPtr);
}
}
@@ -910,7 +910,7 @@ namespace StgSharp.Graphics.OpenGL
int param
)
{
Context.glNamedFramebufferParameteri(framebuffer.Value, pname, param);
_context->glNamedFramebufferParameteri(framebuffer.Value, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -919,7 +919,7 @@ namespace StgSharp.Graphics.OpenGL
uint src
)
{
Context.glNamedFramebufferReadBuffer(framebuffer.Value, src);
_context->glNamedFramebufferReadBuffer(framebuffer.Value, src);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -930,8 +930,8 @@ namespace StgSharp.Graphics.OpenGL
GlHandle renderbuffer
)
{
Context.glNamedFramebufferRenderbuffer(framebuffer.Value, attachment,
renderbuffertarget, renderbuffer.Value);
_context->glNamedFramebufferRenderbuffer(framebuffer.Value, attachment,
renderbuffertarget, renderbuffer.Value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -942,7 +942,8 @@ namespace StgSharp.Graphics.OpenGL
int level
)
{
Context.glNamedFramebufferTexture(framebuffer.Value, attachment, texture.Value, level);
_context->glNamedFramebufferTexture(framebuffer.Value, attachment, texture.Value,
level);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -954,8 +955,8 @@ namespace StgSharp.Graphics.OpenGL
int layer
)
{
Context.glNamedFramebufferTextureLayer(framebuffer.Value, attachment, texture.Value,
level, layer);
_context->glNamedFramebufferTextureLayer(framebuffer.Value, attachment, texture.Value,
level, layer);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -966,7 +967,7 @@ namespace StgSharp.Graphics.OpenGL
int height
)
{
Context.glNamedRenderbufferStorage(renderbuffer.Value, internalformat, width, height);
_context->glNamedRenderbufferStorage(renderbuffer.Value, internalformat, width, height);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -978,8 +979,8 @@ namespace StgSharp.Graphics.OpenGL
int height
)
{
Context.glNamedRenderbufferStorageMultisample(renderbuffer.Value, samples,
internalformat, width, height);
_context->glNamedRenderbufferStorageMultisample(renderbuffer.Value, samples,
internalformat, width, height);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -994,13 +995,13 @@ namespace StgSharp.Graphics.OpenGL
IntPtr* data
)
{
Context.glReadnPixels(x, y, width, height, format, (uint)type, bufSize, data);
_context->glReadnPixels(x, y, width, height, format, (uint)type, bufSize, data);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void TextureBarrier()
{
Context.glTextureBarrier();
_context->glTextureBarrier();
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1010,7 +1011,7 @@ namespace StgSharp.Graphics.OpenGL
GlHandle buffer
)
{
Context.glTextureBuffer(texture.Value, internalformat, buffer.Value);
_context->glTextureBuffer(texture.Value, internalformat, buffer.Value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1022,7 +1023,8 @@ namespace StgSharp.Graphics.OpenGL
nuint size
)
{
Context.glTextureBufferRange(texture.Value, internalformat, buffer.Value, offset, size);
_context->glTextureBufferRange(texture.Value, internalformat, buffer.Value, offset,
size);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1032,7 +1034,7 @@ namespace StgSharp.Graphics.OpenGL
float param
)
{
Context.glTextureParameterf(texture.Value, pname, param);
_context->glTextureParameterf(texture.Value, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1043,7 +1045,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (float* paramPtr = param) {
Context.glTextureParameterfv(texture.Value, pname, paramPtr);
_context->glTextureParameterfv(texture.Value, pname, paramPtr);
}
}
@@ -1054,7 +1056,7 @@ namespace StgSharp.Graphics.OpenGL
int param
)
{
Context.glTextureParameteri(texture.Value, pname, param);
_context->glTextureParameteri(texture.Value, pname, param);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1065,7 +1067,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (int* @paramsPtr = @params) {
Context.glTextureParameterIiv(texture.Value, pname, @paramsPtr);
_context->glTextureParameterIiv(texture.Value, pname, @paramsPtr);
}
}
@@ -1077,7 +1079,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (uint* @paramsPtr = @params) {
Context.glTextureParameterIuiv(texture.Value, pname, @paramsPtr);
_context->glTextureParameterIuiv(texture.Value, pname, @paramsPtr);
}
}
@@ -1089,7 +1091,7 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (int* paramPtr = param) {
Context.glTextureParameteriv(texture.Value, pname, paramPtr);
_context->glTextureParameteriv(texture.Value, pname, paramPtr);
}
}
@@ -1101,7 +1103,7 @@ namespace StgSharp.Graphics.OpenGL
int width
)
{
Context.glTextureStorage1D(texture.Value, levels, internalformat, width);
_context->glTextureStorage1D(texture.Value, levels, internalformat, width);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1113,7 +1115,7 @@ namespace StgSharp.Graphics.OpenGL
int height
)
{
Context.glTextureStorage2D(texture.Value, levels, internalformat, width, height);
_context->glTextureStorage2D(texture.Value, levels, internalformat, width, height);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1126,8 +1128,8 @@ namespace StgSharp.Graphics.OpenGL
byte fixedsamplelocations
)
{
Context.glTextureStorage2DMultisample(texture.Value, samples, internalformat, width,
height, fixedsamplelocations);
_context->glTextureStorage2DMultisample(texture.Value, samples, internalformat, width,
height, fixedsamplelocations);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1140,7 +1142,8 @@ namespace StgSharp.Graphics.OpenGL
int depth
)
{
Context.glTextureStorage3D(texture.Value, levels, internalformat, width, height, depth);
_context->glTextureStorage3D(texture.Value, levels, internalformat, width, height,
depth);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1154,8 +1157,8 @@ namespace StgSharp.Graphics.OpenGL
byte fixedsamplelocations
)
{
Context.glTextureStorage3DMultisample(texture.Value, samples, internalformat, width,
height, depth, fixedsamplelocations);
_context->glTextureStorage3DMultisample(texture.Value, samples, internalformat, width,
height, depth, fixedsamplelocations);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1170,8 +1173,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* pixelsPtr = pixels) {
Context.glTextureSubImage1D(texture.Value, level, xoffset, width, format,
(uint)type, pixelsPtr);
_context->glTextureSubImage1D(texture.Value, level, xoffset, width, format,
(uint)type, pixelsPtr);
}
}
@@ -1189,8 +1192,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* pixelsPtr = pixels) {
Context.glTextureSubImage2D(texture.Value, level, xoffset, yoffset, width, height,
format, (uint)type, pixelsPtr);
_context->glTextureSubImage2D(texture.Value, level, xoffset, yoffset, width, height,
format, (uint)type, pixelsPtr);
}
}
@@ -1210,8 +1213,8 @@ namespace StgSharp.Graphics.OpenGL
)
{
fixed (IntPtr* pixelsPtr = pixels) {
Context.glTextureSubImage3D(texture.Value, level, xoffset, yoffset, zoffset, width,
height, depth, format, (uint)type, pixelsPtr);
_context->glTextureSubImage3D(texture.Value, level, xoffset, yoffset, zoffset,
width, height, depth, format, (uint)type, pixelsPtr);
}
}
@@ -1222,7 +1225,7 @@ namespace StgSharp.Graphics.OpenGL
GlHandle buffer
)
{
Context.glTransformFeedbackBufferBase(xfb, index, buffer.Value);
_context->glTransformFeedbackBufferBase(xfb, index, buffer.Value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1234,7 +1237,7 @@ namespace StgSharp.Graphics.OpenGL
nuint size
)
{
Context.glTransformFeedbackBufferRange(xfb, index, buffer.Value, offset, size);
_context->glTransformFeedbackBufferRange(xfb, index, buffer.Value, offset, size);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1242,7 +1245,7 @@ namespace StgSharp.Graphics.OpenGL
GlHandle buffer
)
{
return Context.glUnmapNamedBuffer(buffer.Value);
return _context->glUnmapNamedBuffer(buffer.Value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1252,7 +1255,7 @@ namespace StgSharp.Graphics.OpenGL
uint bindingindex
)
{
Context.glVertexArrayAttribBinding(vaobj, attribindex, bindingindex);
_context->glVertexArrayAttribBinding(vaobj, attribindex, bindingindex);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1265,8 +1268,8 @@ namespace StgSharp.Graphics.OpenGL
uint relativeoffset
)
{
Context.glVertexArrayAttribFormat(vaobj, attribindex, size, (uint)type, normalized,
relativeoffset);
_context->glVertexArrayAttribFormat(vaobj, attribindex, size, (uint)type, normalized,
relativeoffset);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1278,8 +1281,8 @@ namespace StgSharp.Graphics.OpenGL
uint relativeoffset
)
{
Context.glVertexArrayAttribIFormat(vaobj, attribindex, size, (uint)type,
relativeoffset);
_context->glVertexArrayAttribIFormat(vaobj, attribindex, size, (uint)type,
relativeoffset);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1291,8 +1294,8 @@ namespace StgSharp.Graphics.OpenGL
uint relativeoffset
)
{
Context.glVertexArrayAttribLFormat(vaobj, attribindex, size, (uint)type,
relativeoffset);
_context->glVertexArrayAttribLFormat(vaobj, attribindex, size, (uint)type,
relativeoffset);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1302,7 +1305,7 @@ namespace StgSharp.Graphics.OpenGL
uint divisor
)
{
Context.glVertexArrayBindingDivisor(vaobj, bindingindex, divisor);
_context->glVertexArrayBindingDivisor(vaobj, bindingindex, divisor);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1311,7 +1314,7 @@ namespace StgSharp.Graphics.OpenGL
GlHandle buffer
)
{
Context.glVertexArrayElementBuffer(vaobj, buffer.Value);
_context->glVertexArrayElementBuffer(vaobj, buffer.Value);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1323,7 +1326,7 @@ namespace StgSharp.Graphics.OpenGL
int stride
)
{
Context.glVertexArrayVertexBuffer(vaobj, bindingindex, buffer.Value, offset, stride);
_context->glVertexArrayVertexBuffer(vaobj, bindingindex, buffer.Value, offset, stride);
}
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@@ -1341,8 +1344,8 @@ namespace StgSharp.Graphics.OpenGL
fixed (nint* offsetsPtr = offsets)
{
fixed (int* stridesPtr = strides) {
Context.glVertexArrayVertexBuffers(vaobj, first, count, buffersPtr,
offsetsPtr, stridesPtr);
_context->glVertexArrayVertexBuffers(vaobj, first, count, buffersPtr,
offsetsPtr, stridesPtr);
}
}
}