Home
last modified time | relevance | path

Searched refs:shaderType (Results 1 – 25 of 58) sorted by relevance

123

/external/deqp/framework/opengl/
DgluShaderProgram.cpp40 Shader::Shader (const RenderContext& renderCtx, ShaderType shaderType) in Shader() argument
44 m_info.type = shaderType; in Shader()
45 m_shader = m_gl.createShader(getGLShaderType(shaderType)); in Shader()
50 Shader::Shader (const glw::Functions& gl, ShaderType shaderType) in Shader() argument
54 m_info.type = shaderType; in Shader()
55 m_shader = m_gl.createShader(getGLShaderType(shaderType)); in Shader()
327 for (int shaderType = 0; shaderType < SHADERTYPE_LAST; shaderType++) in init() local
329 for (int shaderNdx = 0; shaderNdx < (int)sources.sources[shaderType].size(); ++shaderNdx) in init()
331 const char* source = sources.sources[shaderType][shaderNdx].c_str(); in init()
332 const int length = (int)sources.sources[shaderType][shaderNdx].size(); in init()
[all …]
DgluShaderProgram.hpp75 Shader (const glw::Functions& gl, ShaderType shaderType);
76 Shader (const RenderContext& renderCtx, ShaderType shaderType);
184 …bool hasShader (glu::ShaderType shaderType) const { return !m_shaders[shaderType].emp… in hasShader()
185 …int getNumShaders (glu::ShaderType shaderType) const { return (int)m_shaders[shaderTy… in getNumShaders()
186 …erInfo& getShaderInfo (glu::ShaderType shaderType, int shaderNdx = 0) const { return m_shaders… in getShaderInfo() argument
200 deUint32 getGLShaderType (ShaderType shaderType);
201 deUint32 getGLShaderTypeBit (ShaderType shaderType);
202 qpShaderType getLogShaderType (ShaderType shaderType);
250 ShaderType shaderType; member
253 ShaderSource (void) : shaderType(SHADERTYPE_LAST) {} in ShaderSource()
[all …]
DgluES3PlusWrapperContext.cpp274 static void translateShaderSource (deUint32 shaderType, std::ostream& dst, const std::string& src, … in translateShaderSource() argument
289 if (shaderType == GL_VERTEX_SHADER) in translateShaderSource()
298 else if (shaderType == GL_TESS_CONTROL_SHADER) in translateShaderSource()
311 else if (shaderType == GL_TESS_EVALUATION_SHADER) in translateShaderSource()
324 else if (shaderType == GL_GEOMETRY_SHADER) in translateShaderSource()
338 if (shaderType == GL_TESS_CONTROL_SHADER) in translateShaderSource()
410 static std::string translateShaderSources (deUint32 shaderType, deInt32 count, const char* const* s… in translateShaderSources() argument
421 translateShaderSource(shaderType, srcOut, srcIn.str(), filteredExtensions, version); in translateShaderSources()
434 deInt32 shaderType = GL_NONE; in shaderSource() local
435 context->gl.getShaderiv(shader, GL_SHADER_TYPE, &shaderType); in shaderSource()
[all …]
/external/deqp/modules/gles2/functional/
Des2fShaderApiTests.cpp72 const char* getSimpleShaderSource (const glu::ShaderType shaderType) in getSimpleShaderSource() argument
77 switch (shaderType) in getSimpleShaderSource()
176 virtual std::string next (const glu::ShaderType shaderType) = 0;
177 virtual bool finished (const glu::ShaderType shaderType) const = 0;
186 bool finished (const glu::ShaderType shaderType) const { DE_UNREF(shaderType); return false; } in finished()
188 std::string next (const glu::ShaderType shaderType);
194 std::string ConstantShaderGenerator::next (const glu::ShaderType shaderType) in next() argument
196 DE_ASSERT(shaderType == glu::SHADERTYPE_VERTEX || shaderType == glu::SHADERTYPE_FRAGMENT); in next()
200 …const std::string outputName = (shaderType == glu::SHADERTYPE_VERTEX) ? "gl_Position" : "gl_FragCo… in next()
217 bool hasShader (const glu::ShaderType shaderType);
[all …]
Des2fUniformApiTests.cpp1777 …xt& context, const char* name, const char* description, CaseShaderType shaderType, const SharedPtr…
1781 … char* const name, const char* const description, const CaseShaderType shaderType, const SharedPtr… in UniformInfoQueryCase() argument
1782 : UniformCase (context, name, description, shaderType, uniformCollection, additionalFeatures) in UniformInfoQueryCase()
1832 CaseShaderType shaderType,
1916 const CaseShaderType shaderType, in UniformValueCase() argument
1922 : UniformCase (context, name, description, shaderType, uniformCollection, in UniformValueCase()
2179 for (int shaderType = 0; shaderType < (int)CASESHADERTYPE_LAST; shaderType++) in init() local
2181 …ing name = collectionCase.namePrefix + getCaseShaderTypeName((CaseShaderType)shaderType); in init()
2184 …(new UniformInfoQueryCase(m_context, name.c_str(), "", (CaseShaderType)shaderType, uniformCollecti… in init()
2203 for (int shaderType = 0; shaderType < (int)CASESHADERTYPE_LAST; shaderType++) in init() local
[all …]
Des2fShaderIndexingTests.cpp1052 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1053 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1056 bool isVertexCase = ((ShaderType)shaderType == SHADERTYPE_VERTEX); in init()
1080 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1081 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1084 bool isVertexCase = ((ShaderType)shaderType == SHADERTYPE_VERTEX); in init()
1116 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1117 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1120 bool isVertexCase = ((ShaderType)shaderType == SHADERTYPE_VERTEX); in init()
1152 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
[all …]
/external/deqp/modules/gles3/functional/
Des3fShaderApiTests.cpp77 const char* getSimpleShaderSource (const glu::ShaderType shaderType) in getSimpleShaderSource() argument
94 switch (shaderType) in getSimpleShaderSource()
221 virtual std::string next (const glu::ShaderType shaderType) = 0;
222 virtual bool finished (const glu::ShaderType shaderType) const = 0;
231 bool finished (const glu::ShaderType shaderType) const { DE_UNREF(shaderType); return false; } in finished()
233 std::string next (const glu::ShaderType shaderType);
239 std::string ConstantShaderGenerator::next (const glu::ShaderType shaderType) in next() argument
241 DE_ASSERT(shaderType == glu::SHADERTYPE_VERTEX || shaderType == glu::SHADERTYPE_FRAGMENT); in next()
245 …const std::string outputName = (shaderType == glu::SHADERTYPE_VERTEX) ? "gl_Position" : "o_fragCol… in next()
251 if (shaderType == glu::SHADERTYPE_FRAGMENT) in next()
[all …]
Des3fShaderCommonFunctionTests.cpp167 …ionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType);
191 …ctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType) in CommonFunctionCase() argument
193 , m_shaderType (shaderType) in CommonFunctionCase()
403 static const char* getShaderTypePostfix (glu::ShaderType shaderType) in getShaderTypePostfix() argument
410 DE_ASSERT(de::inBounds<int>(shaderType, 0, DE_LENGTH_OF_ARRAY(s_postfix))); in getShaderTypePostfix()
411 return s_postfix[shaderType]; in getShaderTypePostfix()
414 …etCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType) in getCommonFuncCaseName() argument
416 …lu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePostfix(shaderType); in getCommonFuncCaseName()
422 …se (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType) in AbsCase() argument
423 …ionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "abs", shaderType) in AbsCase()
[all …]
Des3fShaderPackingFunctionTests.cpp72 …tionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType);
88 …ctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType) in ShaderPackingFunctionCase() argument
90 , m_shaderType (shaderType) in ShaderPackingFunctionCase()
133 static const char* getShaderTypePostfix (glu::ShaderType shaderType) in getShaderTypePostfix() argument
140 DE_ASSERT(de::inBounds<int>(shaderType, 0, DE_LENGTH_OF_ARRAY(s_postfix))); in getShaderTypePostfix()
141 return s_postfix[shaderType]; in getShaderTypePostfix()
147 PackSnorm2x16Case (Context& context, glu::ShaderType shaderType, glu::Precision precision) in PackSnorm2x16Case() argument
148 …tPrecisionPostfix(precision) + getShaderTypePostfix(shaderType)).c_str(), "packSnorm2x16", shaderT… in PackSnorm2x16Case()
251 UnpackSnorm2x16Case (Context& context, glu::ShaderType shaderType) in UnpackSnorm2x16Case() argument
252 … (string("unpacksnorm2x16") + getShaderTypePostfix(shaderType)).c_str(), "unpackSnorm2x16", shader… in UnpackSnorm2x16Case()
[all …]
Des3fShaderIndexingTests.cpp1017 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1018 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1021 bool isVertexCase = ((ShaderType)shaderType == SHADERTYPE_VERTEX); in init()
1045 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1046 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1049 bool isVertexCase = ((ShaderType)shaderType == SHADERTYPE_VERTEX); in init()
1081 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1082 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1085 bool isVertexCase = ((ShaderType)shaderType == SHADERTYPE_VERTEX); in init()
1123 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
[all …]
Des3fUniformApiTests.cpp2196 …xt& context, const char* name, const char* description, CaseShaderType shaderType, const SharedPtr…
2232 … char* const name, const char* const description, const CaseShaderType shaderType, const SharedPtr… in UniformInfoQueryCase() argument
2233 : UniformCase (context, name, description, shaderType, uniformCollection, additionalFeatures) in UniformInfoQueryCase()
2334 CaseShaderType shaderType,
2418 const CaseShaderType shaderType, in UniformValueCase() argument
2424 : UniformCase (context, name, description, shaderType, uniformCollection, in UniformValueCase()
2700 for (int shaderType = 0; shaderType < (int)CASESHADERTYPE_LAST; shaderType++) in init() local
2702 …ing name = collectionCase.namePrefix + getCaseShaderTypeName((CaseShaderType)shaderType); in init()
2705 …(new UniformInfoQueryCase(m_context, name.c_str(), "", (CaseShaderType)shaderType, uniformCollecti… in init()
2726 for (int shaderType = 0; shaderType < (int)CASESHADERTYPE_LAST; shaderType++) in init() local
[all …]
Des3fShaderLoopTests.cpp1181 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1182 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1183 bool isVertexCase = (shaderType == SHADERTYPE_VERTEX); in init()
1204 ShaderType shaderType = s_shaderTypes[shaderTypeNdx]; in init() local
1205 const char* shaderTypeName = getShaderTypeName(shaderType); in init()
1206 bool isVertexCase = (shaderType == SHADERTYPE_VERTEX); in init()
/external/deqp/modules/gles3/stress/
Des3sLongShaderTests.cpp82 const char* getConstShaderSource (const glu::ShaderType shaderType) in getConstShaderSource() argument
84 DE_ASSERT(shaderType == glu::SHADERTYPE_VERTEX || shaderType == glu::SHADERTYPE_FRAGMENT); in getConstShaderSource()
86 if (shaderType == glu::SHADERTYPE_VERTEX) in getConstShaderSource()
162 glu::ShaderType shaderType; member
169 : shaderType (shaderTypeInit) in LongShaderSpec()
214 …DE_ASSERT(m_spec.shaderType == glu::SHADERTYPE_VERTEX || m_spec.shaderType == glu::SHADERTYPE_FRAG… in LongShaderGenerator()
222 return glu::ShaderSource(m_spec.shaderType, m_source); in getSource()
233 if (m_spec.shaderType == glu::SHADERTYPE_FRAGMENT) in generateSource()
274 return (m_spec.shaderType == glu::SHADERTYPE_VERTEX) ? "gl_Position" : "o_fragColor"; in getShaderOutputName()
369 , m_shaderType (caseSpec.shaderType) in LongShaderCompileStressCase()
[all …]
/external/deqp/modules/gles31/functional/
Des31fShaderIntegerFunctionTests.cpp111 inline int getShaderUintBitCount (glu::ShaderType shaderType, glu::Precision precision) in getShaderUintBitCount() argument
114 DE_UNREF(shaderType); in getShaderUintBitCount()
137 static void generateRandomInputData (de::Random& rnd, glu::ShaderType shaderType, glu::DataType dat… in generateRandomInputData() argument
140 const deUint32 integerLength = (deUint32)getShaderUintBitCount(shaderType, precision); in generateRandomInputData()
165 …ionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType);
189 …ctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType) in IntegerFunctionCase() argument
191 , m_shaderType (shaderType) in IntegerFunctionCase()
335 static const char* getShaderTypePostfix (glu::ShaderType shaderType) in getShaderTypePostfix() argument
346 DE_ASSERT(de::inBounds<int>(shaderType, 0, DE_LENGTH_OF_ARRAY(s_postfix))); in getShaderTypePostfix()
347 return s_postfix[shaderType]; in getShaderTypePostfix()
[all …]
Des31fShaderCommonFunctionTests.cpp240 …ionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType);
264 …ctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType) in CommonFunctionCase() argument
266 , m_shaderType (shaderType) in CommonFunctionCase()
476 static const char* getShaderTypePostfix (glu::ShaderType shaderType) in getShaderTypePostfix() argument
487 DE_ASSERT(de::inBounds<int>(shaderType, 0, DE_LENGTH_OF_ARRAY(s_postfix))); in getShaderTypePostfix()
488 return s_postfix[shaderType]; in getShaderTypePostfix()
491 …etCommonFuncCaseName (glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType) in getCommonFuncCaseName() argument
493 …lu::getDataTypeName(baseType)) + getPrecisionPostfix(precision) + getShaderTypePostfix(shaderType); in getCommonFuncCaseName()
499 …se (Context& context, glu::DataType baseType, glu::Precision precision, glu::ShaderType shaderType) in AbsCase() argument
500 …ionCase(context, getCommonFuncCaseName(baseType, precision, shaderType).c_str(), "abs", shaderType) in AbsCase()
[all …]
Des31fLayoutBindingTests.cpp85 std::string generateVertexShader (ShaderType shaderType, const std::string& shaderUniformDeclaratio… in generateVertexShader() argument
94 switch (shaderType) in generateVertexShader()
125 std::string generateFragmentShader (ShaderType shaderType, const std::string& shaderUniformDeclarat… in generateFragmentShader() argument
135 switch (shaderType) in generateFragmentShader()
212 ShaderType shaderType,
257 ShaderType shaderType, in LayoutBindingRenderCase() argument
266 , m_shaderType (shaderType) in LayoutBindingRenderCase()
585 ShaderType shaderType,
622 ShaderType shaderType, in LayoutBindingNegativeCase() argument
632 , m_shaderType (shaderType) in LayoutBindingNegativeCase()
[all …]
Des31fShaderBuiltinConstantTests.cpp136 bool verifyInShaderType (glu::ShaderType shaderType, DataType reference);
166 glu::ShaderType shaderType, in createGetConstantExecutor() argument
183 return createExecutor(renderCtx, shaderType, shaderSpec); in createGetConstantExecutor()
199 bool ShaderBuiltinConstantCase<DataType>::verifyInShaderType (glu::ShaderType shaderType, DataType … in verifyInShaderType() argument
203 …haderExecutor (createGetConstantExecutor(m_context.getRenderContext(), shaderType, glu::dataTypeOf… in verifyInShaderType()
237 for (int shaderType = 0; shaderType < glu::SHADERTYPE_LAST; shaderType++) in iterate() local
239 if ((SHADER_TYPES & (1<<shaderType)) != 0) in iterate()
241 const char* const shaderTypeName = glu::getShaderTypeName(glu::ShaderType(shaderType)); in iterate()
246 const bool isOk = verifyInShaderType(glu::ShaderType(shaderType), reference); in iterate()
Des31fShaderPackingFunctionTests.cpp72 …tionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType);
88 …ctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType) in ShaderPackingFunctionCase() argument
90 , m_shaderType (shaderType) in ShaderPackingFunctionCase()
133 static const char* getShaderTypePostfix (glu::ShaderType shaderType) in getShaderTypePostfix() argument
144 DE_ASSERT(de::inBounds<int>(shaderType, 0, DE_LENGTH_OF_ARRAY(s_postfix))); in getShaderTypePostfix()
145 return s_postfix[shaderType]; in getShaderTypePostfix()
151 PackSnorm2x16Case (Context& context, glu::ShaderType shaderType, glu::Precision precision) in PackSnorm2x16Case() argument
152 …tPrecisionPostfix(precision) + getShaderTypePostfix(shaderType)).c_str(), "packSnorm2x16", shaderT… in PackSnorm2x16Case()
255 UnpackSnorm2x16Case (Context& context, glu::ShaderType shaderType) in UnpackSnorm2x16Case() argument
256 … (string("unpacksnorm2x16") + getShaderTypePostfix(shaderType)).c_str(), "unpackSnorm2x16", shader… in UnpackSnorm2x16Case()
[all …]
Des31fProgramInterfaceDefinitionUtil.cpp392 glu::ShaderType shaderType, in writeVariableReadAccumulateExpression() argument
426 shaderType, in writeVariableReadAccumulateExpression()
439 shaderType, in writeVariableReadAccumulateExpression()
450 shaderType, in writeVariableReadAccumulateExpression()
459 if (shaderType == glu::SHADERTYPE_GEOMETRY) in writeVariableReadAccumulateExpression()
465 shaderType, in writeVariableReadAccumulateExpression()
470 else if (shaderType == glu::SHADERTYPE_TESSELLATION_CONTROL) in writeVariableReadAccumulateExpression()
476 shaderType, in writeVariableReadAccumulateExpression()
481 else if (shaderType == glu::SHADERTYPE_TESSELLATION_EVALUATION) in writeVariableReadAccumulateExpression()
490 shaderType, in writeVariableReadAccumulateExpression()
[all …]
Des31fOpaqueTypeIndexingTests.cpp315 …t& context, const char* name, const char* description, glu::ShaderType shaderType, glu::DataType s…
332 …t& context, const char* name, const char* description, glu::ShaderType shaderType, glu::DataType s… in SamplerIndexingCase() argument
334 , m_shaderType (shaderType) in SamplerIndexingCase()
650 … const char* description, BlockType blockType, IndexExprType indexExprType, ShaderType shaderType);
669 …, const char* description, BlockType blockType, IndexExprType indexExprType, ShaderType shaderType) in BlockArrayIndexingCase() argument
673 , m_shaderType (shaderType) in BlockArrayIndexingCase()
868 …xt, const char* name, const char* description, IndexExprType indexExprType, ShaderType shaderType);
884 …ext, const char* name, const char* description, IndexExprType indexExprType, ShaderType shaderType) in AtomicCounterIndexingCase() argument
887 , m_shaderType (shaderType) in AtomicCounterIndexingCase()
1208 const ShaderType shaderType = shaderTypes[shaderTypeNdx].type; in init() local
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/shader/
DShader.java99 ShaderType shaderType; field in Shader.ShaderSource
108 this.shaderType = type; in ShaderSource()
115 this.shaderType = ss.shaderType; in ShaderSource()
127 oc.write(shaderType, "shaderType", null); in write()
135 shaderType = ic.readEnum("shaderType", ShaderType.class, null); in read()
150 return shaderType; in getType()
195 + shaderType.name()+"]"; in toString()
/external/deqp/modules/gles31/scripts/
Dgen-uniform-blocks.py53 def __init__(self, name, shaderType, source, valid): argument
55 self.shaderType = shaderType
60 if self.shaderType == FRAGMENT:
75 elif self.shaderType == VERTEX:
/external/deqp/modules/gles3/scripts/
Dgen-uniform-blocks.py53 def __init__(self, name, shaderType, source, valid): argument
55 self.shaderType = shaderType
60 if self.shaderType == FRAGMENT:
75 elif self.shaderType == VERTEX:
/external/deqp/executor/tools/
DxeExtractShaderPrograms.cpp53 static const char* getShaderTypeSuffix (const xe::ri::Shader::ShaderType shaderType) in getShaderTypeSuffix() argument
55 switch (shaderType) in getShaderTypeSuffix()
75 const string shaderPath = basePath + "." + getShaderTypeSuffix(shader.shaderType); in writeShaderProgram()
/external/skia/src/gpu/
DGrDrawTargetCaps.h79 const PrecisionInfo& getFloatShaderPrecisionInfo(GrShaderType shaderType, in getFloatShaderPrecisionInfo() argument
81 return fFloatPrecisions[shaderType][precision]; in getFloatShaderPrecisionInfo()

123