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

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

#include <gui_core/graphics/d3d12/d3d12_device.h>

Inheritance diagram for tachyon::d3d12::D3D12Image:

Public Member Functions

ID3D12Resource * Resource () const

Public Attributes

ComPtr< D3D12MA::Allocation > allocation
ID3D12Resource * external = nullptr
DXGI_FORMAT format = DXGI_FORMAT_UNKNOWN
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) has no allocation: its texture stays the host's.

Member Function Documentation

◆ Resource()

ID3D12Resource * tachyon::d3d12::D3D12Image::Resource ( ) const
inline

Member Data Documentation

◆ allocation

ComPtr<D3D12MA::Allocation> tachyon::d3d12::D3D12Image::allocation

◆ external

ID3D12Resource* tachyon::d3d12::D3D12Image::external = nullptr

◆ format

DXGI_FORMAT tachyon::d3d12::D3D12Image::format = DXGI_FORMAT_UNKNOWN

◆ sampler

Sampler tachyon::d3d12::D3D12Image::sampler = Sampler::NearestRepeat

◆ size

uint2 tachyon::d3d12::D3D12Image::size {}

◆ sourceFormat

std::optional<ImageFormat> tachyon::d3d12::D3D12Image::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: