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

Constructor & Destructor Documentation

◆ MTLComputeState()

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

Definition at line 155 of file mtl_context.hh.

References cmd, ctx, and MTLContext.

Member Function Documentation

◆ bind_compute_buffer()

◆ bind_compute_bytes()

◆ bind_compute_sampler()

void blender::gpu::MTLComputeState::bind_compute_sampler ( MTLSamplerBinding & sampler_binding,
bool use_argument_buffer_for_samplers,
uint slot )

◆ bind_compute_texture()

void blender::gpu::MTLComputeState::bind_compute_texture ( id< MTLTexture > tex,
uint slot )

◆ bind_pso()

◆ reset_state()

◆ MTLContext

friend class MTLContext
friend

Definition at line 152 of file mtl_context.hh.

References MTLContext.

Referenced by MTLComputeState(), and MTLContext.

Member Data Documentation

◆ bound_pso

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

Definition at line 163 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 164 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 166 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 165 of file mtl_context.hh.

Referenced by bind_compute_texture(), and reset_state().

◆ cmd

◆ ctx

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

Definition at line 160 of file mtl_context.hh.

Referenced by bind_compute_bytes(), bind_compute_sampler(), and MTLComputeState().


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