Blender V5.3
blender::gpu::VKGraphicsInfo Struct Reference

#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

Detailed Description

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.

Member Function Documentation

◆ hash()

◆ operator==()

bool blender::gpu::VKGraphicsInfo::operator== ( const VKGraphicsInfo & other) const
inline

Definition at line 188 of file vk_pipeline_pool.hh.

References fragment_out, shaders, and vertex_in.

◆ pipeline_info_source()

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().

◆ vk_pipeline_layout_get()

VkPipelineLayout blender::gpu::VKGraphicsInfo::vk_pipeline_layout_get ( ) const
inline

Member Data Documentation

◆ fragment_out

◆ shaders

◆ vertex_in


The documentation for this struct was generated from the following files: