mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-12 20:55:37 +00:00
Updated tokens for ARB_map_buffer_range (issue http://www.opentk.com/node/591).
This commit is contained in:
parent
3bb28d6bd9
commit
4abac1f814
|
@ -691,12 +691,12 @@ passthru: /* Reuse tokens from ARB_framebuffer_sRGB */
|
||||||
passthru: /* Reuse tokens from ARB_half_float_vertex */
|
passthru: /* Reuse tokens from ARB_half_float_vertex */
|
||||||
# use ARB_half_float_vertex HALF_FLOAT
|
# use ARB_half_float_vertex HALF_FLOAT
|
||||||
passthru: /* Reuse tokens from ARB_map_buffer_range */
|
passthru: /* Reuse tokens from ARB_map_buffer_range */
|
||||||
use ARB_map_buffer_range MAP_READ_BIT
|
# use ARB_map_buffer_range MAP_READ_BIT
|
||||||
use ARB_map_buffer_range MAP_WRITE_BIT
|
# use ARB_map_buffer_range MAP_WRITE_BIT
|
||||||
use ARB_map_buffer_range MAP_INVALIDATE_RANGE_BIT
|
# use ARB_map_buffer_range MAP_INVALIDATE_RANGE_BIT
|
||||||
use ARB_map_buffer_range MAP_INVALIDATE_BUFFER_BIT
|
# use ARB_map_buffer_range MAP_INVALIDATE_BUFFER_BIT
|
||||||
use ARB_map_buffer_range MAP_FLUSH_EXPLICIT_BIT
|
# use ARB_map_buffer_range MAP_FLUSH_EXPLICIT_BIT
|
||||||
use ARB_map_buffer_range MAP_UNSYNCHRONIZED_BIT
|
# use ARB_map_buffer_range MAP_UNSYNCHRONIZED_BIT
|
||||||
passthru: /* Reuse tokens from ARB_texture_compression_rgtc */
|
passthru: /* Reuse tokens from ARB_texture_compression_rgtc */
|
||||||
# use ARB_texture_compression_rgtc COMPRESSED_RED_RGTC1
|
# use ARB_texture_compression_rgtc COMPRESSED_RED_RGTC1
|
||||||
# use ARB_texture_compression_rgtc COMPRESSED_SIGNED_RED_RGTC1
|
# use ARB_texture_compression_rgtc COMPRESSED_SIGNED_RED_RGTC1
|
||||||
|
@ -6464,6 +6464,15 @@ RenderbufferStorage enum:
|
||||||
GetTextureParameter enum:
|
GetTextureParameter enum:
|
||||||
TEXTURE_SHARED_SIZE = 0x8C3F
|
TEXTURE_SHARED_SIZE = 0x8C3F
|
||||||
|
|
||||||
|
# Promoted from ARB_map_buffer_range
|
||||||
|
BufferAccessMask enum:
|
||||||
|
use ARB_map_buffer_range MAP_READ_BIT
|
||||||
|
use ARB_map_buffer_range MAP_WRITE_BIT
|
||||||
|
use ARB_map_buffer_range MAP_INVALIDATE_RANGE_BIT
|
||||||
|
use ARB_map_buffer_range MAP_INVALIDATE_BUFFER_BIT
|
||||||
|
use ARB_map_buffer_range MAP_FLUSH_EXPLICIT_BIT
|
||||||
|
use ARB_map_buffer_range MAP_UNSYNCHRONIZED_BIT
|
||||||
|
|
||||||
# Other OpenGL 3.0 changes:
|
# Other OpenGL 3.0 changes:
|
||||||
GetPName enum:
|
GetPName enum:
|
||||||
MAJOR_VERSION = 0x821B
|
MAJOR_VERSION = 0x821B
|
||||||
|
|
|
@ -11117,7 +11117,7 @@ VertexAttribDivisor(index, divisor)
|
||||||
|
|
||||||
MapBufferRange(target, offset, length, access)
|
MapBufferRange(target, offset, length, access)
|
||||||
return VoidPointer
|
return VoidPointer
|
||||||
param target BufferTargetARB in value
|
param target BufferTarget in value # BufferTargetARB in value
|
||||||
param offset BufferOffset in value
|
param offset BufferOffset in value
|
||||||
param length BufferSize in value
|
param length BufferSize in value
|
||||||
param access BufferAccessMask in value
|
param access BufferAccessMask in value
|
||||||
|
@ -11132,7 +11132,7 @@ MapBufferRange(target, offset, length, access)
|
||||||
# Promoted from APPLE_flush_buffer_range
|
# Promoted from APPLE_flush_buffer_range
|
||||||
FlushMappedBufferRange(target, offset, length)
|
FlushMappedBufferRange(target, offset, length)
|
||||||
return void
|
return void
|
||||||
param target BufferTargetARB in value
|
param target BufferTarget in value # BufferTargetARB in value
|
||||||
param offset BufferOffset in value
|
param offset BufferOffset in value
|
||||||
param length BufferSize in value
|
param length BufferSize in value
|
||||||
category ARB_map_buffer_range
|
category ARB_map_buffer_range
|
||||||
|
|
|
@ -53804,28 +53804,13 @@ namespace OpenTK.Graphics
|
||||||
[System.CLSCompliant(false)]
|
[System.CLSCompliant(false)]
|
||||||
[AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glMapBufferRange")]
|
[AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glMapBufferRange")]
|
||||||
public static
|
public static
|
||||||
unsafe IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access)
|
unsafe IntPtr MapBufferRange(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.BufferAccessMask access)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
using (new ErrorHelper(GraphicsContext.CurrentContext))
|
using (new ErrorHelper(GraphicsContext.CurrentContext))
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
return Delegates.glMapBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length, (UInt32)access);
|
return Delegates.glMapBufferRange((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)length, (OpenTK.Graphics.BufferAccessMask)access);
|
||||||
#if DEBUG
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
[System.CLSCompliant(false)]
|
|
||||||
[AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glMapBufferRange")]
|
|
||||||
public static
|
|
||||||
unsafe IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, Int32 access)
|
|
||||||
{
|
|
||||||
#if DEBUG
|
|
||||||
using (new ErrorHelper(GraphicsContext.CurrentContext))
|
|
||||||
{
|
|
||||||
#endif
|
|
||||||
return Delegates.glMapBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length, (UInt32)access);
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -53833,13 +53818,13 @@ namespace OpenTK.Graphics
|
||||||
|
|
||||||
[AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glFlushMappedBufferRange")]
|
[AutoGenerated(Category = "ArbMapBufferRange", Version = "3.0", EntryPoint = "glFlushMappedBufferRange")]
|
||||||
public static
|
public static
|
||||||
void FlushMappedBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length)
|
void FlushMappedBufferRange(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr length)
|
||||||
{
|
{
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
using (new ErrorHelper(GraphicsContext.CurrentContext))
|
using (new ErrorHelper(GraphicsContext.CurrentContext))
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
Delegates.glFlushMappedBufferRange((OpenTK.Graphics.ArbMapBufferRange)target, (IntPtr)offset, (IntPtr)length);
|
Delegates.glFlushMappedBufferRange((OpenTK.Graphics.BufferTarget)target, (IntPtr)offset, (IntPtr)length);
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -2023,10 +2023,10 @@ namespace OpenTK.Graphics
|
||||||
internal extern static void VertexAttribDivisor(UInt32 index, UInt32 divisor);
|
internal extern static void VertexAttribDivisor(UInt32 index, UInt32 divisor);
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferRange", ExactSpelling = true)]
|
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferRange", ExactSpelling = true)]
|
||||||
internal extern static unsafe IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access);
|
internal extern static unsafe IntPtr MapBufferRange(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.BufferAccessMask access);
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlushMappedBufferRange", ExactSpelling = true)]
|
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlushMappedBufferRange", ExactSpelling = true)]
|
||||||
internal extern static void FlushMappedBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length);
|
internal extern static void FlushMappedBufferRange(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr length);
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindVertexArray", ExactSpelling = true)]
|
[System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindVertexArray", ExactSpelling = true)]
|
||||||
internal extern static void BindVertexArray(UInt32 array);
|
internal extern static void BindVertexArray(UInt32 array);
|
||||||
|
|
|
@ -2654,10 +2654,10 @@ namespace OpenTK.Graphics
|
||||||
internal delegate void VertexAttribDivisor(UInt32 index, UInt32 divisor);
|
internal delegate void VertexAttribDivisor(UInt32 index, UInt32 divisor);
|
||||||
internal static VertexAttribDivisor glVertexAttribDivisor;
|
internal static VertexAttribDivisor glVertexAttribDivisor;
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
internal unsafe delegate IntPtr MapBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length, UInt32 access);
|
internal unsafe delegate IntPtr MapBufferRange(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr length, OpenTK.Graphics.BufferAccessMask access);
|
||||||
internal unsafe static MapBufferRange glMapBufferRange;
|
internal unsafe static MapBufferRange glMapBufferRange;
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
internal delegate void FlushMappedBufferRange(OpenTK.Graphics.ArbMapBufferRange target, IntPtr offset, IntPtr length);
|
internal delegate void FlushMappedBufferRange(OpenTK.Graphics.BufferTarget target, IntPtr offset, IntPtr length);
|
||||||
internal static FlushMappedBufferRange glFlushMappedBufferRange;
|
internal static FlushMappedBufferRange glFlushMappedBufferRange;
|
||||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||||
internal delegate void TexBufferARB(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ArbTextureBufferObject internalformat, UInt32 buffer);
|
internal delegate void TexBufferARB(OpenTK.Graphics.TextureTarget target, OpenTK.Graphics.ArbTextureBufferObject internalformat, UInt32 buffer);
|
||||||
|
|
|
@ -6359,12 +6359,6 @@ namespace OpenTK.Graphics
|
||||||
public enum Version30
|
public enum Version30
|
||||||
{
|
{
|
||||||
ContextFlagForwardCompatibleBit = ((int)0X0001),
|
ContextFlagForwardCompatibleBit = ((int)0X0001),
|
||||||
MapReadBit = ((int)0X0001),
|
|
||||||
MapWriteBit = ((int)0X0002),
|
|
||||||
MapInvalidateRangeBit = ((int)0X0004),
|
|
||||||
MapInvalidateBufferBit = ((int)0X0008),
|
|
||||||
MapFlushExplicitBit = ((int)0X0010),
|
|
||||||
MapUnsynchronizedBit = ((int)0X0020),
|
|
||||||
MaxClipDistances = ((int)0X0D32),
|
MaxClipDistances = ((int)0X0D32),
|
||||||
ClipDistance0 = ((int)0X3000),
|
ClipDistance0 = ((int)0X3000),
|
||||||
ClipDistance1 = ((int)0X3001),
|
ClipDistance1 = ((int)0X3001),
|
||||||
|
@ -9856,6 +9850,16 @@ namespace OpenTK.Graphics
|
||||||
UnsignedNormalized = ((int)0X8c17),
|
UnsignedNormalized = ((int)0X8c17),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public enum BufferAccessMask
|
||||||
|
{
|
||||||
|
MapReadBit = ((int)0X0001),
|
||||||
|
MapWriteBit = ((int)0X0002),
|
||||||
|
MapInvalidateRangeBit = ((int)0X0004),
|
||||||
|
MapInvalidateBufferBit = ((int)0X0008),
|
||||||
|
MapFlushExplicitBit = ((int)0X0010),
|
||||||
|
MapUnsynchronizedBit = ((int)0X0020),
|
||||||
|
}
|
||||||
|
|
||||||
public enum IndexedStringName
|
public enum IndexedStringName
|
||||||
{
|
{
|
||||||
Extensions = ((int)0X1f03),
|
Extensions = ((int)0X1f03),
|
||||||
|
|
Loading…
Reference in a new issue