Uniform block in mesa glsl-compiler
"Y.Audureau" <[email protected]>
| Newsgroups | gmane.comp.video.mesa3d.user |
|---|---|
| Message-ID | <CAPtZhtf7AjcAdSLVp4NwUXeEXCb1JDWby_yC4Y0Ah929Bdvf4w@mail.gmail.com> |
Hi,
I am a new user of mesa.
I would like to use the standalone glsl-compiler but I got some issues
while compiling a glsl 300 es fragment shader with a simple uniform block
inside :
uniform barBlock {
vec4 nv;
int ni;
} inst;
I got the following message :
"error: invalid stream specified 0 is larger than MAX_VERTEX_STREAMS - 1
(-1)."
It seems that the MAX_VERTEX_STREAMS is not set and that the stream
property of my ubo layout (layout.stream) is setted to 0 because the it
doesn't have any stream expression. But in any case, my shader is a
fragment shader, not a geometry one and in version 300 es.
If I define MAX_VERTEX_STREAMS, I got others issue about the others layout
properties (buffer, offset, stride, align) but why those properties are
checked if I don't use the enhanced layout extension.
I deduced those informations from the function (in ast_to_hir.cpp) :
ir_rvalue *
ast_interface_block::hir(exec_list *instructions, struct
_mesa_glsl_parse_state *state)
Thanks
--
_______________________________________________
mesa-users mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-users