Cogl.Pipeline.prototype.set_layer_null_texture
function set_layer_null_texture(layer_index: Number(gint), texture_type: Cogl.TextureType): void {
// Gjs wrapper for cogl_pipeline_set_layer_null_texture()
}
Sets the texture for this layer to be the default texture for the given type. This is equivalent to calling Cogl.Pipeline.prototype.set_layer_texture with null for the texture argument except that you can also specify the type of default texture to use. The default texture is a 1x1 pixel white texture.
This function is mostly useful if you want to create a base pipeline that you want to create multiple copies from using Cogl.Pipeline.prototype.copy. In that case this function can be used to specify the texture type so that any pipeline copies can share the internal texture type state for efficiency.
Since 1.10
- layer_index
The layer number to modify
- texture_type
The type of the default texture to use