|
NcEngine
|
Owning wrapper around a material in GPU memory. More...
#include <Material.h>
Public Member Functions | |
| MaterialInstance (const MaterialDesc &desc=MaterialDesc{}) | |
| MaterialInstance (MaterialInstance &&other) noexcept | |
| MaterialInstance & | operator= (MaterialInstance &&other) noexcept |
| MaterialInstance (const MaterialInstance &)=delete | |
| MaterialInstance & | operator= (const MaterialInstance &)=delete |
| auto | Clone () const -> MaterialInstance |
| Create a new MaterialInstance from this instance's properties. | |
Name Functions | |
| auto | GetName () const -> std::string_view |
| void | SetName (std::string_view name) |
MaterialPass Functions | |
| auto | GetPasses () const -> MaterialPassFlags |
MaterialProperties Functions | |
| class | graphics::MaterialRegistry |
| Get the instance's handle. | |
| auto | GetProperties () const -> const MaterialProperties & |
| Get the instance's handle. | |
| void | SetProperties (const MaterialProperties &properties) |
| Get the instance's handle. | |
| auto | GetHandle () const -> MaterialInstanceHandle |
| Get the instance's handle. | |
Owning wrapper around a material in GPU memory.