Gpu.Canvas_context
GPU canvas contexts.
module Alpha_mode : sig ... end
Texture alpha modes.
The type for GPUCanvasContext
objects.
val get : Brr_canvas.Canvas.t -> t option
get cnv
is gets a GPU canvas context from cnv
.
get_current_texture ctx
is the current texture of ctx
.
The type for context configuration objects.
val conf :
?usage:Texture.Usage.t ->
?view_formats:Texture.Format.t list ->
?color_space:Jstr.t ->
?alpha_mode:Alpha_mode.t ->
Device.t ->
Texture.Format.t ->
conf
conf
constructs a context configuration object.
configure ctx conf
configures context ctx
with conf
.
val unconfigure : t -> unit
unconfigure ctx conf
unconfigures context ctx
.