|
Blender V5.3
|
#include <mtl_context.hh>
Public Member Functions | |
| MTLRenderPassState (MTLContext &context, MTLCommandBufferManager &command_buffer_manager) | |
Render Pass State for active RenderCommandEncoder | |
| void | reset_state () |
| void | bind_vertex_texture (id< MTLTexture > tex, uint slot) |
| void | bind_fragment_texture (id< MTLTexture > tex, uint slot) |
| void | bind_vertex_sampler (MTLSamplerBinding &sampler_binding, bool use_samplers_argument_buffer, uint slot) |
| void | bind_fragment_sampler (MTLSamplerBinding &sampler_binding, bool use_samplers_argument_buffer, uint slot) |
| void | bind_vertex_buffer (id< MTLBuffer > buffer, uint64_t buffer_offset, uint index) |
| void | bind_fragment_buffer (id< MTLBuffer > buffer, uint64_t buffer_offset, uint index) |
| void | bind_vertex_bytes (const void *bytes, uint64_t length, uint index) |
| void | bind_fragment_bytes (const void *bytes, uint64_t length, uint index) |
Public Attributes | |
| MTLContext & | ctx |
| MTLCommandBufferManager & | cmd |
| MTLBoundShaderState | last_bound_shader_state = {} |
| id< MTLRenderPipelineState > | bound_pso = nil |
| id< MTLDepthStencilState > | bound_ds_state = nil |
| uint | last_used_stencil_ref_value = 0 |
| MTLScissorRect | last_scissor_rect |
| MTLBindingCache< gpu::MTLVertexCommandEncoder > | vertex_bindings |
| MTLBindingCache< gpu::MTLFragmentCommandEncoder > | fragment_bindings |
Friends | |
| class | MTLContext |
Definition at line 74 of file mtl_context.hh.
|
inline |
Definition at line 78 of file mtl_context.hh.
References cmd, ctx, and MTLContext.
| void blender::gpu::MTLRenderPassState::bind_fragment_buffer | ( | id< MTLBuffer > | buffer, |
| uint64_t | buffer_offset, | ||
| uint | index ) |
Definition at line 903 of file mtl_command_buffer.mm.
References cmd, fragment_bindings, and blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder().
| void blender::gpu::MTLRenderPassState::bind_fragment_bytes | ( | const void * | bytes, |
| uint64_t | length, | ||
| uint | index ) |
Definition at line 911 of file mtl_command_buffer.mm.
References cmd, fragment_bindings, blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder(), and length().
| void blender::gpu::MTLRenderPassState::bind_fragment_sampler | ( | MTLSamplerBinding & | sampler_binding, |
| bool | use_samplers_argument_buffer, | ||
| uint | slot ) |
Definition at line 891 of file mtl_command_buffer.mm.
References cmd, fragment_bindings, blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder(), blender::gpu::MTLSamplerBinding::get_mtl_sampler(), and blender::gpu::MTLSamplerBinding::state.
| void blender::gpu::MTLRenderPassState::bind_fragment_texture | ( | id< MTLTexture > | tex, |
| uint | slot ) |
Definition at line 886 of file mtl_command_buffer.mm.
References cmd, fragment_bindings, and blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder().
| void blender::gpu::MTLRenderPassState::bind_vertex_buffer | ( | id< MTLBuffer > | buffer, |
| uint64_t | buffer_offset, | ||
| uint | index ) |
Definition at line 869 of file mtl_command_buffer.mm.
References cmd, blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder(), and vertex_bindings.
Referenced by blender::gpu::MTLBatch::bind(), and blender::gpu::MTLContext::ensure_render_pipeline_state().
| void blender::gpu::MTLRenderPassState::bind_vertex_bytes | ( | const void * | bytes, |
| uint64_t | length, | ||
| uint | index ) |
Definition at line 877 of file mtl_command_buffer.mm.
References cmd, blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder(), length(), and vertex_bindings.
| void blender::gpu::MTLRenderPassState::bind_vertex_sampler | ( | MTLSamplerBinding & | sampler_binding, |
| bool | use_samplers_argument_buffer, | ||
| uint | slot ) |
Definition at line 857 of file mtl_command_buffer.mm.
References cmd, blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder(), blender::gpu::MTLSamplerBinding::get_mtl_sampler(), blender::gpu::MTLSamplerBinding::state, and vertex_bindings.
| void blender::gpu::MTLRenderPassState::bind_vertex_texture | ( | id< MTLTexture > | tex, |
| uint | slot ) |
Definition at line 852 of file mtl_command_buffer.mm.
References cmd, blender::gpu::MTLCommandBufferManager::get_active_render_command_encoder(), and vertex_bindings.
| void blender::gpu::MTLRenderPassState::reset_state | ( | ) |
Definition at line 782 of file mtl_command_buffer.mm.
References bound_ds_state, bound_pso, cmd, blender::fb(), fragment_bindings, blender::gpu::MTLCommandBufferManager::get_active_framebuffer(), last_bound_shader_state, last_scissor_rect, last_used_stencil_ref_value, and vertex_bindings.
|
friend |
Definition at line 75 of file mtl_context.hh.
References MTLContext.
Referenced by MTLContext, and MTLRenderPassState().
| id<MTLDepthStencilState> blender::gpu::MTLRenderPassState::bound_ds_state = nil |
Definition at line 88 of file mtl_context.hh.
Referenced by blender::gpu::MTLContext::ensure_depth_stencil_state(), and reset_state().
| id<MTLRenderPipelineState> blender::gpu::MTLRenderPassState::bound_pso = nil |
Definition at line 87 of file mtl_context.hh.
Referenced by blender::gpu::MTLContext::ensure_render_pipeline_state(), and reset_state().
| MTLCommandBufferManager& blender::gpu::MTLRenderPassState::cmd |
Definition at line 84 of file mtl_context.hh.
Referenced by bind_fragment_buffer(), bind_fragment_bytes(), bind_fragment_sampler(), bind_fragment_texture(), bind_vertex_buffer(), bind_vertex_bytes(), bind_vertex_sampler(), bind_vertex_texture(), MTLRenderPassState(), and reset_state().
| MTLContext& blender::gpu::MTLRenderPassState::ctx |
Definition at line 83 of file mtl_context.hh.
Referenced by MTLRenderPassState().
| MTLBindingCache<gpu::MTLFragmentCommandEncoder> blender::gpu::MTLRenderPassState::fragment_bindings |
Definition at line 93 of file mtl_context.hh.
Referenced by bind_fragment_buffer(), bind_fragment_bytes(), bind_fragment_sampler(), bind_fragment_texture(), blender::gpu::MTLContext::ensure_render_pipeline_state(), and reset_state().
| MTLBoundShaderState blender::gpu::MTLRenderPassState::last_bound_shader_state = {} |
Definition at line 86 of file mtl_context.hh.
Referenced by blender::gpu::MTLContext::ensure_render_pipeline_state(), and reset_state().
| MTLScissorRect blender::gpu::MTLRenderPassState::last_scissor_rect |
Definition at line 90 of file mtl_context.hh.
Referenced by blender::gpu::MTLContext::ensure_render_pipeline_state(), and reset_state().
| uint blender::gpu::MTLRenderPassState::last_used_stencil_ref_value = 0 |
Definition at line 89 of file mtl_context.hh.
Referenced by blender::gpu::MTLContext::ensure_depth_stencil_state(), and reset_state().
| MTLBindingCache<gpu::MTLVertexCommandEncoder> blender::gpu::MTLRenderPassState::vertex_bindings |
Definition at line 92 of file mtl_context.hh.
Referenced by bind_vertex_buffer(), bind_vertex_bytes(), bind_vertex_sampler(), bind_vertex_texture(), blender::gpu::MTLContext::ensure_render_pipeline_state(), and reset_state().