Blender V5.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_samplers_argument_buffer, 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

MTLContext & ctx
MTLCommandBufferManager & cmd
id< MTLComputePipelineState > bound_pso = nil
MTLBindingCache< gpu::MTLComputeCommandEncoder > compute_bindings

Friends

class MTLContext

Detailed Description

Definition at line 118 of file mtl_context.hh.

Constructor & Destructor Documentation

◆ MTLComputeState()

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

Definition at line 122 of file mtl_context.hh.

References cmd, ctx, and MTLContext.

Member Function Documentation

◆ bind_compute_buffer()

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

◆ bind_compute_bytes()

void blender::gpu::MTLComputeState::bind_compute_bytes ( const void * bytes,
uint64_t length,
uint index )

◆ bind_compute_sampler()

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

◆ bind_compute_texture()

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

◆ bind_pso()

◆ reset_state()

void blender::gpu::MTLComputeState::reset_state ( )

Definition at line 803 of file mtl_command_buffer.mm.

References bound_pso, and compute_bindings.

◆ MTLContext

friend class MTLContext
friend

Definition at line 119 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 130 of file mtl_context.hh.

Referenced by bind_pso(), and reset_state().

◆ cmd

◆ compute_bindings

◆ ctx

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

Definition at line 127 of file mtl_context.hh.

Referenced by MTLComputeState().


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