gdk-graphics 0a0aef92e917cfbac53dffbc32c295e4de914093
Loading...
Searching...
No Matches
profile.h
1// © Joseph Cameron - MIT License
2
3#ifndef GDK_GRAPHICS_PROFILE_H
4#define GDK_GRAPHICS_PROFILE_H
5
6#include <gdk/graphics/limits.h>
7
8#include <cstddef>
9#include <string>
10#include <string_view>
11
12namespace gdk::graphics {
13 class model_data;
14
18 struct profile final {
20 std::string name;
21
24
25 [[nodiscard]] bool operator==(const profile &) const = default;
26 };
27
30 //
34 void check_texture(const profile &aProfile, std::size_t aWidth, std::size_t aHeight);
35
38 void check_texture(const profile &aProfile, std::size_t aWidth, std::size_t aHeight,
39 bool aClampedAndUnmipmapped);
40
42 void check_model(const profile &aProfile, const model_data &aModel);
43
44 [[nodiscard]] std::string past_limit(const profile &aProfile, std::string_view aWhat, std::size_t aHas,
45 std::string_view aLimit, std::size_t aMost);
47}
48
49#endif
vertex data stored in system memory.
Definition model_data.h:25
used to (optionally) enforce limits on graphical types used across graphics apis
Definition limits.h:12
a target's limits
Definition profile.h:18
std::string name
said in every refusal: webgl1_minimum, adreno_330
Definition profile.h:20
graphics::limits most
the most of each property this target takes
Definition profile.h:23