TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::metal::Buffer Struct Reference

A buffer the CPU writes and the GPU reads (shared storage), and its handle for addresses. More...

#include <gui_core/graphics/metal/metal_device.h>

Public Member Functions

void * Mapped () const
DeviceAddress Address (size_t offset) const
 operator bool () const

Public Attributes

id< MTLBuffer > buffer = nil
uint32_t handle = 0
 0: none
size_t size = 0

Detailed Description

A buffer the CPU writes and the GPU reads (shared storage), and its handle for addresses.

Member Function Documentation

◆ Mapped()

void * tachyon::metal::Buffer::Mapped ( ) const
inline

◆ Address()

DeviceAddress tachyon::metal::Buffer::Address ( size_t offset) const
inline

◆ operator bool()

tachyon::metal::Buffer::operator bool ( ) const
inlineexplicit

Member Data Documentation

◆ buffer

id<MTLBuffer> tachyon::metal::Buffer::buffer = nil

◆ handle

uint32_t tachyon::metal::Buffer::handle = 0

0: none

◆ size

size_t tachyon::metal::Buffer::size = 0

The documentation for this struct was generated from the following file: