|
Blender V5.3
|
#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 = {} |
Definition at line 132 of file mtl_command_buffer.hh.
| void blender::gpu::MTLBindingCache< CommandEncoderT >::bind_buffer | ( | CommandEncoderT | enc, |
| id< MTLBuffer > | buf, | ||
| size_t | offset, | ||
| uint | index ) |
Definition at line 154 of file mtl_command_buffer.hh.
References blender::BLI_assert(), buffer_bindings, blender::gpu::MTLBufferBindingCached::metal_buffer, MTL_FORCE_BUFFER_REBIND, MTL_MAX_BUFFER_BINDINGS, and blender::gpu::MTLBufferBindingCached::offset.
Referenced by bind_bytes(), blender::gpu::bind_sampler_argument_buffer(), and blender::gpu::ensure_buffer_bindings().
| void blender::gpu::MTLBindingCache< CommandEncoderT >::bind_bytes | ( | CommandEncoderT | enc, |
| MTLScratchBufferManager & | scratch_buffer, | ||
| const void * | bytes, | ||
| size_t | length, | ||
| uint | index ) |
Definition at line 182 of file mtl_command_buffer.hh.
References bind_buffer(), blender::BLI_assert(), buffer_bindings, blender::gpu::MTLBufferRange::buffer_offset, blender::gpu::MTLBufferRange::data, length(), blender::gpu::MTLBufferBindingCached::metal_buffer, blender::gpu::MTLBufferRange::metal_buffer, MTL_MAX_BUFFER_BINDINGS, MTL_MAX_SET_BYTES_SIZE, blender::gpu::MTLBufferBindingCached::offset, and blender::gpu::MTLScratchBufferManager::scratch_buffer_allocate_range_aligned().
Referenced by blender::gpu::ensure_push_constant().
| void blender::gpu::MTLBindingCache< CommandEncoderT >::bind_sampler | ( | CommandEncoderT | enc, |
| gpu::MTLSamplerArray & | sampler_array, | ||
| id< MTLSamplerState > | sampler_state, | ||
| gpu::MTLSamplerState | binding_state, | ||
| bool | use_samplers_argument_buffer, | ||
| uint | index ) |
Definition at line 230 of file mtl_command_buffer.hh.
References blender::gpu::MTLSamplerStateBindingCached::binding_state, blender::BLI_assert(), blender::gpu::MTLSamplerStateBindingCached::is_arg_buffer_binding, MTL_MAX_TEXTURE_SLOTS, blender::gpu::MTLSamplerArray::mtl_sampler, blender::gpu::MTLSamplerArray::mtl_sampler_flags, blender::gpu::MTLSamplerStateBindingCached::sampler_state, and sampler_state_bindings.
Referenced by blender::gpu::ensure_texture_bindings().
| void blender::gpu::MTLBindingCache< CommandEncoderT >::bind_texture | ( | CommandEncoderT | enc, |
| id< MTLTexture > | tex, | ||
| uint | index ) |
Definition at line 209 of file mtl_command_buffer.hh.
References blender::BLI_assert(), blender::gpu::MTLTextureBindingCached::metal_texture, MTL_MAX_TEXTURE_SLOTS, and texture_bindings.
Referenced by blender::gpu::ensure_texture_bindings().
| 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().
| 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().
| 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().