Blender V4.3
blender::gpu::MTLRenderPassState Class Reference

#include <mtl_context.hh>

Public Member Functions

 MTLRenderPassState (MTLContext &context, MTLCommandBufferManager &command_buffer_manager)
 
Render Pass State for active RenderCommandEncoder
void reset_state ()
 
void bind_vertex_texture (id< MTLTexture > tex, uint slot)
 
void bind_fragment_texture (id< MTLTexture > tex, uint slot)
 
void bind_vertex_sampler (MTLSamplerBinding &sampler_binding, bool use_argument_buffer_for_samplers, uint slot)
 
void bind_fragment_sampler (MTLSamplerBinding &sampler_binding, bool use_argument_buffer_for_samplers, uint slot)
 
void bind_vertex_buffer (id< MTLBuffer > buffer, uint64_t buffer_offset, uint index)
 
void bind_fragment_buffer (id< MTLBuffer > buffer, uint64_t buffer_offset, uint index)
 
void bind_vertex_bytes (const void *bytes, uint64_t length, uint index)
 
void bind_fragment_bytes (const void *bytes, uint64_t length, uint index)
 

Public Attributes

MTLContextctx
 
MTLCommandBufferManagercmd
 
MTLBoundShaderState last_bound_shader_state
 
id< MTLRenderPipelineState > bound_pso = nil
 
id< MTLDepthStencilState > bound_ds_state = nil
 
uint last_used_stencil_ref_value = 0
 
MTLScissorRect last_scissor_rect
 
BufferBindingCached cached_vertex_buffer_bindings [MTL_MAX_BUFFER_BINDINGS]
 
BufferBindingCached cached_fragment_buffer_bindings [MTL_MAX_BUFFER_BINDINGS]
 
TextureBindingCached cached_vertex_texture_bindings [MTL_MAX_TEXTURE_SLOTS]
 
TextureBindingCached cached_fragment_texture_bindings [MTL_MAX_TEXTURE_SLOTS]
 
SamplerStateBindingCached cached_vertex_sampler_state_bindings [MTL_MAX_TEXTURE_SLOTS]
 
SamplerStateBindingCached cached_fragment_sampler_state_bindings [MTL_MAX_TEXTURE_SLOTS]
 

Friends

class MTLContext
 

Detailed Description

Definition at line 105 of file mtl_context.hh.

Constructor & Destructor Documentation

◆ MTLRenderPassState()

blender::gpu::MTLRenderPassState::MTLRenderPassState ( MTLContext & context,
MTLCommandBufferManager & command_buffer_manager )
inline

Definition at line 109 of file mtl_context.hh.

Member Function Documentation

◆ bind_fragment_buffer()

◆ bind_fragment_bytes()

◆ bind_fragment_sampler()

◆ bind_fragment_texture()

◆ bind_vertex_buffer()

◆ bind_vertex_bytes()

◆ bind_vertex_sampler()

◆ bind_vertex_texture()

◆ reset_state()

Friends And Related Symbol Documentation

◆ MTLContext

friend class MTLContext
friend

Definition at line 106 of file mtl_context.hh.

Member Data Documentation

◆ bound_ds_state

id<MTLDepthStencilState> blender::gpu::MTLRenderPassState::bound_ds_state = nil

◆ bound_pso

id<MTLRenderPipelineState> blender::gpu::MTLRenderPassState::bound_pso = nil

◆ cached_fragment_buffer_bindings

BufferBindingCached blender::gpu::MTLRenderPassState::cached_fragment_buffer_bindings[MTL_MAX_BUFFER_BINDINGS]

◆ cached_fragment_sampler_state_bindings

SamplerStateBindingCached blender::gpu::MTLRenderPassState::cached_fragment_sampler_state_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 128 of file mtl_context.hh.

Referenced by bind_fragment_sampler(), and reset_state().

◆ cached_fragment_texture_bindings

TextureBindingCached blender::gpu::MTLRenderPassState::cached_fragment_texture_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 126 of file mtl_context.hh.

Referenced by bind_fragment_texture(), and reset_state().

◆ cached_vertex_buffer_bindings

◆ cached_vertex_sampler_state_bindings

SamplerStateBindingCached blender::gpu::MTLRenderPassState::cached_vertex_sampler_state_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 127 of file mtl_context.hh.

Referenced by bind_vertex_sampler(), and reset_state().

◆ cached_vertex_texture_bindings

TextureBindingCached blender::gpu::MTLRenderPassState::cached_vertex_texture_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 125 of file mtl_context.hh.

Referenced by bind_vertex_texture(), and reset_state().

◆ cmd

◆ ctx

MTLContext& blender::gpu::MTLRenderPassState::ctx

◆ last_bound_shader_state

MTLBoundShaderState blender::gpu::MTLRenderPassState::last_bound_shader_state

◆ last_scissor_rect

MTLScissorRect blender::gpu::MTLRenderPassState::last_scissor_rect

◆ last_used_stencil_ref_value

uint blender::gpu::MTLRenderPassState::last_used_stencil_ref_value = 0

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