Module OgamlGraphics.Texture.Texture2DArrayLayerMipmap

Represents a layer's mipmap of a 2D texture array

This module gives an abstract representation of a mipmap level of a particular layer of a texture array

type t
Type of a layer's mipmap
val size : t -> OgamlMath.Vector2i.t
Size of a mipmap
val write : t -> OgamlMath.IntRect.t -> Image.t -> unit
Writes to a layer's mipmap
val layer : t -> int
Returns the layer's index
val level : t -> int
Returns the mipmap's level
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