| 40 | uint8_t constexpr kStencilFrontPassActionByte = 0; |
| 41 | |
| 42 | VkCompareOp 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 | |
| 58 | VkStencilOp DecodeStencilAction(uint8_t stencilActionByte) |
| 59 | { |