Inertia's picture

[GL 4.1] Get Program Binary

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/get_program_binary.txt

---

Add to enum AssemblyProgramParameterArb

PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257

Add to enum ProgramParameter:

PROGRAM_BINARY_RETRIEVABLE_HINT 0x8257
PROGRAM_BINARY_LENGTH 0x8741

Add to enum GetPName:

NUM_PROGRAM_BINARY_FORMATS 0x87FE
PROGRAM_BINARY_FORMATS 0x87FF

Functions:

Also see #588: ARB_geometry_shader4

Old: void ProgramParameteri(uint program, enum pname, int value);
New: void ProgramParameteri(uint program, AssemblyProgramParameterArb pname, int value);

---

Same issue as with querying binary formats #2055: [GL 4.1] ES2 Compatibility, we cannot predict them at compile time and thus no enum.

void ProgramBinary(uint program, enum binaryFormat, const void *binary, sizei length);
void GetProgramBinary(uint program, sizei bufSize, sizei *length, enum *binaryFormat, void *binary);


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, r2964.

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