gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
gdk::graphics::limits Struct Referencefinal

used to (optionally) enforce limits on graphical types used across graphics apis More...

#include <limits.h>

Public Member Functions

bool operator== (const limits &) const =default

Public Attributes

std::size_t texture_size = UNRESTRICTED
 the widest and tallest a texture may be, in texels (GL_MAX_TEXTURE_SIZE)
bool non_power_of_two_textures = true
 whether a texture may be other than a power of two wide and tall with any filter and wrapping
std::size_t vertex_uniform_vectors = UNRESTRICTED
 uniform vectors a vertex shader may declare (GL_MAX_VERTEX_UNIFORM_VECTORS)
std::size_t fragment_uniform_vectors = UNRESTRICTED
 uniform vectors a fragment shader may declare (GL_MAX_FRAGMENT_UNIFORM_VECTORS)
std::size_t texture_units = UNRESTRICTED
 samplers a fragment shader may declare (GL_MAX_TEXTURE_IMAGE_UNITS)
std::size_t vertex_texture_units = UNRESTRICTED
 samplers a vertex shader may declare (GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS)
std::size_t vertex_attributes = UNRESTRICTED
 attribute vectors a vertex shader, or a model, may have (GL_MAX_VERTEX_ATTRIBS)
std::size_t varying_vectors = UNRESTRICTED
 varying vectors between the stages (GL_MAX_VARYING_VECTORS)

Static Public Attributes

static constexpr std::size_t UNRESTRICTED = std::numeric_limits<std::size_t>::max()
 no limit at all

Detailed Description

used to (optionally) enforce limits on graphical types used across graphics apis

Member Data Documentation

◆ non_power_of_two_textures

bool gdk::graphics::limits::non_power_of_two_textures = true

whether a texture may be other than a power of two wide and tall with any filter and wrapping

ES 2.0 and WebGL 1 take one only unmipmapped and clamped on both axes, which a webgl1es2_texture made so is allowed whatever this says; anything repeating or mipmapped must be a power of two there.


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