package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gsk/Ocgtk_gsk/Gsk/Wrappers/Shader_args_builder/index.html
Module Wrappers.Shader_args_builder
type t = [ `shader_args_builder ] Gobject.objAn object to build the uniforms data for a `GskGLShader`.
val new_ : [ `gl_shader | `object_ ] Gobject.obj -> Glib_bytes.t option -> tCreate a new ShaderArgsBuilder
val to_args : t -> Glib_bytes.tCreates a new `GBytes` args from the current state of the given @builder.
Any uniforms of the shader that have not been explicitly set on the @builder are zero-initialized.
The given `GskShaderArgsBuilder` is reset once this function returns; you cannot call this function multiple times on the same @builder instance.
This function is intended primarily for bindings. C code should use method@Gsk.ShaderArgsBuilder.free_to_args.
val set_vec4 : t -> int -> Ocgtk_graphene.Graphene.Wrappers.Vec4.t -> unitSets the value of the uniform @idx.
The uniform must be of vec4 type.
val set_vec3 : t -> int -> Ocgtk_graphene.Graphene.Wrappers.Vec3.t -> unitSets the value of the uniform @idx.
The uniform must be of vec3 type.
val set_vec2 : t -> int -> Ocgtk_graphene.Graphene.Wrappers.Vec2.t -> unitSets the value of the uniform @idx.
The uniform must be of vec2 type.
Sets the value of the uniform @idx.
The uniform must be of uint type.
Sets the value of the uniform @idx.
The uniform must be of int type.
val set_float : t -> int -> float -> unitSets the value of the uniform @idx.
The uniform must be of float type.
val set_bool : t -> int -> bool -> unitSets the value of the uniform @idx.
The uniform must be of bool type.
val get_type : unit -> Gobject.Type.t