Home
last modified time | relevance | path

Searched refs:glu (Results 26 - 50 of 1516) sorted by relevance

12345678910>>...61

/third_party/vk-gl-cts/modules/gles31/functional/
H A Des31fProgramInterfaceQueryTests.cpp56 static int getTypeSize (glu::DataType type) in getTypeSize()
58 if (type == glu::TYPE_FLOAT) in getTypeSize()
60 else if (type == glu::TYPE_INT || type == glu::TYPE_UINT) in getTypeSize()
62 else if (type == glu::TYPE_BOOL) in getTypeSize()
69 static int getVarTypeSize (const glu::VarType& type) in getVarTypeSize()
72 return glu::getDataTypeScalarSize(type.getBasicType()) * getTypeSize(glu::getDataTypeScalarType(type.getBasicType())); in getVarTypeSize()
82 if (type.getArraySize() == glu::VarType::UNSIZED_ARRAY) in getVarTypeSize()
164 static glu
[all...]
H A Des31fNegativeShaderStorageTests.cpp41 void verifyProgram(NegativeTestContext& ctx, glu::ProgramSources sources) in verifyProgram()
44 const glu::ShaderProgram program (ctx.getRenderContext(), sources); in verifyProgram()
71 glu::ShaderType getGLUShaderType (glw::GLenum glShaderType) in getGLUShaderType()
75 case GL_VERTEX_SHADER: return glu::SHADERTYPE_VERTEX; in getGLUShaderType()
76 case GL_FRAGMENT_SHADER: return glu::SHADERTYPE_FRAGMENT; in getGLUShaderType()
77 case GL_TESS_CONTROL_SHADER: return glu::SHADERTYPE_TESSELLATION_CONTROL; in getGLUShaderType()
78 case GL_TESS_EVALUATION_SHADER: return glu::SHADERTYPE_TESSELLATION_EVALUATION; in getGLUShaderType()
79 case GL_GEOMETRY_SHADER: return glu::SHADERTYPE_GEOMETRY; in getGLUShaderType()
80 case GL_COMPUTE_SHADER: return glu::SHADERTYPE_COMPUTE; in getGLUShaderType()
83 return glu in getGLUShaderType()
[all...]
H A Des31fShaderIntegerFunctionTests.cpp71 const glu::VarType& type;
74 VarValue (const glu::VarType& type_, const void* value_) : type(type_), value(value_) {} in VarValue()
81 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
82 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
83 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
86 str << glu::getDataTypeName(basicType) << "("; in operator <<()
95 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
96 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<()
97 case glu in operator <<()
[all...]
H A Des31fProgramStateQueryTests.cpp68 return contextSupports(ctxType, glu::ApiType::es(3, 2)) || in checkSupport()
69 contextSupports(ctxType, glu::ApiType::core(4, 5)); in checkSupport()
75 const glu::GLSLVersion glslVersion = glu::getContextTypeGLSLVersion(ctxType); in specializeShader()
81 { "GLSL_VERSION_DECL", glu::getGLSLVersionDeclaration(glslVersion) }, in specializeShader()
147 glu::CallLogWrapper gl (m_context.getRenderContext().getFunctions(), m_testCtx.getLog()); in iterate()
154 glu::ShaderProgram program (m_context.getRenderContext(), glu::ProgramSources() in iterate()
155 << glu::VertexSource(specializeShader(m_context, s_vtxFragTemplate)) in iterate()
156 << glu in iterate()
[all...]
H A Des31fNegativeAtomicCounterTests.cpp58 static const glu::ShaderType s_shaders[] =
60 glu::SHADERTYPE_VERTEX,
61 glu::SHADERTYPE_FRAGMENT,
62 glu::SHADERTYPE_GEOMETRY,
63 glu::SHADERTYPE_TESSELLATION_CONTROL,
64 glu::SHADERTYPE_TESSELLATION_EVALUATION,
65 glu::SHADERTYPE_COMPUTE
68 std::string genShaderSource (NegativeTestContext& ctx, TestCase test, glu::ShaderType type) in genShaderSource()
70 DE_ASSERT(test < TESTCASE_LAST && type < glu::SHADERTYPE_LAST); in genShaderSource()
77 shader << getGLSLVersionDeclaration(glu in genShaderSource()
[all...]
H A Des31fShaderUniformIntegerFunctionTests.cpp45 UniformIntegerFunctionCase (Context& context, const char* description, int inputValue, glu::Precision precision, glu::ShaderType shaderType);
60 glu::ShaderType m_shaderType;
66 static std::string getCaseName (glu::Precision precision, glu::ShaderType shaderType);
68 UniformIntegerFunctionCase::UniformIntegerFunctionCase(Context& context, const char* description, int inputValue, glu::Precision precision, glu::ShaderType shaderType) in UniformIntegerFunctionCase()
75 m_spec.version = glu::GLSL_VERSION_310_ES; in UniformIntegerFunctionCase()
78 glu::VarType varType(glu in UniformIntegerFunctionCase()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/
H A DvktSSBOLayoutTests.cpp61 using glu::VarType;
62 using glu::StructType;
96 glu::VarType generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unusedArrayOk);
198 const glu::VarType& lastType = lastVar.getType(); in generateBlock()
199 const bool isUnsizedArr = lastType.isArrayType() && (lastType.getArraySize() == glu::VarType::UNSIZED_ARRAY); in generateBlock()
237 const glu::VarType type = generateType(rnd, 0, 0, true, isLastMember && (m_features & FEATURE_UNSIZED_ARRAYS)); in generateBufferVar()
248 glu::VarType RandomSSBOLayoutCase::generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unsizedArrayOk) in generateType()
260 const glu::VarType elementType = generateType(rnd, structDepth, arrayDepth + 1, childArrayOk, false); in generateType()
261 return glu::VarType(elementType, glu in generateType()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ssbo/
H A DvktSSBOLayoutTests.cpp61 using glu::VarType;
62 using glu::StructType;
96 glu::VarType generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unusedArrayOk);
198 const glu::VarType& lastType = lastVar.getType(); in generateBlock()
199 const bool isUnsizedArr = lastType.isArrayType() && (lastType.getArraySize() == glu::VarType::UNSIZED_ARRAY); in generateBlock()
237 const glu::VarType type = generateType(rnd, 0, 0, true, isLastMember && (m_features & FEATURE_UNSIZED_ARRAYS)); in generateBufferVar()
248 glu::VarType RandomSSBOLayoutCase::generateType (de::Random& rnd, int structDepth, int arrayDepth, bool arrayOk, bool unsizedArrayOk) in generateType()
260 const glu::VarType elementType = generateType(rnd, structDepth, arrayDepth + 1, childArrayOk, false); in generateType()
261 return glu::VarType(elementType, glu in generateType()
[all...]
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fTransformFeedbackTests.cpp98 Varying (const char* name_, const glu::VarType& type_, Interpolation interp_) in Varying()
106 glu::VarType type; //!< Variable type.
120 Attribute (const std::string& name_, const glu::VarType& type_, int offset_) in Attribute()
128 glu::VarType type;
149 glu::VarType type;
184 glu::StructType* createStruct (const char* name);
185 void addVarying (const char* name, const glu::VarType& type, Interpolation interp);
188 const vector<glu::StructType*>& getStructs (void) const { return m_structs; } in getStructs()
197 vector<glu::StructType*> m_structs;
210 for (vector<glu in ~ProgramSpec()
[all...]
H A Des3fShaderApiTests.cpp77 const char* getSimpleShaderSource (const glu::ShaderType shaderType) in getSimpleShaderSource()
96 case glu::SHADERTYPE_VERTEX: in getSimpleShaderSource()
98 case glu::SHADERTYPE_FRAGMENT: in getSimpleShaderSource()
107 void setShaderSources (glu::Shader& shader, const ShaderSources& sources) in setShaderSources()
148 void queryShaderInfo (glu::RenderContext& renderCtx, deUint32 shader, glu::ShaderInfo& info) in queryShaderInfo()
188 void drawWithProgram (glu::RenderContext& renderCtx, deUint32 program) in drawWithProgram()
204 glu::VertexArrayBinding vertexArrays[] = in drawWithProgram()
206 glu::va::Float("a_position", 4, 4, 0, &position[0]) in drawWithProgram()
208 glu in drawWithProgram()
[all...]
H A Des3fDefaultVertexAttributeTests.cpp84 virtual tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const = 0;
101 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
135 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
169 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
203 tcu::Vec4 load (glu::CallLogWrapper& gl, int index, const tcu::Vec4& v) const \
241 AttributeCase (Context& ctx, const char* name, const char* desc, const char* funcName, bool normalizing, bool useNegative, glu::DataType dataType);
244 static AttributeCase* create (Context& ctx, glu::DataType dataType);
252 glu::DataType getTargetType (void) const;
261 const glu::DataType m_dataType;
263 glu
[all...]
H A Des3fShaderPackingFunctionTests.cpp72 ShaderPackingFunctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType);
79 glu::ShaderType m_shaderType;
88 ShaderPackingFunctionCase::ShaderPackingFunctionCase (Context& context, const char* name, const char* description, glu::ShaderType shaderType) in ShaderPackingFunctionCase()
93 m_spec.version = glu::GLSL_VERSION_300_ES; in ShaderPackingFunctionCase()
123 PackSnorm2x16Case (Context& context, glu::ShaderType shaderType, glu::Precision precision) in PackSnorm2x16Case()
127 m_spec.inputs.push_back(Symbol("in0", glu::VarType(glu::TYPE_FLOAT_VEC2, precision))); in PackSnorm2x16Case()
128 m_spec.outputs.push_back(Symbol("out0", glu::VarType(glu in PackSnorm2x16Case()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/
H A DvktUniformBlockCase.cpp76 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType()
172 stream << entry.name << " { type = " << glu::getDataTypeName(entry.type) in operator <<()
321 int getDataTypeByteSize (glu::DataType type) in getDataTypeByteSize()
323 if (deInRange32(type, glu::TYPE_UINT8, glu::TYPE_UINT8_VEC4) || deInRange32(type, glu::TYPE_INT8, glu::TYPE_INT8_VEC4)) in getDataTypeByteSize()
325 return glu::getDataTypeScalarSize(type)*(int)sizeof(deUint8); in getDataTypeByteSize()
327 if (deInRange32(type, glu::TYPE_UINT16, glu in getDataTypeByteSize()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ubo/
H A DvktUniformBlockCase.cpp76 VarType::VarType (glu::DataType basicType, deUint32 flags) in VarType()
172 stream << entry.name << " { type = " << glu::getDataTypeName(entry.type) in operator <<()
321 int getDataTypeByteSize (glu::DataType type) in getDataTypeByteSize()
323 if (deInRange32(type, glu::TYPE_UINT8, glu::TYPE_UINT8_VEC4) || deInRange32(type, glu::TYPE_INT8, glu::TYPE_INT8_VEC4)) in getDataTypeByteSize()
325 return glu::getDataTypeScalarSize(type)*(int)sizeof(deUint8); in getDataTypeByteSize()
327 if (deInRange32(type, glu::TYPE_UINT16, glu in getDataTypeByteSize()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory_model/
H A DvktMemoryModelSharedLayout.cpp156 var.topLevelArraySize = var.type.getArraySize() == glu::VarType::UNSIZED_ARRAY ? 0 : var.type.getArraySize(); in generateSharedMemoryVar()
161 glu::VarType RandomSharedLayoutCase::generateType (de::Random &rnd, int typeDepth, bool arrayOk) in generateType()
168 vector<glu::VarType> memberTypes; in generateType()
176 de::SharedPtr<glu::StructType> structType = m_interface.allocStruct(name); in generateType()
182 return glu::VarType(structType.get()); in generateType()
188 const glu::VarType elementType = generateType(rnd, typeDepth - 1, childArrayOk); in generateType()
190 return glu::VarType(elementType, arrayLength); in generateType()
198 vector<glu::DataType> typeCandidates; in generateType()
201 typeCandidates.push_back(glu::TYPE_UINT16); in generateType()
202 typeCandidates.push_back(glu in generateType()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory_model/
H A DvktMemoryModelSharedLayout.cpp156 var.topLevelArraySize = var.type.getArraySize() == glu::VarType::UNSIZED_ARRAY ? 0 : var.type.getArraySize(); in generateSharedMemoryVar()
161 glu::VarType RandomSharedLayoutCase::generateType (de::Random &rnd, int typeDepth, bool arrayOk) in generateType()
168 vector<glu::VarType> memberTypes; in generateType()
176 de::SharedPtr<glu::StructType> structType = m_interface.allocStruct(name); in generateType()
182 return glu::VarType(structType.get()); in generateType()
188 const glu::VarType elementType = generateType(rnd, typeDepth - 1, childArrayOk); in generateType()
190 return glu::VarType(elementType, arrayLength); in generateType()
198 vector<glu::DataType> typeCandidates; in generateType()
201 typeCandidates.push_back(glu::TYPE_UINT16); in generateType()
202 typeCandidates.push_back(glu in generateType()
[all...]
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fShaderApiTests.cpp72 const char* getSimpleShaderSource (const glu::ShaderType shaderType) in getSimpleShaderSource()
79 case glu::SHADERTYPE_VERTEX: in getSimpleShaderSource()
81 case glu::SHADERTYPE_FRAGMENT: in getSimpleShaderSource()
90 void setShaderSources (glu::Shader& shader, const ShaderSources& sources) in setShaderSources()
131 void queryShaderInfo (glu::RenderContext& renderCtx, deUint32 shader, glu::ShaderInfo& info) in queryShaderInfo()
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
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcShaderMacroTests.cpp39 ExecutorTestCase(deqp::Context& context, const char* name, glu::ShaderType shaderType, const ShaderSpec& shaderSpec,
45 glu::ShaderType m_shaderType;
50 ExecutorTestCase::ExecutorTestCase(deqp::Context& context, const char* name, glu::ShaderType shaderType, in ExecutorTestCase()
109 glu::ContextType contextType = m_context.getRenderContext().getType(); in init()
112 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in init()
114 shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(glu::TYPE_INT, glu::PRECISION_HIGHP))); in init()
116 std::vector<glu::ShaderType> shaderTypes; in init()
117 shaderTypes.push_back(glu in init()
[all...]
H A DglcShaderRenderCase.hpp40 namespace glu namespace
48 } // glu
106 TextureBinding(const glu::Texture2D* tex2D, const tcu::Sampler& sampler);
107 TextureBinding(const glu::TextureCube* texCube, const tcu::Sampler& sampler);
108 TextureBinding(const glu::Texture2DArray* tex2DArray, const tcu::Sampler& sampler);
109 TextureBinding(const glu::Texture3D* tex3D, const tcu::Sampler& sampler);
110 TextureBinding(const glu::TextureCubeArray* texCubeArray, const tcu::Sampler& sampler);
114 void setTexture(const glu::Texture2D* tex2D);
115 void setTexture(const glu::TextureCube* texCube);
116 void setTexture(const glu
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/transform_feedback/
H A DvktTransformFeedbackFuzzLayoutTests.cpp94 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), FIELD_UNASSIGNED); // First member is unused. in BlockSingleStructCase()
95 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_VEC3, PRECISION_HIGH), 2)); in BlockSingleStructCase()
96 typeS.addMember("c", VarType(glu::TYPE_FLOAT_MAT3, PRECISION_MEDIUM)); in BlockSingleStructCase()
122 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), FIELD_UNASSIGNED); in BlockSingleStructArrayCase()
123 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT2, PRECISION_MEDIUM), 2)); in BlockSingleStructArrayCase()
124 typeS.addMember("c", VarType(glu::TYPE_FLOAT, PRECISION_HIGH)); in BlockSingleStructArrayCase()
127 block.addInterfaceMember(InterfaceBlockMember("u", VarType(glu::TYPE_UINT, PRECISION_LOW))); in BlockSingleStructArrayCase()
129 block.addInterfaceMember(InterfaceBlockMember("v", VarType(glu::TYPE_FLOAT_VEC4, PRECISION_MEDIUM))); in BlockSingleStructArrayCase()
152 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH)); in BlockSingleNestedStructCase()
153 typeS.addMember("b", VarType(VarType(glu in BlockSingleNestedStructCase()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/transform_feedback/
H A DvktTransformFeedbackFuzzLayoutTests.cpp96 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), FIELD_UNASSIGNED); // First member is unused. in BlockSingleStructCase()
97 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_VEC3, PRECISION_HIGH), 2)); in BlockSingleStructCase()
98 typeS.addMember("c", VarType(glu::TYPE_FLOAT_MAT3, PRECISION_MEDIUM)); in BlockSingleStructCase()
125 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH), FIELD_UNASSIGNED); in BlockSingleStructArrayCase()
126 typeS.addMember("b", VarType(VarType(glu::TYPE_FLOAT_MAT2, PRECISION_MEDIUM), 2)); in BlockSingleStructArrayCase()
127 typeS.addMember("c", VarType(glu::TYPE_FLOAT, PRECISION_HIGH)); in BlockSingleStructArrayCase()
130 block.addInterfaceMember(InterfaceBlockMember("u", VarType(glu::TYPE_UINT, PRECISION_LOW))); in BlockSingleStructArrayCase()
132 block.addInterfaceMember(InterfaceBlockMember("v", VarType(glu::TYPE_FLOAT_VEC4, PRECISION_MEDIUM))); in BlockSingleStructArrayCase()
156 typeS.addMember("a", VarType(glu::TYPE_INT_VEC3, PRECISION_HIGH)); in BlockSingleNestedStructCase()
157 typeS.addMember("b", VarType(VarType(glu in BlockSingleNestedStructCase()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
H A DvktShaderIntegerFunctionTests.cpp73 const glu::VarType& type;
76 VarValue (const glu::VarType& type_, const void* value_) : type(type_), value(value_) {} in VarValue()
83 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
84 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
85 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
88 str << glu::getDataTypeName(basicType) << "("; in operator <<()
97 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
98 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<()
99 case glu in operator <<()
[all...]
H A DvktShaderExecutor.cpp77 static VkFormat getAttributeFormat(const glu::DataType dataType);
104 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit()
106 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit()
108 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit()
113 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit()
119 case glu::TYPE_FLOAT_MAT2: in packFloat16Bit()
122 case glu::TYPE_FLOAT_MAT2X3: in packFloat16Bit()
126 case glu::TYPE_FLOAT_MAT2X4: in packFloat16Bit()
130 case glu::TYPE_FLOAT_MAT3X2: in packFloat16Bit()
134 case glu in packFloat16Bit()
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
H A DvktShaderIntegerFunctionTests.cpp73 const glu::VarType& type;
76 VarValue (const glu::VarType& type_, const void* value_) : type(type_), value(value_) {} in VarValue()
83 const glu::DataType basicType = varValue.type.getBasicType(); in operator <<()
84 const glu::DataType scalarType = glu::getDataTypeScalarType(basicType); in operator <<()
85 const int numComponents = glu::getDataTypeScalarSize(basicType); in operator <<()
88 str << glu::getDataTypeName(basicType) << "("; in operator <<()
97 case glu::TYPE_FLOAT: str << HexFloat(((const float*)varValue.value)[compNdx]); break; in operator <<()
98 case glu::TYPE_INT: str << ((const deInt32*)varValue.value)[compNdx]; break; in operator <<()
99 case glu in operator <<()
[all...]
H A DvktShaderExecutor.cpp77 static VkFormat getAttributeFormat(const glu::DataType dataType);
104 if(glu::isDataTypeFloatType(symIter->varType.getBasicType())) in packFloat16Bit()
106 if(glu::isDataTypeVector(symIter->varType.getBasicType())) in packFloat16Bit()
108 for(int i = 0; i < glu::getDataTypeScalarSize(symIter->varType.getBasicType()); i++) in packFloat16Bit()
113 else if (glu::isDataTypeMatrix(symIter->varType.getBasicType())) in packFloat16Bit()
119 case glu::TYPE_FLOAT_MAT2: in packFloat16Bit()
122 case glu::TYPE_FLOAT_MAT2X3: in packFloat16Bit()
126 case glu::TYPE_FLOAT_MAT2X4: in packFloat16Bit()
130 case glu::TYPE_FLOAT_MAT3X2: in packFloat16Bit()
134 case glu in packFloat16Bit()
[all...]

Completed in 33 milliseconds

12345678910>>...61