struct Gloop::Buffer::Map
- Gloop::Buffer::Map
- Struct
- Value
- Object
Overview
Reference to a buffer mapping.
Included Modules
- Gloop::Contextual
- Gloop::Parameters
Defined in:
gloop/buffer/map.crConstructors
-
.new(context : Context, name : Name)
Creates the mapping reference.
Instance Method Summary
-
#access : Gloop::Buffer::Access
Retrieves the access policy previously set when
Buffer#maporBindTarget#mapwas called. -
#access_mask : Gloop::Buffer::AccessMask
Retrieves the access mask previously used when
Buffer#maporBindTarget#mapwas called with a subset. -
#offset : Int64
When the buffer is mapped, gives the offset (in bytes) of the mapped region.
-
#size : Int64
When the buffer is mapped, gives the number of bytes mapped.
-
#to_slice : Bytes
Retrieves the bytes referring to the mapped data.
-
#to_unsafe
Retrieves a pointer to the start of the mapped data.
Constructor Detail
Instance Method Detail
Retrieves the access policy previously set when Buffer#map or BindTarget#map was called.
See: TargetMap#access
- OpenGL function:
glGetNamedBufferParameteriv - OpenGL enum:
GL_BUFFER_ACCESS - OpenGL version: 4.5
Retrieves the access mask previously used when Buffer#map or BindTarget#map was called with a subset.
See: TargetMap#access_flags
- OpenGL function:
glGetNamedBufferParameteriv - OpenGL enum:
GL_BUFFER_ACCESS_FLAGS - OpenGL version: 4.5
When the buffer is mapped, gives the offset (in bytes) of the mapped region.
See: TargetMap#offset
- OpenGL function:
glGetNamedBufferParameteri64v - OpenGL enum:
GL_BUFFER_MAP_OFFSET - OpenGL version: 4.5
When the buffer is mapped, gives the number of bytes mapped.
See: TargetMap#size
- OpenGL function:
glGetNamedBufferParameteri64v - OpenGL enum:
GL_BUFFER_MAP_LENGTH - OpenGL version: 4.5
Retrieves a pointer to the start of the mapped data.
See: TargetMap#to_unsafe
- OpenGL function:
glGetNamedBufferPointerv - OpenGL enum:
GL_BUFFER_MAP_POINTER - OpenGL version: 4.5