DmitryM
02-22-2011, 09:31 AM
Hi,
I'd like to render into a buffer object, containing a sequence of integers, under GL-3 pure context. I've tried 2 different ways - both failed for unknown (for me) reason.
First approach - TBO.
I'm linking a texture of type R32i with this buffer as TBO. Then I create an FBO and attach the texture into it. It gives me FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT error. Digging up the spec, I found no reason why TBO can't be attached as a render target.
Second approach - PBO.
I'm creating a 2D texture (could be 1D, but doesn't matter here) in order to render into it and then read the values into my buffer bound as PBO. Surprisingly, TexImage2D fails with INVALID_OPERATION if the internal format is one of the R32i,R32ui or supposedly any other integer format. It's 2011, haven't ATI got integer texture support yet?
Platform:
WinXP, Catalyst 11.2, Radeon 2400HD
I'd like to render into a buffer object, containing a sequence of integers, under GL-3 pure context. I've tried 2 different ways - both failed for unknown (for me) reason.
First approach - TBO.
I'm linking a texture of type R32i with this buffer as TBO. Then I create an FBO and attach the texture into it. It gives me FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT error. Digging up the spec, I found no reason why TBO can't be attached as a render target.
Second approach - PBO.
I'm creating a 2D texture (could be 1D, but doesn't matter here) in order to render into it and then read the values into my buffer bound as PBO. Surprisingly, TexImage2D fails with INVALID_OPERATION if the internal format is one of the R32i,R32ui or supposedly any other integer format. It's 2011, haven't ATI got integer texture support yet?
Platform:
WinXP, Catalyst 11.2, Radeon 2400HD