natiny_material_destroy
void natiny_material_destroy(NatinyMaterial 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 |
NatinyMaterial |
Material handle |
Example
natiny_material_destroy(material);
Notes
- Destroy materials before calling natiny_shader_destroy on the shader they came from. Models that still refer to the destroyed material keep an invalid handle.
- Anything left alive is released by
natiny_backend_shutdown().