Blender V5.0
blender::gpu::MTLContextGlobalShaderPipelineState Struct Reference

#include <mtl_context.hh>

Public Attributes

bool initialised = false
bool dirty = true
MTLPipelineStateDirtyFlag dirty_flags = MTL_PIPELINE_STATE_NULL_FLAG
MTLShadernull_shader = nullptr
MTLShaderactive_shader = nullptr
MTLUniformBufferBinding ubo_bindings [MTL_MAX_BUFFER_BINDINGS]
MTLStorageBufferBinding ssbo_bindings [MTL_MAX_BUFFER_BINDINGS]
MTLTextureBinding texture_bindings [MTL_MAX_TEXTURE_SLOTS]
MTLSamplerBinding sampler_bindings [MTL_MAX_SAMPLER_SLOTS]
MTLTextureBinding image_bindings [MTL_MAX_TEXTURE_SLOTS]
MTLColorWriteMask color_write_mask
bool blending_enabled
MTLBlendOperation alpha_blend_op
MTLBlendOperation rgb_blend_op
MTLBlendFactor dest_alpha_blend_factor
MTLBlendFactor dest_rgb_blend_factor
MTLBlendFactor src_alpha_blend_factor
MTLBlendFactor src_rgb_blend_factor
bool culling_enabled
GPUFaceCullTest cull_mode
GPUFrontFace front_face
MTLContextDepthStencilState depth_stencil_state
int num_active_viewports = 1
int viewport_offset_x [GPU_MAX_VIEWPORTS]
int viewport_offset_y [GPU_MAX_VIEWPORTS]
int viewport_width [GPU_MAX_VIEWPORTS]
int viewport_height [GPU_MAX_VIEWPORTS]
bool scissor_enabled
int scissor_x
int scissor_y
int scissor_width
int scissor_height
uint unpack_row_length
float point_size = 1.0f
float line_width = 1.0f
bool clip_distance_enabled [6] = {false}

Detailed Description

Definition at line 454 of file mtl_context.hh.

Member Data Documentation

◆ active_shader

MTLShader* blender::gpu::MTLContextGlobalShaderPipelineState::active_shader = nullptr

◆ alpha_blend_op

MTLBlendOperation blender::gpu::MTLContextGlobalShaderPipelineState::alpha_blend_op

◆ blending_enabled

bool blender::gpu::MTLContextGlobalShaderPipelineState::blending_enabled

◆ clip_distance_enabled

bool blender::gpu::MTLContextGlobalShaderPipelineState::clip_distance_enabled[6] = {false}

◆ color_write_mask

MTLColorWriteMask blender::gpu::MTLContextGlobalShaderPipelineState::color_write_mask

◆ cull_mode

GPUFaceCullTest blender::gpu::MTLContextGlobalShaderPipelineState::cull_mode

Definition at line 503 of file mtl_context.hh.

◆ culling_enabled

bool blender::gpu::MTLContextGlobalShaderPipelineState::culling_enabled

Definition at line 502 of file mtl_context.hh.

◆ depth_stencil_state

MTLContextDepthStencilState blender::gpu::MTLContextGlobalShaderPipelineState::depth_stencil_state

Definition at line 507 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate().

◆ dest_alpha_blend_factor

MTLBlendFactor blender::gpu::MTLContextGlobalShaderPipelineState::dest_alpha_blend_factor

◆ dest_rgb_blend_factor

MTLBlendFactor blender::gpu::MTLContextGlobalShaderPipelineState::dest_rgb_blend_factor

◆ dirty

bool blender::gpu::MTLContextGlobalShaderPipelineState::dirty = true

Definition at line 463 of file mtl_context.hh.

◆ dirty_flags

MTLPipelineStateDirtyFlag blender::gpu::MTLContextGlobalShaderPipelineState::dirty_flags = MTL_PIPELINE_STATE_NULL_FLAG

Definition at line 464 of file mtl_context.hh.

Referenced by blender::gpu::mtl_stencil_set_op_separate().

◆ front_face

