QtCraft API C++ classes QML types Handbook

QcGpuLimits Namespace

What the renderer learned about the GPU, for code that prepares textures in other threads (decision E-300): the largest texture edge. More...

Header: #include <clientcore/textures/QcGpuLimits.h>

Variables

const int assumedMaxTextureSize

Functions

int maxTextureSize()
void report(int maxTextureSize)

Detailed Description

Thread-safe.

Variable Documentation

const int QcGpuLimits::assumedMaxTextureSize

Until a renderer reported its limit: an edge every desktop GPU QtCraft runs on supports.

Function Documentation

int QcGpuLimits::maxTextureSize()

Returns the reported largest texture edge, or assumedMaxTextureSize before any report.

void QcGpuLimits::report(int maxTextureSize)

Takes maxTextureSize, called by the renderers with QRhi::TextureSizeMax; values below 1 are ignored.