TachyonUI 1.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::metal::MetalImage Class Referencefinal

An image (GraphicsContext::CreateImage): a texture sampled by the shaders. More...

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

Inheritance diagram for tachyon::metal::MetalImage:

Public Attributes

id< MTLTexture > texture = nil
bool external = false
MTLPixelFormat format = MTLPixelFormatInvalid
Sampler sampler = Sampler::NearestRepeat
uint2 size {}
std::optional< ImageFormat > sourceFormat
 Made by CreateImage from pixels of this format: UpdateImageRows can write into it.

Detailed Description

An image (GraphicsContext::CreateImage): a texture sampled by the shaders.

A host's (RegisterExternalImage) is its texture; external says so.

Member Data Documentation

◆ texture

id<MTLTexture> tachyon::metal::MetalImage::texture = nil

◆ external

bool tachyon::metal::MetalImage::external = false

◆ format

MTLPixelFormat tachyon::metal::MetalImage::format = MTLPixelFormatInvalid

◆ sampler

Sampler tachyon::metal::MetalImage::sampler = Sampler::NearestRepeat

◆ size

uint2 tachyon::metal::MetalImage::size {}

◆ sourceFormat

std::optional<ImageFormat> tachyon::metal::MetalImage::sourceFormat

Made by CreateImage from pixels of this format: UpdateImageRows can write into it.


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