Blender V5.0
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 103 of file mtl_context.hh.

Constructor & Destructor Documentation

◆ MTLRenderPassState()

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

Definition at line 107 of file mtl_context.hh.

References cmd, ctx, and MTLContext.

Member Function Documentation

◆ bind_fragment_buffer()

◆ bind_fragment_bytes()

◆ bind_fragment_sampler()

void blender::gpu::MTLRenderPassState::bind_fragment_sampler ( MTLSamplerBinding & sampler_binding,
bool use_argument_buffer_for_samplers,
uint slot )

◆ bind_fragment_texture()

void blender::gpu::MTLRenderPassState::bind_fragment_texture ( id< MTLTexture > tex,
uint slot )

◆ bind_vertex_buffer()

◆ bind_vertex_bytes()

◆ bind_vertex_sampler()

void blender::gpu::MTLRenderPassState::bind_vertex_sampler ( MTLSamplerBinding & sampler_binding,
bool use_argument_buffer_for_samplers,
uint slot )

◆ bind_vertex_texture()

void blender::gpu::MTLRenderPassState::bind_vertex_texture ( id< MTLTexture > tex,
uint slot )

◆ reset_state()

◆ MTLContext

friend class MTLContext
friend

Definition at line 104 of file mtl_context.hh.

References MTLContext.

Referenced by MTLContext, and MTLRenderPassState().

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 126 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 124 of file mtl_context.hh.

Referenced by bind_fragment_texture(), and reset_state().

◆ cached_vertex_buffer_bindings

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

◆ cached_vertex_sampler_state_bindings

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

Definition at line 125 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 123 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: