MCPcopy Create free account
hub / github.com/NVIDIA-RTX/Donut / VariableState

Method VariableState

include/donut/engine/ConsoleObjects.h:174–174  ·  view source on GitHub ↗

XXXX mk: C++ 20 has in-line initialization for bit-fields...

Source from the content-addressed store, hash-verified

172
173 // XXXX mk: C++ 20 has in-line initialization for bit-fields...
174 VariableState() { memset(this, 0, sizeof(VariableState)); }
175 VariableState(VariableType::Type type, SetBy setby) : read_only(false), cheat(false), type(type), setby(setby) {}
176 VariableState(bool ronly, bool cheat, VariableType::Type type, SetBy setby) : read_only(ronly), cheat(cheat), type(type), setby(setby) {}
177

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected