validate_texture
Validates that the object plugged into texture
is in fact a valid texture. Can be used to ensure that an object is a texture, or is a well-formed one. This returns valid
, a boolean indicating true for a valid texture, and error_description
is a string containing a description of the error if invalid.
A valid texture is a texture made of valid images, with the correct numbers of tile coordinates.
This is analogous to validate_mesh
, but for textures.