Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
e6de661a8aa96b5905ea7ba4cd5d76bd06da3f93 (qt/qtbase/5.15)
Description
Needed for Quick3D.
With uniform blocks disabled in the output (SPIRV-Cross), the following
struct LightSource
{
vec4 position;
...
};
layout (std140, binding = 1) uniform cbBufferLights
{
int uNumLights;
LightSource lights[MAX_NUM_LIGHTS];
};
translates to
struct LightSource {
vec4 position;
...
}
struct cbBufferLights {
int uNumLights;
LightSource lights[16];
};
uniform cbBufferLights _N;
which means the decomposition of uniform buffers to plain uniforms must be able to deal with at least a simple array of struct.
Attachments
Issue Links
- is required for
-
QTBUG-79219 Minimal proof of concept demo for Quick 3D on QRhi
- Closed