Blender V5.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_samplers_argument_buffer, uint slot)
void bind_fragment_sampler (MTLSamplerBinding &sampler_binding, bool use_samplers_argument_buffer, 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

MTLContext & ctx
MTLCommandBufferManager & cmd
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
MTLBindingCache< gpu::MTLVertexCommandEncoder > vertex_bindings
MTLBindingCache< gpu::MTLFragmentCommandEncoder > fragment_bindings

Friends

class MTLContext

Detailed Description

Definition at line 74 of file mtl_context.hh.

Constructor & Destructor Documentation

◆ MTLRenderPassState()

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

Definition at line 78 of file mtl_context.hh.

References cmd, ctx, and MTLContext.

Member Function Documentation

◆ bind_fragment_buffer()

void blender::gpu::MTLRenderPassState::bind_fragment_buffer ( id< MTLBuffer > buffer,
uint64_t buffer_offset,
uint index )

◆ bind_fragment_bytes()

void blender::gpu::MTLRenderPassState::bind_fragment_bytes ( const void * bytes,
uint64_t length,
uint index )

◆ bind_fragment_sampler()

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

◆ bind_fragment_texture()

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

◆ bind_vertex_buffer()

void blender::gpu::MTLRenderPassState::bind_vertex_buffer ( id< MTLBuffer > buffer,
uint64_t buffer_offset,
uint index )

◆ bind_vertex_bytes()

void blender::gpu::MTLRenderPassState::bind_vertex_bytes ( const void * bytes,
uint64_t length,
uint index )

◆ bind_vertex_sampler()

void blender::gpu::MTLRenderPassState::bind_vertex_sampler ( MTLSamplerBinding & sampler_binding,
bool use_samplers_argument_buffer,
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 75 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

◆ cmd

◆ ctx

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

Definition at line 83 of file mtl_context.hh.

Referenced by MTLRenderPassState().

◆ fragment_bindings

◆ 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

◆ vertex_bindings


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