Function CE::Assets::Shaders::build_builtin_material
Defined in File shader-asset-builder.h
Function Documentation
-
std::shared_ptr<const CE::Rendering::Resources::Material> CE::Assets::Shaders::build_builtin_material(CE::Rendering::Resources::Provider &provider, CE::Rendering::Materials::Builtin2D kind, CE::Rendering::Pipelines::Blend blend = CE::Rendering::Pipelines::Blend::StraightAlpha)
Declaration:
[[nodiscard]]Request an embedded backend profile without application shader files or catalogue publication.
Request a complete backend-owned default material on the provider loading owner.
See also
- Parameters:
provider – Live provider with a shader-asset builder.
kind – Geometry/semantic profile; ordinary assets use Textured or TexturedStrip.
blend – Fixed alpha composition, StraightAlpha by default.
- Returns:
Retained immutable material; retain it in assets/frames for use. A missing builder, unsupported profile or empty backend result rejects explicitly; native and allocation errors propagate. No application shader files or catalogue ID are needed.