Inertia's picture

EXT_transform_feedback

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

New Procedures and Functions

C: void BindBufferRangeEXT(enum target, uint index, uint buffer, intptr offset, sizeiptr size);
Old: void BindBufferRange(OpenTK.Graphics.All target, UInt32 index, UInt32 buffer, IntPtr offset, IntPtr size)
New: void BindBufferRange(enum X target, UInt32 index, UInt32 buffer, IntPtr offset, IntPtr size)

C: void BindBufferOffsetEXT(enum target, uint index, uint buffer, intptr offset);
Old: void BindBufferOffset(OpenTK.Graphics.All target, UInt32 index, UInt32 buffer, IntPtr offset)
New: void BindBufferOffset(enum X target, UInt32 index, UInt32 buffer, IntPtr offset)

C: void BindBufferBaseEXT(enum target, uint index, uint buffer);
Old: void BindBufferBase(OpenTK.Graphics.All target, UInt32 index, UInt32 buffer)
New: void BindBufferBase(enum X target target, UInt32 index, UInt32 buffer)

C: void BeginTransformFeedbackEXT(enum primitiveMode);
Old: void BeginTransformFeedback(OpenTK.Graphics.All primitiveMode)
New: void BeginTransformFeedback(enum Y primitiveMode)

C: void TransformFeedbackVaryingsEXT(uint program, sizei count, const char **varyings, enum bufferMode);
Old: void TransformFeedbackVarying(UInt32 program, Int32 count, Int32[] locations, OpenTK.Graphics.All bufferMode)
New: void TransformFeedbackVarying(UInt32 program, Int32 count, Int32[] locations, enum Z bufferMode)

C: void GetTransformFeedbackVaryingEXT(uint program, uint index, sizei bufSize, sizei *length, sizei *size, enum *type, char *name);
SVN: Delegates.glGetTransformFeedbackVaryingEXT((UInt32)program, (UInt32)index, (Int32*)location);

???

-----------------------

Tokens:

Add to OpenTK.Graphics.BufferTarget
Also create new enum X and add this token to it

TRANSFORM_FEEDBACK_BUFFER_EXT 0x8C8E

Create new enum Y and add

GL_TRIANGLES
GL_LINES
GL_POINTS

Create new enum Z and add

INTERLEAVED_ATTRIBS_EXT 0x8C8C
SEPARATE_ATTRIBS_EXT 0x8C8D

Add to OpenTK.Graphics.QueryTarget

PRIMITIVES_GENERATED_EXT 0x8C87
TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN_EXT 0x8C88

------

Note: Fix BeginQuery, EndQuery and GetQuery(Object) to use correct enums instead of All.
Correct:
void BeginQuery(OpenTK.Graphics.QueryTarget target, UInt32 id)
void EndQuery(OpenTK.Graphics.QueryTarget target)
void GetQuery(OpenTK.Graphics.QueryTarget target, OpenTK.Graphics.GetQueryParam pname, [Out] Int32[] @params)
void GetQueryObject(UInt32 id, OpenTK.Graphics.GetQueryObjectParam pname, [Out] Int32[] @params)

---------

Add to enums:
OpenTK.Graphics.EnableCap
OpenTK.Graphics.GetPName

RASTERIZER_DISCARD_EXT 0x8C89

Add to OpenTK.Graphics.GetPName

MAX_TRANSFORM_FEEDBACK_INTERLEAVED_COMPONENTS_EXT 0x8C8A
MAX_TRANSFORM_FEEDBACK_SEPARATE_ATTRIBS_EXT 0x8C8B
MAX_TRANSFORM_FEEDBACK_SEPARATE_COMPONENTS_EXT 0x8C80

Add to OpenTK.Graphics.AssemblyProgramParameterArb

TRANSFORM_FEEDBACK_VARYINGS_EXT 0x8C83
TRANSFORM_FEEDBACK_BUFFER_MODE_EXT 0x8C7F
TRANSFORM_FEEDBACK_VARYING_MAX_LENGTH_EXT 0x8C76


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

BindBufferOffsetEXT wasn't made core. Committed to rev. 1684 with slight modifications.

the Fiddler's picture

#2

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

Closing issues fixed in 0.9.7.

kvark's picture

#3

[Moderator edit: moved to programming questions forum]