Inertia's picture

[GL 4.1] ES2 Compatibility

Project:The Open Toolkit library
Version:1.1-2014-01-02
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

---

Add to enum GetPName

SHADER_COMPILER 0x8DFA
SHADER_BINARY_FORMATS 0x8DF8
NUM_SHADER_BINARY_FORMATS 0x8DF9
MAX_VERTEX_UNIFORM_VECTORS 0x8DFB
MAX_VARYING_VECTORS 0x8DFC
MAX_FRAGMENT_UNIFORM_VECTORS 0x8DFD
IMPLEMENTATION_COLOR_READ_TYPE 0x8B9A
IMPLEMENTATION_COLOR_READ_FORMAT 0x8B9B

Add to enum VertexAttribPointerType

FIXED 0x140C

Create new enum GetShaderPrecisionFormat and add

LOW_FLOAT 0x8DF0
MEDIUM_FLOAT 0x8DF1
HIGH_FLOAT 0x8DF2
LOW_INT 0x8DF3
MEDIUM_INT 0x8DF4
HIGH_INT 0x8DF5

Functions:

Old: void GetShaderPrecisionFormat(enum shadertype, enum precisiontype, int *range, int *precision);
New: void GetShaderPrecisionFormat(ShaderType shadertype, GetShaderPrecisionFormat precisiontype, int *range, int *precision);

---

The number and actual formats supported here are queried using GL.GetInteger(NUM_SHADER_BINARY_FORMATS ) and GL.GetInteger(SHADER_BINARY_FORMATS) and cannot be predicted at compile time. No enum for this.

void ShaderBinary(sizei count, const uint *shaders, enum binaryformat, const void *binary, sizei length);


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

Fixed in gl4 branch, r2963.

the Fiddler's picture

#2

Version:1.x-dev» 1.1-2014-01-02
Status:fixed» closed

Closing bugs fixed in OpenTK 1.1.

If this is still an issue please file a new bug report at https://github.com/opentk/opentk/issues