MayaFlux 0.2.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 531 of file VKGraphicsPipeline.cpp.

533{
534 vk::PipelineDepthStencilStateCreateInfo depth_stencil;
535 depth_stencil.depthTestEnable = config.depth_test_enable;
536 depth_stencil.depthWriteEnable = config.depth_write_enable;
537 depth_stencil.depthCompareOp = config.depth_compare_op;
538 depth_stencil.depthBoundsTestEnable = config.depth_bounds_test_enable;
539 depth_stencil.minDepthBounds = config.min_depth_bounds;
540 depth_stencil.maxDepthBounds = config.max_depth_bounds;
541 depth_stencil.stencilTestEnable = config.stencil_test_enable;
542 depth_stencil.front = config.front_stencil;
543 depth_stencil.back = config.back_stencil;
544
545 return depth_stencil;
546}

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: