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

Function DecodeTestFunction

libs/drape/vulkan/vulkan_pipeline.cpp:42–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40uint8_t constexpr kStencilFrontPassActionByte = 0;
41
42VkCompareOp DecodeTestFunction(uint8_t testFunctionByte)
43{
44 switch (static_cast<TestFunction>(testFunctionByte))
45 {
46 case TestFunction::Never: return VK_COMPARE_OP_NEVER;
47 case TestFunction::Less: return VK_COMPARE_OP_LESS;
48 case TestFunction::Equal: return VK_COMPARE_OP_EQUAL;
49 case TestFunction::LessOrEqual: return VK_COMPARE_OP_LESS_OR_EQUAL;
50 case TestFunction::Greater: return VK_COMPARE_OP_GREATER;
51 case TestFunction::NotEqual: return VK_COMPARE_OP_NOT_EQUAL;
52 case TestFunction::GreaterOrEqual: return VK_COMPARE_OP_GREATER_OR_EQUAL;
53 case TestFunction::Always: return VK_COMPARE_OP_ALWAYS;
54 }
55 UNREACHABLE();
56}
57
58VkStencilOp DecodeStencilAction(uint8_t stencilActionByte)
59{

Callers 1

GetPipelineMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected