struct Gloop::Buffers
- Gloop::Buffers
- Struct
- Value
- Object
Overview
Reference to all buffer binding targets for a context.
Included Modules
Defined in:
gloop/buffers.crConstructors
-
.new(context : Gloop::Context)
Creates a resource associated with a context.
Instance Method Summary
-
#[](target : Buffer::Target) : Buffer::BindTarget
Retrieves the specified buffer binding target.
-
#array : Buffer::BindTarget
Retrieves a binding target for array buffers.
-
#atomic_counter : Buffer::BindTarget
Retrieves a binding target for atomic counter buffers.
-
#copy(from read_target : Buffer::Target, to write_target : Buffer::Target, read_offset : Size, write_offset : Size, size : Size) : Nil
Copies a subset of data from a buffer bound to one target into one bound by another target.
-
#copy_read : Buffer::BindTarget
Retrieves a binding target for read buffers.
-
#copy_write : Buffer::BindTarget
Retrieves a binding target for write buffers.
-
#dispatch_indirect : Buffer::BindTarget
Retrieves a binding target for indirect dispatch buffers.
-
#draw_indirect : Buffer::BindTarget
Retrieves a binding target for indirect draw buffers.
-
#element_array : Buffer::BindTarget
Retrieves a binding target for element array buffers.
-
#parameter : Buffer::BindTarget
Retrieves a binding target for parameter buffers.
-
#pixel_pack : Buffer::BindTarget
Retrieves a binding target for pixel pack buffers.
-
#pixel_unpack : Buffer::BindTarget
Retrieves a binding target for pixel unpack buffers.
-
#query : Buffer::BindTarget
Retrieves a binding target for query buffers.
-
#shader_storage : Buffer::BindTarget
Retrieves a binding target for shader storage buffers.
-
#texture : Buffer::BindTarget
Retrieves a binding target for texture buffers.
-
#transform_feedback : Buffer::BindTarget
Retrieves a binding target for transform feedback buffers.
-
#uniform : Buffer::BindTarget
Retrieves a binding target for uniform buffers.
Constructor Detail
Instance Method Detail
Retrieves the specified buffer binding target.
Copies a subset of data from a buffer bound to one target into one bound by another target.
The read_offset indicates the byte offset to start copying from read_target. The write_offset indicates the byte offset to start copying into write_target. The size is the number of bytes to copy.
- OpenGL function:
glCopyBufferSubData
- OpenGL version: 3.1
Retrieves a binding target for indirect dispatch buffers.
Retrieves a binding target for transform feedback buffers.