|
Blender V5.3
|
#include "mtl_context.hh"#include "mtl_debug.hh"#include "mtl_framebuffer.hh"#include "mtl_immediate.hh"#include "mtl_memory.hh"#include "mtl_primitive.hh"#include "mtl_ray_tracing.hh"#include "mtl_shader.hh"#include "mtl_shader_generate.hh"#include "mtl_shader_interface.hh"#include "mtl_state.hh"#include "mtl_storage_buffer.hh"#include "mtl_uniform_buffer.hh"#include "mtl_vertex_buffer.hh"#include "DNA_userdef_types.h"#include "GPU_capabilities.hh"#include "GPU_matrix.hh"#include "GPU_shader.hh"#include "GPU_storage_buffer.hh"#include "GPU_texture.hh"#include "GPU_uniform_buffer.hh"#include "GPU_vertex_buffer.hh"#include "intern/gpu_matrix_private.hh"#include "BLI_time.hh"#include <fstream>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
| namespace | blender::gpu |
Macros | |
| #define | MTL_DEBUG_SINGLE_DISPATCH_PER_ENCODER 0 |
| #define | DEBUG_BIND_NULL_BUFFER_FOR_MISSING_UBO 0 |
| #define | DEBUG_BIND_NULL_BUFFER_FOR_MISSING_SSBO 0 |
| #define | MTL_LOG_UBO_ERROR MTL_LOG_ERROR |
| #define | MTL_LOG_SSBO_ERROR MTL_LOG_ERROR |
Functions | |
Global Context State | |
| static void | blender::gpu::bind_atomic_workaround_buffer (StringRefNull texture_name, MTLTexture *gpu_tex, MTLShaderInterface &shader_interface, MTLShader &active_shader) |
| template<typename CommandEncoderT> | |
| static void | blender::gpu::bind_sampler_argument_buffer (CommandEncoderT enc, MTLSamplerArray &sampler_array, Map< MTLSamplerArray, gpu::MTLBuffer * > &sampler_buffers_cache, MTLShaderInterface &shader_interface, id< MTLFunction > mtl_function, MTLBindingCache< CommandEncoderT > &bindings) |
| template<typename CommandEncoderT> | |
| static void | blender::gpu::ensure_texture_bindings (MTLContext &ctx, MTLShader &shader, CommandEncoderT enc, MTLBindingCache< CommandEncoderT > &bindings, id< MTLFunction > mtl_function, uint16_t stage_ima_mask=uint16_t(-1), uint64_t stage_tex_mask=uint64_t(-1)) |
| template<typename CommandEncoderT> | |
| static void | blender::gpu::ensure_push_constant (MTLContext &ctx, MTLShader &shader, CommandEncoderT enc, MTLBindingCache< CommandEncoderT > &bindings, uint32_t stage_buf_mask=uint32_t(-1)) |
| template<typename CommandEncoderT> | |
| static void | blender::gpu::ensure_buffer_bindings (MTLContext &ctx, MTLShader &shader, CommandEncoderT enc, MTLBindingCache< CommandEncoderT > &bindings, uint32_t stage_buf_mask=uint32_t(-1)) |
Texture State Management | |
| static MTLSamplerAddressMode | blender::gpu::to_mtl_type (GPUSamplerExtendMode wrap_mode) |
Swap-chain management and Metal presentation. | |
| void | blender::gpu::present (MTLRenderPassDescriptor *blit_descriptor, id< MTLRenderPipelineState > blit_pso, id< MTLTexture > swapchain_texture, id< CAMetalDrawable > drawable) |
XR blitting function called from the GHOST Metal XR binding. | |
| void | blender::gpu::xr_blit (id< MTLTexture > metal_xr_texture, int ofsx, int ofsy, int width, int height) |
Variables | |
| static CLG_LogRef | blender::gpu::LOG = {"gpu.metal"} |
| #define DEBUG_BIND_NULL_BUFFER_FOR_MISSING_SSBO 0 |
Definition at line 50 of file mtl_context.mm.
| #define DEBUG_BIND_NULL_BUFFER_FOR_MISSING_UBO 0 |
Definition at line 46 of file mtl_context.mm.
| #define MTL_DEBUG_SINGLE_DISPATCH_PER_ENCODER 0 |
Definition at line 43 of file mtl_context.mm.
| #define MTL_LOG_SSBO_ERROR MTL_LOG_ERROR |
Definition at line 62 of file mtl_context.mm.
| #define MTL_LOG_UBO_ERROR MTL_LOG_ERROR |
Definition at line 56 of file mtl_context.mm.