You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Structs are defined much like C++ (note: the C-style typedef struct *{} syntax is not supported). GLSL does not support anonymous structures (ie: structs without a type name), and structs must have at least one member declaration. Structs cannot be defined within another struct, but one struct can use another previously defined struct as a member." More Information.
Structs could be used to organise better your shader code, since this acts as a class without addable functions, letting you make several instances of that code without having a cluttered uniform variable instancing.
The text was updated successfully, but these errors were encountered:
"Structs are defined much like C++ (note: the C-style typedef struct *{} syntax is not supported). GLSL does not support anonymous structures (ie: structs without a type name), and structs must have at least one member declaration. Structs cannot be defined within another struct, but one struct can use another previously defined struct as a member." More Information.
Structs could be used to organise better your shader code, since this acts as a class without addable functions, letting you make several instances of that code without having a cluttered uniform variable instancing.
The text was updated successfully, but these errors were encountered: