set_layer_null_texture


Description:

public void set_layer_null_texture (int layer_index, TextureType texture_type)

Sets the texture for this layer to be the default texture for the given type.

This is equivalent to calling 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 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.

Parameters:

this

A Pipeline

layer_index

The layer number to modify

texture_type

The type of the default texture to use