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

Method ClampNumValues

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

Source from the content-addressed store, hash-verified

380}
381
382void EnumSetting::ClampNumValues(uint32 num)
383{
384 Assert_(num <= numValues);
385 Assert_(num > 0);
386 numValuesClamp = num;
387 if(val >= numValuesClamp)
388 val = numValuesClamp - 1;
389}
390
391EnumSetting::operator uint32()
392{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected