MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ build_depth_stencil_state()

vk::PipelineDepthStencilStateCreateInfo MayaFlux::Core::VKGraphicsPipeline::build_depth_stencil_state ( const GraphicsPipelineConfig config)
private

Build depth stencil state.

Definition at line 563 of file VKGraphicsPipeline.cpp.

565{
566 vk::PipelineDepthStencilStateCreateInfo depth_stencil;
567 depth_stencil.depthTestEnable = config.depth_test_enable;
568 depth_stencil.depthWriteEnable = config.depth_write_enable;
569 depth_stencil.depthCompareOp = config.depth_compare_op;
570 depth_stencil.depthBoundsTestEnable = config.depth_bounds_test_enable;
571 depth_stencil.minDepthBounds = config.min_depth_bounds;
572 depth_stencil.maxDepthBounds = config.max_depth_bounds;
573 depth_stencil.stencilTestEnable = config.stencil_test_enable;
574 depth_stencil.front = config.front_stencil;
575 depth_stencil.back = config.back_stencil;
576
577 return depth_stencil;
578}

References MayaFlux::Core::GraphicsPipelineConfig::back_stencil, MayaFlux::Core::GraphicsPipelineConfig::depth_bounds_test_enable, MayaFlux::Core::GraphicsPipelineConfig::depth_compare_op, MayaFlux::Core::GraphicsPipelineConfig::depth_test_enable, MayaFlux::Core::GraphicsPipelineConfig::depth_write_enable, MayaFlux::Core::GraphicsPipelineConfig::front_stencil, MayaFlux::Core::GraphicsPipelineConfig::max_depth_bounds, MayaFlux::Core::GraphicsPipelineConfig::min_depth_bounds, and MayaFlux::Core::GraphicsPipelineConfig::stencil_test_enable.

Referenced by create().

+ Here is the caller graph for this function: