natiny.material.destroy
natiny.material.destroy(material)
Releases a material's pipelines, layouts and binding data. If the material is currently bound, its binding is cleared.
Parameters
| Name | Type | Description |
|---|---|---|
material |
number |
Material handle |
Example
natiny.material.destroy(material)
Notes
- Destroy materials before the shader they were built from. Models that still refer to the destroyed material keep an invalid handle.