Inertia's picture

EXT_gpu_shader4

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

http://www.opengl.org/registry/specs/EXT/gpu_shader4.txt

Functions:

Old: void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.All type, Int32 stride, IntPtr pointer)
New: void VertexAttribIPointer(UInt32 index, Int32 size, OpenTK.Graphics.VertexAttribParameter type, Int32 stride, IntPtr pointer)

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

Old: void GetVertexAttribI(UInt32 index, OpenTK.Graphics.All pname, [Out] Int32[] @params)
New: void GetVertexAttribI(UInt32 index, OpenTK.Graphics.VertexAttribParameter pname, [Out] Int32[] @params)

Same problem as found before, the C API also provides void GetVertexAttribIuivEXT(uint index, enum pname, uint *params); but the generator does take both functions and creates one CLSCompliant version and one that is not.

This is also true for a larger number of VertexAttribI*** functions which all look like this:

public static
unsafe void VertexAttribI1v(UInt32 index, UInt32* v)
{
Delegates.glVertexAttribI1uivEXT((UInt32)index, (UInt32*)v);
}

public static
unsafe void VertexAttribI1v(Int32 index, Int32* v)
{
Delegates.glVertexAttribI1uivEXT((UInt32)index, (UInt32*)v);
}

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

Duplicate, one should be eliminated. I'll use VertexAttribParameter for enum additions. Affected functions are:
GetVertexAttrib()
GetVertexAttribI()
GetVertexAttribPointer()

public enum VertexAttribParameterArb
{
ArrayEnabled = ((int)0X8622),
ArraySize = ((int)0X8623),
ArrayStride = ((int)0X8624),
ArrayType = ((int)0X8625),
CurrentVertexAttrib = ((int)0X8626),
ArrayNormalized = ((int)0X886a),
}

public enum VertexAttribParameter
{
ArrayEnabled = ((int)0X8622),
ArraySize = ((int)0X8623),
ArrayStride = ((int)0X8624),
ArrayType = ((int)0X8625),
CurrentVertexAttrib = ((int)0X8626),
ArrayNormalized = ((int)0X886a),
}

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

Tokens:

Add to OpenTK.Graphics.VertexAttribParameter

VERTEX_ATTRIB_ARRAY_INTEGER_EXT 0x88FD

Add to OpenTK.Graphics.ActiveUniformType

SAMPLER_1D_ARRAY_EXT 0x8DC0
SAMPLER_2D_ARRAY_EXT 0x8DC1
SAMPLER_BUFFER_EXT 0x8DC2
SAMPLER_1D_ARRAY_SHADOW_EXT 0x8DC3
SAMPLER_2D_ARRAY_SHADOW_EXT 0x8DC4
SAMPLER_CUBE_SHADOW_EXT 0x8DC5
UNSIGNED_INT 0x1405
UNSIGNED_INT_VEC2_EXT 0x8DC6
UNSIGNED_INT_VEC3_EXT 0x8DC7
UNSIGNED_INT_VEC4_EXT 0x8DC8
INT_SAMPLER_1D_EXT 0x8DC9
INT_SAMPLER_2D_EXT 0x8DCA
INT_SAMPLER_3D_EXT 0x8DCB
INT_SAMPLER_CUBE_EXT 0x8DCC
INT_SAMPLER_2D_RECT_EXT 0x8DCD
INT_SAMPLER_1D_ARRAY_EXT 0x8DCE
INT_SAMPLER_2D_ARRAY_EXT 0x8DCF
INT_SAMPLER_BUFFER_EXT 0x8DD0
UNSIGNED_INT_SAMPLER_1D_EXT 0x8DD1
UNSIGNED_INT_SAMPLER_2D_EXT 0x8DD2
UNSIGNED_INT_SAMPLER_3D_EXT 0x8DD3
UNSIGNED_INT_SAMPLER_CUBE_EXT 0x8DD4
UNSIGNED_INT_SAMPLER_2D_RECT_EXT 0x8DD5
UNSIGNED_INT_SAMPLER_1D_ARRAY_EXT 0x8DD6
UNSIGNED_INT_SAMPLER_2D_ARRAY_EXT 0x8DD7
UNSIGNED_INT_SAMPLER_BUFFER_EXT 0x8DD8

Add to OpenTK.Graphics.GetPName

MIN_PROGRAM_TEXEL_OFFSET_EXT 0x8904
MAX_PROGRAM_TEXEL_OFFSET_EXT 0x8905


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

Committed to rev. 1675.

the Fiddler's picture

#2

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

Closing issues fixed in 0.9.7.