Lines Matching refs:stencilInfo
228 VkPipelineDepthStencilStateCreateInfo* stencilInfo) { in setup_depth_stencil_state() argument
229 memset(stencilInfo, 0, sizeof(VkPipelineDepthStencilStateCreateInfo)); in setup_depth_stencil_state()
230 stencilInfo->sType = VK_STRUCTURE_TYPE_PIPELINE_DEPTH_STENCIL_STATE_CREATE_INFO; in setup_depth_stencil_state()
231 stencilInfo->pNext = nullptr; in setup_depth_stencil_state()
232 stencilInfo->flags = 0; in setup_depth_stencil_state()
234 stencilInfo->depthTestEnable = VK_FALSE; in setup_depth_stencil_state()
235 stencilInfo->depthWriteEnable = VK_FALSE; in setup_depth_stencil_state()
236 stencilInfo->depthCompareOp = VK_COMPARE_OP_ALWAYS; in setup_depth_stencil_state()
237 stencilInfo->depthBoundsTestEnable = VK_FALSE; in setup_depth_stencil_state()
238 stencilInfo->stencilTestEnable = !stencilSettings.isDisabled(); in setup_depth_stencil_state()
242 stencilInfo->front.failOp = stencil_op_to_vk_stencil_op(front.fFailOp); in setup_depth_stencil_state()
243 stencilInfo->front.passOp = stencil_op_to_vk_stencil_op(front.fPassOp); in setup_depth_stencil_state()
244 stencilInfo->front.depthFailOp = stencilInfo->front.failOp; in setup_depth_stencil_state()
245 stencilInfo->front.compareOp = stencil_func_to_vk_compare_op(front.fTest); in setup_depth_stencil_state()
246 stencilInfo->front.compareMask = front.fTestMask; in setup_depth_stencil_state()
247 stencilInfo->front.writeMask = front.fWriteMask; in setup_depth_stencil_state()
248 stencilInfo->front.reference = front.fRef; in setup_depth_stencil_state()
252 stencilInfo->back = stencilInfo->front; in setup_depth_stencil_state()
255 stencilInfo->back.failOp = stencil_op_to_vk_stencil_op(back.fFailOp); in setup_depth_stencil_state()
256 stencilInfo->back.passOp = stencil_op_to_vk_stencil_op(back.fPassOp); in setup_depth_stencil_state()
257 stencilInfo->back.depthFailOp = stencilInfo->front.failOp; in setup_depth_stencil_state()
258 stencilInfo->back.compareOp = stencil_func_to_vk_compare_op(back.fTest); in setup_depth_stencil_state()
259 stencilInfo->back.compareMask = back.fTestMask; in setup_depth_stencil_state()
260 stencilInfo->back.writeMask = back.fWriteMask; in setup_depth_stencil_state()
261 stencilInfo->back.reference = back.fRef; in setup_depth_stencil_state()
264 stencilInfo->minDepthBounds = 0.0f; in setup_depth_stencil_state()
265 stencilInfo->maxDepthBounds = 1.0f; in setup_depth_stencil_state()