MCPcopy Create free account
hub / github.com/crownengine/crown / msaa_quality_samples

Function msaa_quality_samples

src/resource/render_config_resource.cpp:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace
22{
23 u32 msaa_quality_samples(StringId32 quality)
24 {
25 if (quality == STRING_ID_32("low", UINT32_C(0x8876b146)))
26 return 1;
27 else if (quality == STRING_ID_32("medium", UINT32_C(0x6e03a970)))
28 return 2;
29 else if (quality == STRING_ID_32("high", UINT32_C(0xfc9141f5)))
30 return 3;
31 else if (quality == STRING_ID_32("ultra", UINT32_C(0xf13839af)))
32 return 4;
33 else
34 logw(RENDER_CONFIG_RESOURCE, "Unknown msaa quality");
35
36 return 0;
37 }
38
39} // namespace
40

Callers 2

parseFunction · 0.85
compileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected