8#include <QLatin1String>
79 "the overlay and surface shared GLSL headers declare iChannel0..7; grow them with this "
80 "(pointer declares 0..3 for its own smaller cap, and animation declares none)");
82 "the shared GLSL headers pin these literal bindings; update every family with this table");
89 "the uniform block is binding 0 in every shared GLSL header and in the validator's own check");
91 "the consumer gap slot is binding 1; colliding it with kChannelBase would make a channel binding "
92 "claimable through setExtraBinding");
94static_assert(
kExtraBase >
kDepth,
"the consumer range must start strictly above the last library-managed binding");
101 if (name.startsWith(QLatin1String(
"iChannel")) && name.size() == 9) {
102 const int n = name.at(8).digitValue();
105 if (name.startsWith(QLatin1String(
"uTexture")) && name.size() == 9) {
106 const int n = name.at(8).digitValue();
109 if (name == QLatin1String(
"uCursorSprite")) {
112 if (name == QLatin1String(
"uAudioSpectrum")) {
115 if (name == QLatin1String(
"uWallpaper") || name == QLatin1String(
"uBackdrop")) {
118 if (name == QLatin1String(
"uDepthBuffer")) {
121 if (name == QLatin1String(
"uZoneLabels")) {
The ONE descriptor-binding layout every Qt-RHI shader family speaks (overlay, animation,...
Definition ShaderBindings.h:35
constexpr int kWallpaper
Definition ShaderBindings.h:44
constexpr int kChannelResolutionSlots
How many channel sizes the uniform block carries (iChannelResolution[4]).
Definition ShaderBindings.h:76
constexpr int kMaxBinding
Highest binding a consumer may claim.
Definition ShaderBindings.h:74
constexpr bool isConsumerBinding(int binding) noexcept
Whether binding is one a consumer may claim through setExtraBinding: the single gap slot,...
Definition ShaderBindings.h:129
constexpr int kChannelCount
Definition ShaderBindings.h:40
constexpr int kExtraBase
Definition ShaderBindings.h:48
constexpr int kUserTextureCount
Definition ShaderBindings.h:43
constexpr int kReservedEnd
Last binding the library manages; everything above is a consumer slot.
Definition ShaderBindings.h:47
constexpr int kUserTextureBase
Definition ShaderBindings.h:42
constexpr int kConsumer
Definition ShaderBindings.h:38
constexpr int kDepth
Definition ShaderBindings.h:45
constexpr int kUniformBlock
Definition ShaderBindings.h:37
constexpr int kAudioSpectrum
Definition ShaderBindings.h:41
constexpr int kChannelBase
Definition ShaderBindings.h:39
int expectedSamplerBinding(QStringView name)
The binding a canonical contract sampler must declare, or -1 when name is not a contract sampler (a c...
Definition ShaderBindings.h:99
constexpr int kMaxBufferPasses
Maximum number of multipass buffer passes a pack may declare.
Definition CustomParamsKey.h:68