GPUFrontFace blender::gpu::MTLContextGlobalShaderPipelineState::front_face

Definition at line 504 of file mtl_context.hh.

◆ image_bindings

MTLTextureBinding blender::gpu::MTLContextGlobalShaderPipelineState::image_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 483 of file mtl_context.hh.

◆ initialised

bool blender::gpu::MTLContextGlobalShaderPipelineState::initialised = false

Definition at line 455 of file mtl_context.hh.

◆ line_width

float blender::gpu::MTLContextGlobalShaderPipelineState::line_width = 1.0f

Definition at line 526 of file mtl_context.hh.

◆ null_shader

MTLShader* blender::gpu::MTLContextGlobalShaderPipelineState::null_shader = nullptr

Definition at line 467 of file mtl_context.hh.

◆ num_active_viewports

int blender::gpu::MTLContextGlobalShaderPipelineState::num_active_viewports = 1

Definition at line 510 of file mtl_context.hh.

◆ point_size

float blender::gpu::MTLContextGlobalShaderPipelineState::point_size = 1.0f

◆ rgb_blend_op

MTLBlendOperation blender::gpu::MTLContextGlobalShaderPipelineState::rgb_blend_op

◆ sampler_bindings

MTLSamplerBinding blender::gpu::MTLContextGlobalShaderPipelineState::sampler_bindings[MTL_MAX_SAMPLER_SLOTS]

Definition at line 480 of file mtl_context.hh.

◆ scissor_enabled

bool blender::gpu::MTLContextGlobalShaderPipelineState::scissor_enabled

Definition at line 515 of file mtl_context.hh.

◆ scissor_height

int blender::gpu::MTLContextGlobalShaderPipelineState::scissor_height

Definition at line 519 of file mtl_context.hh.

◆ scissor_width

int blender::gpu::MTLContextGlobalShaderPipelineState::scissor_width

Definition at line 518 of file mtl_context.hh.

◆ scissor_x

int blender::gpu::MTLContextGlobalShaderPipelineState::scissor_x

Definition at line 516 of file mtl_context.hh.

◆ scissor_y

int blender::gpu::MTLContextGlobalShaderPipelineState::scissor_y

Definition at line 517 of file mtl_context.hh.

◆ src_alpha_blend_factor

MTLBlendFactor blender::gpu::MTLContextGlobalShaderPipelineState::src_alpha_blend_factor

◆ src_rgb_blend_factor

MTLBlendFactor blender::gpu::MTLContextGlobalShaderPipelineState::src_rgb_blend_factor

◆ ssbo_bindings

MTLStorageBufferBinding blender::gpu::MTLContextGlobalShaderPipelineState::ssbo_bindings[MTL_MAX_BUFFER_BINDINGS]

◆ texture_bindings

MTLTextureBinding blender::gpu::MTLContextGlobalShaderPipelineState::texture_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 479 of file mtl_context.hh.

◆ ubo_bindings

MTLUniformBufferBinding blender::gpu::MTLContextGlobalShaderPipelineState::ubo_bindings[MTL_MAX_BUFFER_BINDINGS]

◆ unpack_row_length

uint blender::gpu::MTLContextGlobalShaderPipelineState::unpack_row_length

◆ viewport_height

int blender::gpu::MTLContextGlobalShaderPipelineState::viewport_height[GPU_MAX_VIEWPORTS]

Definition at line 514 of file mtl_context.hh.

◆ viewport_offset_x

int blender::gpu::MTLContextGlobalShaderPipelineState::viewport_offset_x[GPU_MAX_VIEWPORTS]

Definition at line 511 of file mtl_context.hh.

◆ viewport_offset_y

int blender::gpu::MTLContextGlobalShaderPipelineState::viewport_offset_y[GPU_MAX_VIEWPORTS]

Definition at line 512 of file mtl_context.hh.

◆ viewport_width

int blender::gpu::MTLContextGlobalShaderPipelineState::viewport_width[GPU_MAX_VIEWPORTS]

Definition at line 513 of file mtl_context.hh.


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