TraceMaker
C++ API of the engine
Loading...
Searching...
No Matches
metal_private.hpp File Reference
import <Metal/Metal.h>
#include <cstddef>
#include <mutex>

Go to the source code of this file.

Namespaces

namespace  tmk
namespace  tmk::gpu
namespace  tmk::gpu::metal

Functions

std::size_t tmk::gpu::metal::device_count ()
 One stable, registry-ID-ordered snapshot shared by discovery and field dispatch.
id< MTLDevice > tmk::gpu::metal::device_at_index (int index)
std::size_t tmk::gpu::metal::working_set_headroom (id< MTLDevice > device)
 Process working-set budget, not free VRAM: currentAllocatedSize excludes other processes.
std::mutex & tmk::gpu::metal::allocation_mutex ()
 Serialize admission and allocation so callers cannot admit against the same headroom.