Blender V5.0
mtl_memory.mm File Reference
#include "BKE_global.hh"
#include "DNA_userdef_types.h"
#include "BLI_math_base.h"
#include "mtl_context.hh"
#include "mtl_debug.hh"
#include "mtl_memory.hh"
#include "mtl_storage_buffer.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::gpu

Macros

#define MTL_SCRATCH_BUFFER_ALLOW_TEMPORARY_EXPANSION

Variables

static constexpr size_t MEMORY_SIZE_256MB = 256LL * (1024LL * 1024LL)
static constexpr size_t MEMORY_SIZE_512MB = 512LL * (1024LL * 1024LL)
static constexpr size_t MEMORY_SIZE_1GB = 1LL * (1024LL * 1024LL * 1024LL)
static constexpr size_t MEMORY_SIZE_2GB = 2LL * (1024LL * 1024LL * 1024LL)

Macro Definition Documentation

◆ MTL_SCRATCH_BUFFER_ALLOW_TEMPORARY_EXPANSION

#define MTL_SCRATCH_BUFFER_ALLOW_TEMPORARY_EXPANSION

Definition at line 21 of file mtl_memory.mm.

Variable Documentation

◆ MEMORY_SIZE_1GB

size_t MEMORY_SIZE_1GB = 1LL * (1024LL * 1024LL * 1024LL)
staticconstexpr

Definition at line 26 of file mtl_memory.mm.

Referenced by blender::gpu::MTLBufferPool::update_memory_pools().

◆ MEMORY_SIZE_256MB

size_t MEMORY_SIZE_256MB = 256LL * (1024LL * 1024LL)
staticconstexpr

Definition at line 24 of file mtl_memory.mm.

Referenced by blender::gpu::MTLBufferPool::update_memory_pools().

◆ MEMORY_SIZE_2GB

size_t MEMORY_SIZE_2GB = 2LL * (1024LL * 1024LL * 1024LL)
staticconstexpr

Definition at line 27 of file mtl_memory.mm.

Referenced by blender::gpu::MTLBufferPool::update_memory_pools().

◆ MEMORY_SIZE_512MB

size_t MEMORY_SIZE_512MB = 512LL * (1024LL * 1024LL)
staticconstexpr

Definition at line 25 of file mtl_memory.mm.

Referenced by blender::gpu::MTLBufferPool::update_memory_pools().