Gpu.Canvas_contextGPU canvas contexts.
module Alpha_mode : sig ... endTexture alpha modes.
The type for GPUCanvasContext objects.
val get : Brr_canvas.Canvas.t -> t optionget 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 ->
confconf constructs a context configuration object.
configure ctx conf configures context ctx with conf.
val unconfigure : t -> unitunconfigure ctx conf unconfigures context ctx.