Module OgamlGraphics.Texture.Texture2DArrayLayer

Represents a layer of a 2D texture array

This module gives an abstract representation of a particular layer of a 2D texture array

type t
Type of a 2D texture array's layer
val size : t -> OgamlMath.Vector2i.t
Size of a layer
val layer : t -> int
Returns the layer's index
val mipmap_levels : t -> int
Returns the number of mipmap levels of a layer
val mipmap : t -> int -> Texture2DArrayLayerMipmap.t
Returns a particular mipmap level of a layer Raises Invalid_argument if the mipmap level does not exist.
val bind : t -> int -> unit
System only : binds the original texture array for drawing
val to_color_attachment : t -> Attachment.ColorAttachment.t
Texture2DArrayLayerMipmap implements the interface ColorAttachable and can be attached to an FBO. Binds the mipmap level 0.