|
Blender V5.3
|
#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 |
Definition at line 118 of file mtl_context.hh.
|
inline |
Definition at line 122 of file mtl_context.hh.
References cmd, ctx, and MTLContext.
| void blender::gpu::MTLComputeState::bind_compute_buffer | ( | id< MTLBuffer > | buffer, |
| uint64_t | buffer_offset, | ||
| uint | index ) |
Definition at line 837 of file mtl_command_buffer.mm.
References cmd, compute_bindings, and blender::gpu::MTLCommandBufferManager::get_active_compute_command_encoder().
Referenced by blender::gpu::MTLStorageBuf::clear(), and blender::gpu::MTLTexture::update_sub().
| void blender::gpu::MTLComputeState::bind_compute_bytes | ( | const void * | bytes, |
| uint64_t | length, | ||
| uint | index ) |
Definition at line 843 of file mtl_command_buffer.mm.
References cmd, compute_bindings, blender::gpu::MTLCommandBufferManager::get_active_compute_command_encoder(), and length().
Referenced by blender::gpu::MTLStorageBuf::clear(), and blender::gpu::MTLTexture::update_sub().
| void blender::gpu::MTLComputeState::bind_compute_sampler | ( | MTLSamplerBinding & | sampler_binding, |
| bool | use_samplers_argument_buffer, | ||
| uint | slot ) |
Definition at line 825 of file mtl_command_buffer.mm.
References cmd, compute_bindings, blender::gpu::MTLCommandBufferManager::get_active_compute_command_encoder(), blender::gpu::MTLSamplerBinding::get_mtl_sampler(), and blender::gpu::MTLSamplerBinding::state.
| void blender::gpu::MTLComputeState::bind_compute_texture | ( | id< MTLTexture > | tex, |
| uint | slot ) |
Definition at line 820 of file mtl_command_buffer.mm.
References cmd, compute_bindings, and blender::gpu::MTLCommandBufferManager::get_active_compute_command_encoder().
Referenced by blender::gpu::MTLTexture::update_sub().
| void blender::gpu::MTLComputeState::bind_pso | ( | id< MTLComputePipelineState > | pso | ) |
Definition at line 811 of file mtl_command_buffer.mm.
References bound_pso, cmd, and blender::gpu::MTLCommandBufferManager::get_active_compute_command_encoder().
Referenced by blender::gpu::MTLStorageBuf::clear(), blender::gpu::MTLContext::compute_dispatch(), blender::gpu::MTLContext::compute_dispatch_indirect(), and blender::gpu::MTLTexture::update_sub().
| void blender::gpu::MTLComputeState::reset_state | ( | ) |
Definition at line 803 of file mtl_command_buffer.mm.
References bound_pso, and compute_bindings.
|
friend |
Definition at line 119 of file mtl_context.hh.
References MTLContext.
Referenced by MTLComputeState(), and MTLContext.
| id<MTLComputePipelineState> blender::gpu::MTLComputeState::bound_pso = nil |
Definition at line 130 of file mtl_context.hh.
Referenced by bind_pso(), and reset_state().
| MTLCommandBufferManager& blender::gpu::MTLComputeState::cmd |
Definition at line 128 of file mtl_context.hh.
Referenced by bind_compute_buffer(), bind_compute_bytes(), bind_compute_sampler(), bind_compute_texture(), bind_pso(), and MTLComputeState().
| MTLBindingCache<gpu::MTLComputeCommandEncoder> blender::gpu::MTLComputeState::compute_bindings |
Definition at line 132 of file mtl_context.hh.
Referenced by bind_compute_buffer(), bind_compute_bytes(), bind_compute_sampler(), bind_compute_texture(), blender::gpu::MTLContext::compute_dispatch(), blender::gpu::MTLContext::compute_dispatch_indirect(), and reset_state().
| MTLContext& blender::gpu::MTLComputeState::ctx |
Definition at line 127 of file mtl_context.hh.
Referenced by MTLComputeState().