10 std::optional<DepthAttachmentDescriptor> depth,
11 std::optional<StencilAttachmentDescriptor> front,
12 std::optional<StencilAttachmentDescriptor> back) {
13 vk::PipelineDepthStencilStateCreateInfo
info;
15 if (depth.has_value()) {
16 info.depthTestEnable =
true;
17 info.depthWriteEnable = depth->depth_write_enabled;
19 info.minDepthBounds = 0.0f;
20 info.maxDepthBounds = 1.0f;
23 if (front.has_value()) {
24 info.stencilTestEnable =
true;
28 if (back.has_value()) {
29 info.stencilTestEnable =
true;
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
constexpr vk::CompareOp ToVKCompareOp(CompareFunction op)
vk::PipelineDepthStencilStateCreateInfo ToVKPipelineDepthStencilStateCreateInfo(std::optional< DepthAttachmentDescriptor > depth, std::optional< StencilAttachmentDescriptor > front, std::optional< StencilAttachmentDescriptor > back)
constexpr vk::StencilOpState ToVKStencilOpState(const StencilAttachmentDescriptor &desc)