|
Blender V5.3
|
#include <vk_pipeline_pool.hh>
Classes | |
| struct | VertexIn |
| struct | Shaders |
| struct | FragmentOut |
Public Member Functions | |
| bool | operator== (const VKGraphicsInfo &other) const |
| uint64_t | hash () const |
| VkPipelineLayout | vk_pipeline_layout_get () const |
Graphics pipelines | |
| std::string | pipeline_info_source () const |
Public Attributes | |
| VertexIn | vertex_in |
| Shaders | shaders |
| FragmentOut | fragment_out |
Struct containing key information to identify graphics pipelines.
The struct has already been separated into 4 stages to be compatible with VK_EXT_graphics_pipeline_library being vertex_in, pre_rasterization, fragment_shader and fragment_out.
Definition at line 63 of file vk_pipeline_pool.hh.
|
inline |
Definition at line 193 of file vk_pipeline_pool.hh.
References fragment_out, blender::gpu::VKGraphicsInfo::FragmentOut::hash(), hash(), blender::gpu::VKGraphicsInfo::Shaders::hash(), blender::gpu::VKGraphicsInfo::VertexIn::hash(), shaders, and vertex_in.
Referenced by hash().
|
inline |
Definition at line 188 of file vk_pipeline_pool.hh.
References fragment_out, shaders, and vertex_in.
| std::string blender::gpu::VKGraphicsInfo::pipeline_info_source | ( | ) | const |
Generate a code snippet for configuring ShaderCreateInfo pipeline.
Definition at line 246 of file vk_pipeline_pool.cc.
References BLI_assert_unreachable, blender::gpu::VKGraphicsInfo::FragmentOut::color_attachment_formats, blender::gpu::VKGraphicsInfo::FragmentOut::depth_attachment_format, fragment_out, blender::GPU_BLEND_ADDITIVE, blender::GPU_BLEND_ADDITIVE_PREMULT, blender::GPU_BLEND_ALPHA, blender::GPU_BLEND_ALPHA_PREMULT, blender::GPU_BLEND_ALPHA_UNDER_PREMUL, blender::GPU_BLEND_BACKGROUND, blender::GPU_BLEND_CUSTOM, blender::GPU_BLEND_INVERT, blender::GPU_BLEND_MAX, blender::GPU_BLEND_MIN, blender::GPU_BLEND_MULTIPLY, blender::GPU_BLEND_NONE, blender::GPU_BLEND_OIT, blender::GPU_BLEND_OVERLAY_MASK_FROM_ALPHA, blender::GPU_BLEND_SUBTRACT, blender::GPU_BLEND_TRANSPARENCY, blender::GPU_CULL_BACK, blender::GPU_CULL_FRONT, blender::GPU_CULL_NONE, blender::GPU_DEPTH_ALWAYS, blender::GPU_DEPTH_EQUAL, blender::GPU_DEPTH_GREATER, blender::GPU_DEPTH_GREATER_EQUAL, blender::GPU_DEPTH_LESS, blender::GPU_DEPTH_LESS_EQUAL, blender::GPU_DEPTH_NONE, blender::GPU_STENCIL_ALWAYS, blender::GPU_STENCIL_EQUAL, blender::GPU_STENCIL_NEQUAL, blender::GPU_STENCIL_NONE, blender::GPU_STENCIL_OP_COUNT_DEPTH_FAIL, blender::GPU_STENCIL_OP_COUNT_DEPTH_PASS, blender::GPU_STENCIL_OP_NONE, blender::GPU_STENCIL_OP_REPLACE, blender::GPU_VERTEX_FIRST, blender::GPU_VERTEX_LAST, blender::GPU_WRITE_ALPHA, blender::GPU_WRITE_BLUE, blender::GPU_WRITE_COLOR, blender::GPU_WRITE_DEPTH, blender::GPU_WRITE_GREEN, blender::GPU_WRITE_RED, blender::GPU_WRITE_STENCIL, blender::result, shaders, blender::gpu::VKGraphicsInfo::FragmentOut::state, blender::gpu::VKGraphicsInfo::Shaders::state, blender::gpu::VKGraphicsInfo::FragmentOut::stencil_attachment_format, blender::gpu::to_gpu_format_string(), vertex_in, blender::gpu::VKGraphicsInfo::Shaders::viewport_count, and blender::gpu::VKGraphicsInfo::VertexIn::vk_topology.
Referenced by blender::gpu::VKShader::ensure_and_get_graphics_pipeline().
|
inline |
Definition at line 202 of file vk_pipeline_pool.hh.
References shaders, and blender::gpu::VKGraphicsInfo::Shaders::vk_pipeline_layout.
| FragmentOut blender::gpu::VKGraphicsInfo::fragment_out |
Definition at line 186 of file vk_pipeline_pool.hh.
Referenced by blender::gpu::VKGraphicsPipelineCreateInfoBuilder::build_full(), blender::gpu::create_graphics_pipeline_libs(), blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), blender::gpu::VKShader::ensure_graphics_pipelines(), blender::gpu::VKPipelinePool::get_or_create_graphics_pipeline(), hash(), operator==(), and pipeline_info_source().
| Shaders blender::gpu::VKGraphicsInfo::shaders |
Definition at line 185 of file vk_pipeline_pool.hh.
Referenced by blender::gpu::VKGraphicsPipelineCreateInfoBuilder::build_full(), blender::gpu::create_graphics_pipeline_libs(), blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), blender::gpu::VKShader::ensure_graphics_pipelines(), blender::gpu::VKPipelinePool::get_or_create_graphics_pipeline(), hash(), operator==(), pipeline_info_source(), and vk_pipeline_layout_get().
| VertexIn blender::gpu::VKGraphicsInfo::vertex_in |
Definition at line 184 of file vk_pipeline_pool.hh.
Referenced by blender::gpu::VKGraphicsPipelineCreateInfoBuilder::build_full(), blender::gpu::create_graphics_pipeline_libs(), blender::gpu::VKShader::ensure_and_get_graphics_pipeline(), blender::gpu::VKShader::ensure_graphics_pipelines(), hash(), operator==(), and pipeline_info_source().