struct Gloop::Buffers

Overview

Reference to all buffer binding targets for a context.

Included Modules

Defined in:

gloop/buffers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(context : Gloop::Context) #

Creates a resource associated with a context.


[View source]

Instance Method Detail

def [](target : Buffer::Target) : Buffer::BindTarget #

Retrieves the specified buffer binding target.


[View source]
def array : Buffer::BindTarget #

Retrieves a binding target for array buffers.


[View source]
def atomic_counter : Buffer::BindTarget #

Retrieves a binding target for atomic counter buffers.


[View source]
def 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.

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

[View source]
def copy_read : Buffer::BindTarget #

Retrieves a binding target for read buffers.


[View source]
def copy_write : Buffer::BindTarget #

Retrieves a binding target for write buffers.


[View source]
def dispatch_indirect : Buffer::BindTarget #

Retrieves a binding target for indirect dispatch buffers.


[View source]
def draw_indirect : Buffer::BindTarget #

Retrieves a binding target for indirect draw buffers.


[View source]
def element_array : Buffer::BindTarget #

Retrieves a binding target for element array buffers.


[View source]
def parameter : Buffer::BindTarget #

Retrieves a binding target for parameter buffers.


[View source]
def pixel_pack : Buffer::BindTarget #

Retrieves a binding target for pixel pack buffers.


[View source]
def pixel_unpack : Buffer::BindTarget #

Retrieves a binding target for pixel unpack buffers.


[View source]
def query : Buffer::BindTarget #

Retrieves a binding target for query buffers.


[View source]
def shader_storage : Buffer::BindTarget #

Retrieves a binding target for shader storage buffers.


[View source]
def texture : Buffer::BindTarget #

Retrieves a binding target for texture buffers.


[View source]
def transform_feedback : Buffer::BindTarget #

Retrieves a binding target for transform feedback buffers.


[View source]
def uniform : Buffer::BindTarget #

Retrieves a binding target for uniform buffers.


[View source]