MayaFlux 0.1.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 516 of file VKGraphicsPipeline.cpp.

518{
519 vk::PipelineDepthStencilStateCreateInfo depth_stencil;
520 depth_stencil.depthTestEnable = config.depth_test_enable;
521 depth_stencil.depthWriteEnable = config.depth_write_enable;
522 depth_stencil.depthCompareOp = config.depth_compare_op;
523 depth_stencil.depthBoundsTestEnable = config.depth_bounds_test_enable;
524 depth_stencil.minDepthBounds = config.min_depth_bounds;
525 depth_stencil.maxDepthBounds = config.max_depth_bounds;
526 depth_stencil.stencilTestEnable = config.stencil_test_enable;
527 depth_stencil.front = config.front_stencil;
528 depth_stencil.back = config.back_stencil;
529
530 return depth_stencil;
531}

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: