Inertia's picture

ARB_copy_buffer

Project:The Open Toolkit library
Version:0.9.7
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

New OpenGL 3.1 functionality.

http://www.opengl.org/registry/specs/ARB/copy_buffer.txt

SVN: void CopyBufferSubData(OpenTK.Graphics.ArbCopyBuffer readTarget, OpenTK.Graphics.ArbCopyBuffer writeTarget, IntPtr readOffset, IntPtr writeOffset, IntPtr size)
New: void CopyBufferSubData(OpenTK.Graphics.BufferTarget readTarget, OpenTK.Graphics.BufferTarget writeTarget, IntPtr readOffset, IntPtr writeOffset, IntPtr size)

Add to enum OpenTK.Graphics.BufferTarget

COPY_READ_BUFFER 0x8F36
COPY_WRITE_BUFFER 0x8F37

Unfortunately the spec appears incomplete, but due to the other given information in the spec the above changes should be correct.

"spec" wrote:

with readTarget and writeTarget each set to one of the targets listed in (list all legal targets here).

This is not helping :P The changes should be verified once the spec is updated.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Status:open» fixed

This seems correct. Check pages 31 (table 2.5) and 39 of the spec:

Quote:

with readtarget and writetarget each set to one of the targets listed in table 2.5. While any of these targets may be used, the COPY READ BUFFER and COPY WRITE BUFFER targets are provided specifically for copies, so that they can be done without affecting other buffer binding targets that may be in use.

Committed to rev. 1769.

the Fiddler's picture

#2

Version:0.9.x-dev» 0.9.7
Status:fixed» closed

Closing issues fixed in 0.9.7.