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

◆ default_3d()

GraphicsPipelineConfig MayaFlux::Core::GraphicsPipelineConfig::default_3d ( )
static

Definition at line 10 of file VKGraphicsPipeline.cpp.

11{
12 GraphicsPipelineConfig config;
13 config.topology = vk::PrimitiveTopology::eTriangleList;
14 config.polygon_mode = vk::PolygonMode::eFill;
15 config.cull_mode = vk::CullModeFlagBits::eBack;
16 config.front_face = vk::FrontFace::eCounterClockwise;
17 config.depth_test_enable = true;
18 config.depth_write_enable = true;
19 config.depth_compare_op = vk::CompareOp::eLess;
20
21 ColorBlendAttachment attachment;
22 attachment.blend_enable = false;
23 config.color_blend_attachments.push_back(attachment);
24
25 return config;
26}

References MayaFlux::Core::ColorBlendAttachment::blend_enable, color_blend_attachments, cull_mode, depth_compare_op, depth_test_enable, depth_write_enable, front_face, polygon_mode, and topology.

Referenced by additive_blended(), and alpha_blended().

+ Here is the caller graph for this function: