MCPcopy Create free account
hub / github.com/comaps/comaps / SetStateByte

Function SetStateByte

libs/drape/vulkan/vulkan_utils.hpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33template <typename T>
34void SetStateByte(T & state, uint8_t value, uint8_t byteNumber)
35{
36 auto const shift = byteNumber * 8;
37 auto const mask = ~(static_cast<T>(0xFF) << shift);
38 state = (state & mask) | (static_cast<T>(value) << shift);
39}
40
41template <typename T>
42uint8_t GetStateByte(T & state, uint8_t byteNumber)

Callers 3

SetMethod · 0.85
SetStencilFunctionMethod · 0.85
SetStencilActionsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected