Lines Matching refs:glu
45 static const glu::ShaderType s_shaderStageOrder[] =
47 glu::SHADERTYPE_COMPUTE,
49 glu::SHADERTYPE_VERTEX,
50 glu::SHADERTYPE_TESSELLATION_CONTROL,
51 glu::SHADERTYPE_TESSELLATION_EVALUATION,
52 glu::SHADERTYPE_GEOMETRY,
53 glu::SHADERTYPE_FRAGMENT
57 DE_STATIC_ASSERT(DE_LENGTH_OF_ARRAY(s_shaderStageOrder) == glu::SHADERTYPE_LAST);
59 static bool containsMatchingSubtype (const glu::VarType& varType, bool (*predicate)(glu::DataType)) in containsMatchingSubtype()
75 … bool containsMatchingSubtype (const std::vector<glu::VariableDeclaration>& decls, bool (*predicat… in containsMatchingSubtype()
83 static bool isOpaqueType (glu::DataType type) in isOpaqueType()
85 return glu::isDataTypeAtomicCounter(type) || in isOpaqueType()
86 glu::isDataTypeImage(type) || in isOpaqueType()
87 glu::isDataTypeSampler(type); in isOpaqueType()
90 static int getShaderStageIndex (glu::ShaderType stage) in getShaderStageIndex()
92 …const glu::ShaderType* const it = std::find(DE_ARRAY_BEGIN(s_shaderStageOrder), DE_ARRAY_END(s_sha… in getShaderStageIndex()
105 Shader::Shader (glu::ShaderType type, glu::GLSLVersion version) in Shader()
115 static bool isIllegalVertexInput (const glu::VarType& varType) in isIllegalVertexInput()
120 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexInput()
125 static bool isIllegalVertexOutput (const glu::VarType& varType, bool insideAStruct = false, bool in… in isIllegalVertexOutput()
131 …nst bool isOpaqueType = !glu::isDataTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(v… in isIllegalVertexOutput()
133 if (glu::isDataTypeBoolOrBVec(varType.getBasicType())) in isIllegalVertexOutput()
166 static bool isIllegalFragmentInput (const glu::VarType& varType) in isIllegalFragmentInput()
171 static bool isIllegalFragmentOutput (const glu::VarType& varType, bool insideAnArray = false) in isIllegalFragmentOutput()
177 …nst bool isOpaqueType = !glu::isDataTypeScalar(varType.getBasicType()) && !glu::isDataTypeVector(v… in isIllegalFragmentOutput()
179 …if (glu::isDataTypeBoolOrBVec(varType.getBasicType()) || isOpaqueType || glu::isDataTypeMatrix(var… in isIllegalFragmentOutput()
198 static bool isTypeIntegerOrContainsIntegers (const glu::VarType& varType) in isTypeIntegerOrContainsIntegers()
201 …return glu::isDataTypeIntOrIVec(varType.getBasicType()) || glu::isDataTypeUintOrUVec(varType.getBa… in isTypeIntegerOrContainsIntegers()
226 containsMatchingSubtype(m_defaultBlock.variables[varNdx].varType, glu::isDataTypeAtomicCounter)) in isValid()
231 containsMatchingSubtype(m_defaultBlock.variables[varNdx].varType, glu::isDataTypeAtomicCounter)) in isValid()
236 if (m_defaultBlock.variables[varNdx].layout.matrixOrder != glu::MATRIXORDER_LAST) in isValid()
239 if (containsMatchingSubtype(m_defaultBlock.variables[varNdx].varType, glu::isDataTypeSampler)) in isValid()
241 …const glu::Layout layoutWithLocationAndBinding(m_defaultBlock.variables[varNdx].layout.location, m… in isValid()
269 if (m_shaderType == glu::SHADERTYPE_VERTEX) in isValid()
273 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && isIllegalVertexInput(m_defaultB… in isValid()
275 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_OUT && isIllegalVertexOutput(m_defaul… in isValid()
277 …faultBlock.variables[varNdx].storage == glu::STORAGE_OUT && m_defaultBlock.variables[varNdx].inter… in isValid()
282 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_IN || in isValid()
283 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
284 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
290 else if (m_shaderType == glu::SHADERTYPE_FRAGMENT) in isValid()
294 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && isIllegalFragmentInput(m_defaul… in isValid()
296 …faultBlock.variables[varNdx].storage == glu::STORAGE_IN && m_defaultBlock.variables[varNdx].interp… in isValid()
298 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_OUT && isIllegalFragmentOutput(m_defa… in isValid()
303 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
304 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_OUT || in isValid()
305 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
311 else if (m_shaderType == glu::SHADERTYPE_COMPUTE) in isValid()
315 if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN || in isValid()
316 m_defaultBlock.variables[varNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
317 m_defaultBlock.variables[varNdx].storage == glu::STORAGE_OUT || in isValid()
318 m_defaultBlock.variables[varNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
325 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_IN || in isValid()
326 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
327 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_OUT || in isValid()
328 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
334 else if (m_shaderType == glu::SHADERTYPE_GEOMETRY) in isValid()
338 if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
339 m_defaultBlock.variables[varNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
344 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && !m_defaultBlock.variables[varNd… in isValid()
349 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_IN || in isValid()
350 m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
355 …if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_IN && m_defaultBlock.inte… in isValid()
359 else if (m_shaderType == glu::SHADERTYPE_TESSELLATION_CONTROL) in isValid()
363 if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_PATCH_IN) in isValid()
366 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && !m_defaultBlock.variables[varNd… in isValid()
369 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_OUT && !m_defaultBlock.variables[varN… in isValid()
374 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_IN) in isValid()
377 …if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_IN && m_defaultBlock.inte… in isValid()
380 …if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_OUT && m_defaultBlock.int… in isValid()
384 else if (m_shaderType == glu::SHADERTYPE_TESSELLATION_EVALUATION) in isValid()
388 if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
391 …if (m_defaultBlock.variables[varNdx].storage == glu::STORAGE_IN && !m_defaultBlock.variables[varNd… in isValid()
396 if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_PATCH_OUT) in isValid()
399 …if (m_defaultBlock.interfaceBlocks[interfaceNdx].storage == glu::STORAGE_IN && m_defaultBlock.inte… in isValid()
417 static void collectStructPtrs (std::set<const glu::StructType*>& dst, const glu::VarType& type) in collectStructPtrs()
434 std::set<const glu::StructType*> structTypes; in ~Program()
446 …for (std::set<const glu::StructType*>::iterator it = structTypes.begin(); it != structTypes.end();… in ~Program()
455 Shader* Program::addShader (glu::ShaderType type, glu::GLSLVersion version) in addShader()
457 DE_ASSERT(type < glu::SHADERTYPE_LAST); in addShader()
485 glu::ShaderType Program::getFirstStage (void) const in getFirstStage()
498 return glu::SHADERTYPE_LAST; in getFirstStage()
503 glu::ShaderType Program::getLastStage (void) const in getLastStage()
516 return glu::SHADERTYPE_LAST; in getLastStage()
521 bool Program::hasStage (glu::ShaderType stage) const in hasStage()
573 …const bool isOpenGLES = (m_shaders.empty()) ? (false) : (glu::glslVersionIsES(m_shaders[0]->getV… in isValid()
597 case glu::SHADERTYPE_COMPUTE: computePresent = true; break; in isValid()
598 case glu::SHADERTYPE_VERTEX: vertexPresent = true; break; in isValid()
599 case glu::SHADERTYPE_FRAGMENT: fragmentPresent = true; break; in isValid()
600 case glu::SHADERTYPE_TESSELLATION_CONTROL: tessControlPresent = true; break; in isValid()
601 case glu::SHADERTYPE_TESSELLATION_EVALUATION: tessEvalPresent = true; break; in isValid()
602 case glu::SHADERTYPE_GEOMETRY: geometryPresent = true; break; in isValid()
641 …chFilter::createShaderTypeStorageFilter(getProgramTransformFeedbackStage(this), glu::STORAGE_OUT))) in isValid()