Blender  V3.3
Classes | Public Member Functions | Public Attributes | Friends | List of all members
blender::gpu::MTLRenderPassState Struct Reference

#include <mtl_context.hh>

Classes

struct  BufferBindingCached
 
struct  MTLBoundShaderState
 
struct  SamplerStateBindingCached
 
struct  TextureBindingCached
 

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, uint buffer_offset, uint index)
 
void bind_fragment_buffer (id< MTLBuffer > buffer, uint buffer_offset, uint index)
 
void bind_vertex_bytes (void *bytes, uint length, uint index)
 
void bind_fragment_bytes (void *bytes, uint 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_UNIFORM_BUFFER_BINDINGS]
 
BufferBindingCached cached_fragment_buffer_bindings [MTL_MAX_UNIFORM_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 60 of file mtl_context.hh.

Constructor & Destructor Documentation

◆ MTLRenderPassState()

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

Definition at line 63 of file mtl_context.hh.

Member Function Documentation

◆ bind_fragment_buffer()

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

Definition at line 632 of file mtl_command_buffer.mm.

◆ bind_fragment_bytes()

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

Definition at line 644 of file mtl_command_buffer.mm.

◆ bind_fragment_sampler()

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

Definition at line 618 of file mtl_command_buffer.mm.

◆ 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,
uint  buffer_offset,
uint  index 
)

Definition at line 626 of file mtl_command_buffer.mm.

◆ bind_vertex_bytes()

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

Definition at line 638 of file mtl_command_buffer.mm.

◆ bind_vertex_sampler()

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

Definition at line 610 of file mtl_command_buffer.mm.

◆ bind_vertex_texture()

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

◆ reset_state()

void blender::gpu::MTLRenderPassState::reset_state ( )

Friends And Related Function Documentation

◆ MTLContext

friend class MTLContext
friend

Definition at line 61 of file mtl_context.hh.

Member Data Documentation

◆ bound_ds_state

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

Definition at line 86 of file mtl_context.hh.

Referenced by reset_state().

◆ bound_pso

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

Definition at line 85 of file mtl_context.hh.

Referenced by reset_state().

◆ cached_fragment_buffer_bindings

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

Definition at line 100 of file mtl_context.hh.

Referenced by reset_state().

◆ cached_fragment_sampler_state_bindings

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

Definition at line 118 of file mtl_context.hh.

Referenced by reset_state().

◆ cached_fragment_texture_bindings

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

Definition at line 108 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_UNIFORM_BUFFER_BINDINGS]

Definition at line 99 of file mtl_context.hh.

Referenced by reset_state().

◆ cached_vertex_sampler_state_bindings

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

Definition at line 117 of file mtl_context.hh.

Referenced by reset_state().

◆ cached_vertex_texture_bindings

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

Definition at line 107 of file mtl_context.hh.

Referenced by bind_vertex_texture(), and reset_state().

◆ cmd

MTLCommandBufferManager& blender::gpu::MTLRenderPassState::cmd

Definition at line 69 of file mtl_context.hh.

Referenced by bind_fragment_texture(), bind_vertex_texture(), and reset_state().

◆ ctx

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

Definition at line 68 of file mtl_context.hh.

◆ last_bound_shader_state

MTLBoundShaderState blender::gpu::MTLRenderPassState::last_bound_shader_state

Definition at line 84 of file mtl_context.hh.

Referenced by reset_state().

◆ last_scissor_rect

MTLScissorRect blender::gpu::MTLRenderPassState::last_scissor_rect

Definition at line 88 of file mtl_context.hh.

Referenced by reset_state().

◆ last_used_stencil_ref_value

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

Definition at line 87 of file mtl_context.hh.

Referenced by reset_state().


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