Blender V5.3
blender::gpu::shader::PipelineState Struct Reference

Description of a graphical pipeline to pre-compile during shader creation. More...

#include <gpu_shader_create_info_pipeline.hh>

Public Types

using Self = PipelineState

Public Member Functions

Self & state (GPUWriteMask write_mask, GPUBlend blend, GPUFaceCullTest culling_test, GPUDepthTest depth_test, GPUStencilTest stencil_test, GPUStencilOp stencil_op, GPUProvokingVertex provoking_vert)
Self & primitive (GPUPrimType primitive_type)
Self & viewports (uint32_t viewport_count)
Self & add_specialization_constant (SpecializationConstant::Value specialization_constant)
Self & depth_format (TextureTargetFormat depth_format)
Self & stencil_format (TextureTargetFormat stencil_format)
Self & color_format (TextureTargetFormat color_format)

Public Attributes

Vector< SpecializationConstant::Value > specialization_constants_
GPUPrimType primitive_
GPUState state_ = {{GPU_WRITE_COLOR}}
uint32_t viewport_count_
TextureTargetFormat depth_format_
TextureTargetFormat stencil_format_
Vector< TextureTargetFormat > color_formats_

Detailed Description

Description of a graphical pipeline to pre-compile during shader creation.

Definition at line 21 of file gpu_shader_create_info_pipeline.hh.

Member Typedef Documentation

◆ Self

Member Function Documentation

◆ add_specialization_constant()

Self & blender::gpu::shader::PipelineState::add_specialization_constant ( SpecializationConstant::Value specialization_constant)
inline

◆ color_format()

◆ depth_format()

Self & blender::gpu::shader::PipelineState::depth_format ( TextureTargetFormat depth_format)
inline

◆ primitive()

Self & blender::gpu::shader::PipelineState::primitive ( GPUPrimType primitive_type)
inline

◆ state()

Self & blender::gpu::shader::PipelineState::state ( GPUWriteMask write_mask,
GPUBlend blend,
GPUFaceCullTest culling_test,
GPUDepthTest depth_test,
GPUStencilTest stencil_test,
GPUStencilOp stencil_op,
GPUProvokingVertex provoking_vert )
inline

◆ stencil_format()

Self & blender::gpu::shader::PipelineState::stencil_format ( TextureTargetFormat stencil_format)
inline

◆ viewports()

Self & blender::gpu::shader::PipelineState::viewports ( uint32_t viewport_count)
inline

Member Data Documentation

◆ color_formats_

Vector<TextureTargetFormat> blender::gpu::shader::PipelineState::color_formats_

Definition at line 31 of file gpu_shader_create_info_pipeline.hh.

Referenced by color_format().

◆ depth_format_

TextureTargetFormat blender::gpu::shader::PipelineState::depth_format_

Definition at line 29 of file gpu_shader_create_info_pipeline.hh.

Referenced by depth_format().

◆ primitive_

GPUPrimType blender::gpu::shader::PipelineState::primitive_

Definition at line 24 of file gpu_shader_create_info_pipeline.hh.

Referenced by primitive().

◆ specialization_constants_

Vector<SpecializationConstant::Value> blender::gpu::shader::PipelineState::specialization_constants_

Definition at line 22 of file gpu_shader_create_info_pipeline.hh.

Referenced by add_specialization_constant().

◆ state_

GPUState blender::gpu::shader::PipelineState::state_ = {{GPU_WRITE_COLOR}}

Definition at line 26 of file gpu_shader_create_info_pipeline.hh.

Referenced by state().

◆ stencil_format_

TextureTargetFormat blender::gpu::shader::PipelineState::stencil_format_

Definition at line 30 of file gpu_shader_create_info_pipeline.hh.

Referenced by stencil_format().

◆ viewport_count_

uint32_t blender::gpu::shader::PipelineState::viewport_count_

Definition at line 27 of file gpu_shader_create_info_pipeline.hh.

Referenced by viewports().


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