Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Binding texture buffers #91

Open
gilgamec opened this issue Apr 13, 2022 · 0 comments
Open

Binding texture buffers #91

gilgamec opened this issue Apr 13, 2022 · 0 comments

Comments

@gilgamec
Copy link

gilgamec commented Apr 13, 2022

The current bindings have 'nice' ways to create and bind texture buffers, but no way that I can see to actually link one with a buffer object, i.e. glTexBuffer or glTexBufferRange. As nearly as I can tell, this should be straightforward, perhaps as simple as

texBuffer :: SettableStateVar (PixelInternalFormat, BufferObject)
texBuffer = makeSettableStateVar $ \(fmt,tbo) ->
  glTexBuffer (marshalBufferTarget TextureBuffer)
              (marshalPixelInternalFormat fmt)
              (bufferID tbo)

modulo available exports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant