Blender V5.3
blender::gpu::MTLBindingCache< CommandEncoderT > Struct Template Reference

#include <mtl_command_buffer.hh>

Public Member Functions

void bind_buffer (CommandEncoderT enc, id< MTLBuffer > buf, size_t offset, uint index)
void bind_bytes (CommandEncoderT enc, MTLScratchBufferManager &scratch_buffer, const void *bytes, size_t length, uint index)
void bind_texture (CommandEncoderT enc, id< MTLTexture > tex, uint index)
void bind_sampler (CommandEncoderT enc, gpu::MTLSamplerArray &sampler_array, id< MTLSamplerState > sampler_state, gpu::MTLSamplerState binding_state, bool use_samplers_argument_buffer, uint index)

Public Attributes

std::array< MTLBufferBindingCached, MTL_MAX_BUFFER_BINDINGS > buffer_bindings = {}
std::array< MTLTextureBindingCached, MTL_MAX_TEXTURE_SLOTS > texture_bindings = {}
std::array< MTLSamplerStateBindingCached, MTL_MAX_TEXTURE_SLOTS > sampler_state_bindings = {}

Detailed Description

template<typename CommandEncoderT>
struct blender::gpu::MTLBindingCache< CommandEncoderT >

Definition at line 132 of file mtl_command_buffer.hh.

Member Function Documentation

◆ bind_buffer()

◆ bind_bytes()

◆ bind_sampler()

◆ bind_texture()

template<typename CommandEncoderT>
void blender::gpu::MTLBindingCache< CommandEncoderT >::bind_texture ( CommandEncoderT enc,
id< MTLTexture > tex,
uint index )

Member Data Documentation

◆ buffer_bindings

template<typename CommandEncoderT>
std::array<MTLBufferBindingCached, MTL_MAX_BUFFER_BINDINGS> blender::gpu::MTLBindingCache< CommandEncoderT >::buffer_bindings = {}

Definition at line 134 of file mtl_command_buffer.hh.

Referenced by bind_buffer(), and bind_bytes().

◆ sampler_state_bindings

template<typename CommandEncoderT>
std::array<MTLSamplerStateBindingCached, MTL_MAX_TEXTURE_SLOTS> blender::gpu::MTLBindingCache< CommandEncoderT >::sampler_state_bindings = {}

Definition at line 136 of file mtl_command_buffer.hh.

Referenced by bind_sampler().

◆ texture_bindings

template<typename CommandEncoderT>
std::array<MTLTextureBindingCached, MTL_MAX_TEXTURE_SLOTS> blender::gpu::MTLBindingCache< CommandEncoderT >::texture_bindings = {}

Definition at line 135 of file mtl_command_buffer.hh.

Referenced by bind_texture().


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