Blender V4.3
mtl_context.mm File Reference
#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_shader.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.h"
#include <fstream>
#include <string>

Go to the source code of this file.

Namespaces

namespace  blender
 
namespace  blender::gpu
 

Macros

#define MTL_DEBUG_SINGLE_DISPATCH_PER_ENCODER   1
 
#define DEBUG_BIND_NULL_BUFFER_FOR_MISSING_UBO   1
 
#define DEBUG_BIND_NULL_BUFFER_FOR_MISSING_SSBO   0
 
#define MTL_LOG_UBO_ERROR   MTL_LOG_WARNING
 
#define MTL_LOG_SSBO_ERROR   MTL_LOG_ERROR
 

Functions

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)
 

Macro Definition Documentation

◆ DEBUG_BIND_NULL_BUFFER_FOR_MISSING_SSBO

#define DEBUG_BIND_NULL_BUFFER_FOR_MISSING_SSBO   0

Definition at line 54 of file mtl_context.mm.

◆ DEBUG_BIND_NULL_BUFFER_FOR_MISSING_UBO

#define DEBUG_BIND_NULL_BUFFER_FOR_MISSING_UBO   1

Definition at line 50 of file mtl_context.mm.

◆ MTL_DEBUG_SINGLE_DISPATCH_PER_ENCODER

#define MTL_DEBUG_SINGLE_DISPATCH_PER_ENCODER   1

Definition at line 45 of file mtl_context.mm.

◆ MTL_LOG_SSBO_ERROR

◆ MTL_LOG_UBO_ERROR