1 #include "stenciltest.h"
2 #include "stenciltest_backend.h"
10 unsigned get_vulkan_stencil_op(StencilOp op)
14 case KEEP: return VK_STENCIL_OP_KEEP;
15 case SET_ZERO: return VK_STENCIL_OP_ZERO;
16 case REPLACE: return VK_STENCIL_OP_REPLACE;
17 case INCR_CLAMP: return VK_STENCIL_OP_INCREMENT_AND_CLAMP;
18 case DECR_CLAMP: return VK_STENCIL_OP_DECREMENT_AND_CLAMP;
19 case INVERT: return VK_STENCIL_OP_INVERT;
20 case INCR_WRAP: return VK_STENCIL_OP_INCREMENT_AND_WRAP;
21 case DECR_WRAP: return VK_STENCIL_OP_DECREMENT_AND_WRAP;
22 default: throw invalid_argument("get_vulkan_stencil_op");