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

#include <mtl_context.hh>

Public Member Functions

 MTLComputeState (MTLContext &context, MTLCommandBufferManager &command_buffer_manager)
 
Render Pass State for active RenderCommandEncoder
void reset_state ()
 
void bind_pso (id< MTLComputePipelineState > pso)
 
void bind_compute_texture (id< MTLTexture > tex, uint slot)
 
void bind_compute_sampler (MTLSamplerBinding &sampler_binding, bool use_argument_buffer_for_samplers, uint slot)
 
void bind_compute_buffer (id< MTLBuffer > buffer, uint64_t buffer_offset, uint index)
 
void bind_compute_bytes (const void *bytes, uint64_t length, uint index)
 

Public Attributes

MTLContextctx
 
MTLCommandBufferManagercmd
 
id< MTLComputePipelineState > bound_pso = nil
 
BufferBindingCached cached_compute_buffer_bindings [MTL_MAX_BUFFER_BINDINGS]
 
TextureBindingCached cached_compute_texture_bindings [MTL_MAX_TEXTURE_SLOTS]
 
SamplerStateBindingCached cached_compute_sampler_state_bindings [MTL_MAX_TEXTURE_SLOTS]
 

Friends

class MTLContext
 

Detailed Description

Definition at line 153 of file mtl_context.hh.

Constructor & Destructor Documentation

◆ MTLComputeState()

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

Definition at line 157 of file mtl_context.hh.

Member Function Documentation

◆ bind_compute_buffer()

◆ bind_compute_bytes()

◆ bind_compute_sampler()

◆ bind_compute_texture()

◆ bind_pso()

◆ reset_state()

Friends And Related Symbol Documentation

◆ MTLContext

friend class MTLContext
friend

Definition at line 154 of file mtl_context.hh.

Member Data Documentation

◆ bound_pso

id<MTLComputePipelineState> blender::gpu::MTLComputeState::bound_pso = nil

Definition at line 165 of file mtl_context.hh.

Referenced by bind_pso(), and reset_state().

◆ cached_compute_buffer_bindings

BufferBindingCached blender::gpu::MTLComputeState::cached_compute_buffer_bindings[MTL_MAX_BUFFER_BINDINGS]

Definition at line 166 of file mtl_context.hh.

Referenced by bind_compute_buffer(), bind_compute_bytes(), and reset_state().

◆ cached_compute_sampler_state_bindings

SamplerStateBindingCached blender::gpu::MTLComputeState::cached_compute_sampler_state_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 168 of file mtl_context.hh.

Referenced by bind_compute_sampler(), and reset_state().

◆ cached_compute_texture_bindings

TextureBindingCached blender::gpu::MTLComputeState::cached_compute_texture_bindings[MTL_MAX_TEXTURE_SLOTS]

Definition at line 167 of file mtl_context.hh.

Referenced by bind_compute_texture(), and reset_state().

◆ cmd

MTLCommandBufferManager& blender::gpu::MTLComputeState::cmd

◆ ctx

MTLContext& blender::gpu::MTLComputeState::ctx

Definition at line 162 of file mtl_context.hh.

Referenced by bind_compute_bytes(), and bind_compute_sampler().


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