diff --git a/module.cpp b/module.cpp index 36747e55..cc8e46f5 100644 --- a/module.cpp +++ b/module.cpp @@ -1121,6 +1121,12 @@ lEmitVectorTypedefs(const std::vector &types, FILE *file) { for (unsigned int i = 0; i < types.size(); ++i) { std::string baseDecl; const VectorType *vt = types[i]->GetAsNonConstType(); + if (!vt->IsUniformType()) + // Varying stuff shouldn't be visibile to / used by the + // application, so at least make it not simple to access it by + // not declaring the type here... + continue; + int size = vt->GetElementCount(); baseDecl = vt->GetBaseType()->GetCDeclaration("");