Skip to content

Binding texture buffers #91

Open
Open
@gilgamec

Description

@gilgamec

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions