MCPcopy Create free account
hub / github.com/TheRealMJP/SHforHLSL / GetIntensityLabel

Function GetIntensityLabel

SHTest/SampleFramework12/v1.04/Settings.cpp:678–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

676// == ColorSetting ================================================================================
677
678static std::string GetIntensityLabel(const char* colorLabelName, ColorUnit units)
679{
680 std::string intensityLabel = colorLabelName;
681 intensityLabel += " Intensity";
682 if(units == ColorUnit::Luminance)
683 intensityLabel += " (cd/m^2)";
684 else if(units == ColorUnit::Illuminance)
685 intensityLabel += " (lux)";
686 else if(units == ColorUnit::LuminousPower)
687 intensityLabel += " (lm)";
688 else if(units == ColorUnit::EV100)
689 intensityLabel += " (EV100)";
690
691 return intensityLabel;
692}
693
694ColorSetting::ColorSetting()
695{

Callers 2

InitializeMethod · 0.85
SetUnitsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected