Inertia's picture

ARB_texture_float

Project:The Open Toolkit library
Version:0.9.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

Add to enum OpenTK.Graphics.GetTextureParameter

TEXTURE_RED_TYPE_ARB 0x8C10
TEXTURE_GREEN_TYPE_ARB 0x8C11
TEXTURE_BLUE_TYPE_ARB 0x8C12
TEXTURE_ALPHA_TYPE_ARB 0x8C13
TEXTURE_LUMINANCE_TYPE_ARB 0x8C14
TEXTURE_INTENSITY_TYPE_ARB 0x8C15
TEXTURE_DEPTH_TYPE_ARB 0x8C16

Add to enum OpenTK.Graphics.PixelInternalFormat:

RGBA32F_ARB 0x8814
RGB32F_ARB 0x8815
ALPHA32F_ARB 0x8816
INTENSITY32F_ARB 0x8817
LUMINANCE32F_ARB 0x8818
LUMINANCE_ALPHA32F_ARB 0x8819
RGBA16F_ARB 0x881A
RGB16F_ARB 0x881B
ALPHA16F_ARB 0x881C
INTENSITY16F_ARB 0x881D
LUMINANCE16F_ARB 0x881E
LUMINANCE_ALPHA16F_ARB 0x881F

Problem:

"Returned by the parameter of GetTexLevelParameter:

UNSIGNED_NORMALIZED_ARB 0x8C17
"
Not sure how to handle this, since there is no good way to deal with queried results. Probably best to ignore it, it's present in the All enum.


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

ARB_texture_float was changed when it was promoted in GL3.0. There are fewer internal pixel formats compared to ARB (see page 180 of the specs (pdf)):

RGBA32F, RGB32F, RGBA16F, RGB16F, R11F_G11F_B10F, RGB9_E5 and UNSIGNED_INT_10F_11F_11F_REV. The last one is a bit strange, as it's listed in the token list, but not mentioned in the pdf. I've added it for good measure.

Changes committed to the gl3 branch.

the Fiddler's picture

#2

I was mistaken in UNSIGNED_INT_10F_11F_11F_REV, which is only used in Draw-/ReadPixels. Fixed now.

the Fiddler's picture

#3

Status:fixed» closed

Closing bugs issues in 0.9.4.