Ream v0.1.0-1
C++ graphics library for Linux
Loading...
Searching...
No Matches
Public Attributes | List of all members
RImageConstraints Struct Reference

Constraints applied when allocating an RImage. More...

#include <RImage.h>

Public Attributes

std::unordered_map< RDevice *, CZBitset< RImageCap > > caps
 Required caps for each device. Leave empty to disable constraints.
 
std::unordered_set< RFormat > readFormats
 Required read formats (the image must support at least one). Leave empty to disable constraints.
 
std::unordered_set< RFormat > writeFormats
 Required write formats (the image must support at least one). Leave empty to disable constraints.
 
RDeviceallocator { nullptr }
 The allocator device; if nullptr, RCore::mainDevice() is used.
 

Detailed Description

Constraints applied when allocating an RImage.

Used by the RImage factory functions to require specific capabilities and formats.

Member Data Documentation

◆ caps

std::unordered_map<RDevice*, CZBitset<RImageCap> > caps

Required caps for each device. Leave empty to disable constraints.

◆ readFormats

std::unordered_set<RFormat> readFormats

Required read formats (the image must support at least one). Leave empty to disable constraints.

◆ writeFormats

std::unordered_set<RFormat> writeFormats

Required write formats (the image must support at least one). Leave empty to disable constraints.

◆ allocator

RDevice* allocator { nullptr }

The allocator device; if nullptr, RCore::mainDevice() is used.