MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / resolve_variants

Method resolve_variants

libraries/lib-engine/src/material.cpp:24–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void polymer_default_material::resolve_variants()
25{
26 if (!compiled_shader)
27 {
28 std::shared_ptr<gl_shader_asset> asset = shader.get();
29 compiled_shader = asset->get_variant();
30 }
31}
32
33uint32_t polymer_default_material::id()
34{

Callers 1

visit_fieldsFunction · 0.80

Calls 4

get_variantMethod · 0.80
assignedMethod · 0.80
hashMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected