Home
last modified time | relevance | path

Searched refs:shaderSpec (Results 1 – 25 of 41) sorted by relevance

12

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmWorkgroupMemoryTests.cpp273 map<string, string> shaderSpec; in addComputeWorkgroupMemoryTests() local
275 shaderSpec["sizeBytes"] = "8"; in addComputeWorkgroupMemoryTests()
276 shaderSpec["dataTypeDecl"] = "%f64 = OpTypeFloat 64"; in addComputeWorkgroupMemoryTests()
277 shaderSpec["dataType"] = "f64"; in addComputeWorkgroupMemoryTests()
278 shaderSpec["capabilities"] = "OpCapability Float64\n"; in addComputeWorkgroupMemoryTests()
290 spec.assembly = shaderSource.specialize(shaderSpec); in addComputeWorkgroupMemoryTests()
303 map<string, string> shaderSpec; in addComputeWorkgroupMemoryTests() local
305 shaderSpec["sizeBytes"] = "4"; in addComputeWorkgroupMemoryTests()
306 shaderSpec["dataTypeDecl"] = "%f32 = OpTypeFloat 32"; in addComputeWorkgroupMemoryTests()
307 shaderSpec["dataType"] = "f32"; in addComputeWorkgroupMemoryTests()
[all …]
DvktSpvAsmVariableInitTests.cpp134 map<string, string> shaderSpec; in addComputeVariableInitPrivateTest() local
180 shaderSpec["type"] = type; in addComputeVariableInitPrivateTest()
182shaderSpec["arrayStrideDecoration"] = "OpDecorate %outputArray ArrayStride " + de::toString(numCom… in addComputeVariableInitPrivateTest()
183 shaderSpec["count"] = de::toString(numElements); in addComputeVariableInitPrivateTest()
184 shaderSpec["constData"] = type + "_1"; in addComputeVariableInitPrivateTest()
189 shaderSpec["variableInit"] = " %f1 = OpVariable %dataPtr Private %" + type + "_1\n"; in addComputeVariableInitPrivateTest()
190 shaderSpec["dataLoad"] = " %outputData = OpLoad %" + type + " %f1\n"; in addComputeVariableInitPrivateTest()
195 shaderSpec["capabilities"] = " OpCapability VariablePointers\n"; in addComputeVariableInitPrivateTest()
196 shaderSpec["extensions"] = " OpExtension \"SPV_KHR_variable_pointers\"\n"; in addComputeVariableInitPrivateTest()
197shaderSpec["variableInit"] = " %dataPtrPtr = OpTypePointer Private %_ptr_" + type + "_global… in addComputeVariableInitPrivateTest()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/spirv_assembly/
DvktSpvAsmWorkgroupMemoryTests.cpp273 map<string, string> shaderSpec; in addComputeWorkgroupMemoryTests() local
275 shaderSpec["sizeBytes"] = "8"; in addComputeWorkgroupMemoryTests()
276 shaderSpec["dataTypeDecl"] = "%f64 = OpTypeFloat 64"; in addComputeWorkgroupMemoryTests()
277 shaderSpec["dataType"] = "f64"; in addComputeWorkgroupMemoryTests()
278 shaderSpec["capabilities"] = "OpCapability Float64\n"; in addComputeWorkgroupMemoryTests()
290 spec.assembly = shaderSource.specialize(shaderSpec); in addComputeWorkgroupMemoryTests()
303 map<string, string> shaderSpec; in addComputeWorkgroupMemoryTests() local
305 shaderSpec["sizeBytes"] = "4"; in addComputeWorkgroupMemoryTests()
306 shaderSpec["dataTypeDecl"] = "%f32 = OpTypeFloat 32"; in addComputeWorkgroupMemoryTests()
307 shaderSpec["dataType"] = "f32"; in addComputeWorkgroupMemoryTests()
[all …]
DvktSpvAsmVariableInitTests.cpp134 map<string, string> shaderSpec; in addComputeVariableInitPrivateTest() local
180 shaderSpec["type"] = type; in addComputeVariableInitPrivateTest()
182shaderSpec["arrayStrideDecoration"] = "OpDecorate %outputArray ArrayStride " + de::toString(numCom… in addComputeVariableInitPrivateTest()
183 shaderSpec["count"] = de::toString(numElements); in addComputeVariableInitPrivateTest()
184 shaderSpec["constData"] = type + "_1"; in addComputeVariableInitPrivateTest()
189 shaderSpec["variableInit"] = " %f1 = OpVariable %dataPtr Private %" + type + "_1\n"; in addComputeVariableInitPrivateTest()
190 shaderSpec["dataLoad"] = " %outputData = OpLoad %" + type + " %f1\n"; in addComputeVariableInitPrivateTest()
195 shaderSpec["capabilities"] = " OpCapability VariablePointers\n"; in addComputeVariableInitPrivateTest()
196 shaderSpec["extensions"] = " OpExtension \"SPV_KHR_variable_pointers\"\n"; in addComputeVariableInitPrivateTest()
197shaderSpec["variableInit"] = " %dataPtrPtr = OpTypePointer Private %_ptr_" + type + "_global… in addComputeVariableInitPrivateTest()
[all …]
/third_party/vk-gl-cts/modules/glshared/
DglsShaderExecUtil.cpp94 static std::string generateVertexShader (const ShaderSpec& shaderSpec, const std::string& inputPref… in generateVertexShader() argument
96 const bool usesInout = glu::glslVersionUsesInOutQualifiers(shaderSpec.version); in generateVertexShader()
103 src << glu::getGLSLVersionDeclaration(shaderSpec.version) << "\n"; in generateVertexShader()
105 if (!shaderSpec.globalDeclarations.empty()) in generateVertexShader()
106 src << shaderSpec.globalDeclarations << "\n"; in generateVertexShader()
110 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generateVertexShader()
113 …for (vector<Symbol>::const_iterator output = shaderSpec.outputs.begin(); output != shaderSpec.outp… in generateVertexShader()
136 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generateVertexShader()
140 …for (vector<Symbol>::const_iterator output = shaderSpec.outputs.begin(); output != shaderSpec.outp… in generateVertexShader()
145 std::istringstream opSrc (shaderSpec.source); in generateVertexShader()
[all …]
DglsShaderExecUtil.hpp91 ShaderExecutor (const glu::RenderContext& renderCtx, const ShaderSpec& shaderSpec);
103 …or (const glu::RenderContext& renderCtx, glu::ShaderType shaderType, const ShaderSpec& shaderSpec);
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
DvktShaderExecutor.cpp171 static std::string generatePassthroughVertexShader (const ShaderSpec& shaderSpec, const char* input… in generatePassthroughVertexShader() argument
176 src << glu::getGLSLVersionDeclaration(shaderSpec.glslVersion) << "\n"; in generatePassthroughVertexShader()
178 if (!shaderSpec.globalDeclarations.empty()) in generatePassthroughVertexShader()
179 src << shaderSpec.globalDeclarations << "\n"; in generatePassthroughVertexShader()
183 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generatePassthroughVertexShader()
194 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generatePassthroughVertexShader()
202 static std::string generateVertexShader (const ShaderSpec& shaderSpec, const std::string& inputPref… in generateVertexShader() argument
208 src << glu::getGLSLVersionDeclaration(shaderSpec.glslVersion) << "\n"; in generateVertexShader()
210 if (!shaderSpec.globalDeclarations.empty()) in generateVertexShader()
211 src << shaderSpec.globalDeclarations << "\n"; in generateVertexShader()
[all …]
DvktShaderExecutor.hpp105 ShaderExecutor (Context& context, const ShaderSpec& shaderSpec) in ShaderExecutor() argument
107 , m_shaderSpec (shaderSpec) in ShaderExecutor()
119 void generateSources (glu::ShaderType shaderType, const ShaderSpec& shaderSpec, vk::SourceColle…
120 …utor (Context& context, glu::ShaderType shaderType, const ShaderSpec& shaderSpec, vk::VkDescripto…
DvktShaderClockTests.cpp97 ShaderClockTestInstance(Context& context, const ShaderSpec& shaderSpec, glu::ShaderType shaderType) in ShaderClockTestInstance() argument
99 , m_executor(createExecutor(m_context, shaderType, shaderSpec)) in ShaderClockTestInstance()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktShaderExecutor.cpp171 static std::string generatePassthroughVertexShader (const ShaderSpec& shaderSpec, const char* input… in generatePassthroughVertexShader() argument
176 src << glu::getGLSLVersionDeclaration(shaderSpec.glslVersion) << "\n"; in generatePassthroughVertexShader()
178 if (!shaderSpec.globalDeclarations.empty()) in generatePassthroughVertexShader()
179 src << shaderSpec.globalDeclarations << "\n"; in generatePassthroughVertexShader()
183 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generatePassthroughVertexShader()
194 …for (vector<Symbol>::const_iterator input = shaderSpec.inputs.begin(); input != shaderSpec.inputs.… in generatePassthroughVertexShader()
202 static std::string generateVertexShader (const ShaderSpec& shaderSpec, const std::string& inputPref… in generateVertexShader() argument
208 src << glu::getGLSLVersionDeclaration(shaderSpec.glslVersion) << "\n"; in generateVertexShader()
210 if (!shaderSpec.globalDeclarations.empty()) in generateVertexShader()
211 src << shaderSpec.globalDeclarations << "\n"; in generateVertexShader()
[all …]
DvktShaderExecutor.hpp105 ShaderExecutor (Context& context, const ShaderSpec& shaderSpec) in ShaderExecutor() argument
107 , m_shaderSpec (shaderSpec) in ShaderExecutor()
119 void generateSources (glu::ShaderType shaderType, const ShaderSpec& shaderSpec, vk::SourceColle…
120 …utor (Context& context, glu::ShaderType shaderType, const ShaderSpec& shaderSpec, vk::VkDescripto…
DvktShaderClockTests.cpp97 ShaderClockTestInstance(Context& context, const ShaderSpec& shaderSpec, glu::ShaderType shaderType) in ShaderClockTestInstance() argument
99 , m_executor(createExecutor(m_context, shaderType, shaderSpec)) in ShaderClockTestInstance()
DvktOpaqueTypeIndexingTests.cpp223 const ShaderSpec& shaderSpec,
243 const ShaderSpec& shaderSpec, in OpaqueTypeIndexingTestInstance() argument
249 , m_shaderSpec (shaderSpec) in OpaqueTypeIndexingTestInstance()
639 const ShaderSpec& shaderSpec,
655 const ShaderSpec& shaderSpec, in SamplerIndexingCaseInstance() argument
660 : OpaqueTypeIndexingTestInstance (context, shaderType, shaderSpec, name, indexExprType) in SamplerIndexingCaseInstance()
1150 const ShaderSpec& shaderSpec,
1170 const ShaderSpec& shaderSpec, in BlockArrayIndexingCaseInstance() argument
1177 : OpaqueTypeIndexingTestInstance (context, shaderType, shaderSpec, name, indexExprType) in BlockArrayIndexingCaseInstance()
1549 const ShaderSpec& shaderSpec,
[all …]
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcShaderMacroTests.cpp39 …deqp::Context& context, const char* name, glu::ShaderType shaderType, const ShaderSpec& shaderSpec,
51 const ShaderSpec& shaderSpec, int expectedOutput) in ExecutorTestCase() argument
54 , m_shaderSpec(shaderSpec) in ExecutorTestCase()
111 ShaderSpec shaderSpec; in init() local
112 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in init()
113 shaderSpec.source = fragmentPrecisionShaderTemplate; in init()
114 shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(glu::TYPE_INT, glu::PRECISION_HIGHP))); in init()
122 shaderSpec.version = glu::GLSL_VERSION_320_ES; in init()
129 shaderSpec.version = glu::GLSL_VERSION_310_ES; in init()
140 addChild(new ExecutorTestCase(m_context, caseName.c_str(), shaderType, shaderSpec, 1)); in init()
DglcShaderConstExprTests.cpp76 …deqp::Context& context, const char* name, glu::ShaderType shaderType, const ShaderSpec& shaderSpec,
91 const ShaderSpec& shaderSpec, OutputType expectedOutput) in ExecutorTestCase() argument
94 , m_shaderSpec(shaderSpec) in ExecutorTestCase()
185 ShaderSpec shaderSpec; in createTestCasesForAllShaderTypes() local
186 shaderSpec.version = glu::getContextTypeGLSLVersion(contextType); in createTestCasesForAllShaderTypes()
187 shaderSpec.source = params.source; in createTestCasesForAllShaderTypes()
188 shaderSpec.outputs.push_back(Symbol("out0", glu::VarType(params.outType, glu::PRECISION_HIGHP))); in createTestCasesForAllShaderTypes()
204 shaderSpec.version = glu::GLSL_VERSION_320_ES; in createTestCasesForAllShaderTypes()
211 shaderSpec.version = glu::GLSL_VERSION_310_ES; in createTestCasesForAllShaderTypes()
223 shaderSpec.globalDeclarations += "precision highp float;\n"; in createTestCasesForAllShaderTypes()
[all …]
/third_party/skia/third_party/externals/angle2/src/compiler/preprocessor/
DPreprocessor.h28 PreprocessorSettings(ShShaderSpec shaderSpec) in PreprocessorSettings()
29 : maxMacroExpansionDepth(1000), shaderSpec(shaderSpec) in PreprocessorSettings()
35 ShShaderSpec shaderSpec; member
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fShaderBuiltinConstantTests.cpp206 ShaderSpec shaderSpec; in createGetConstantExecutor() local
208 shaderSpec.version = glu::getContextTypeGLSLVersion(renderCtx.getType()); in createGetConstantExecutor()
209 shaderSpec.source = string("result = ") + varName + ";\n"; in createGetConstantExecutor()
211 shaderSpec.outputs.push_back(Symbol("result", glu::VarType(dataType, glu::PRECISION_HIGHP))); in createGetConstantExecutor()
214 shaderSpec.globalDeclarations = "#extension " + extName + " : require\n"; in createGetConstantExecutor()
216 return createExecutor(renderCtx, shaderType, shaderSpec); in createGetConstantExecutor()
Des31fOpaqueTypeIndexingTests.cpp504 ShaderSpec shaderSpec; in iterate() local
510 …getShaderSpec(&shaderSpec, numSamplers, numLookups, &lookupIndices[0], m_context.getRenderContext(… in iterate()
532 …derExecutorPtr executor (createExecutor(m_context.getRenderContext(), m_shaderType, shaderSpec)); in iterate()
857 ShaderSpec shaderSpec; in iterate() local
866 getShaderSpec(&shaderSpec, numInstances, numReads, &readIndices[0], m_context.getRenderContext()); in iterate()
874 ShaderExecutorPtr shaderExecutor (createExecutor(renderCtx, m_shaderType, shaderSpec)); in iterate()
1090 ShaderSpec shaderSpec; in iterate() local
1096 getShaderSpec(&shaderSpec, m_numCounters, numOps, &opIndices[0], m_context.getRenderContext()); in iterate()
1100 ShaderExecutorPtr shaderExecutor (createExecutor(renderCtx, m_shaderType, shaderSpec)); in iterate()
/third_party/skia/third_party/externals/angle2/src/compiler/translator/
DSymbolTable.cpp466 const TSymbol *SymbolRule::get(ShShaderSpec shaderSpec, in get() argument
472 if (IsDesktopGLSpec(shaderSpec) != (mIsDesktop == 1)) in get()
490 const TSymbol *FindMangledBuiltIn(ShShaderSpec shaderSpec, in FindMangledBuiltIn() argument
502 rules[ruleIndex].get(shaderSpec, shaderVersion, shaderType, resources, symbolTable); in FindMangledBuiltIn()
513 ShShaderSpec shaderSpec, in matches() argument
524 if (IsDesktopGLSpec(shaderSpec)) in matches()
DSymbolTable.h94 const TSymbol *get(ShShaderSpec shaderSpec,
169 const TSymbol *FindMangledBuiltIn(ShShaderSpec shaderSpec,
190 ShShaderSpec shaderSpec,
/third_party/skia/third_party/externals/angle2/src/tests/preprocessor_tests/
DPreprocessorTest.h23 PreprocessorTest(ShShaderSpec shaderSpec) in PreprocessorTest() argument
24 : mPreprocessor(&mDiagnostics, &mDirectiveHandler, pp::PreprocessorSettings(shaderSpec)) in PreprocessorTest()
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fShaderOperatorTests.cpp1283 ShaderDataSpec shaderSpec; local
1296 shaderSpec.numInputs = 0;
1297 shaderSpec.precision = isBoolCase ? PRECISION_LAST : (Precision)precision;
1298 shaderSpec.output = outDataType;
1299 shaderSpec.resultScale = funcInfo.resultScale;
1300 shaderSpec.resultBias = funcInfo.resultBias;
1367shaderSpec.inputs[shaderSpec.numInputs++] = ShaderValue(curInDataType, v.rangeMin, v.rangeMax);
1379 …Case(m_context, name.c_str(), desc.c_str(), isVertexCase, evalFunc, shaderOp.c_str(), shaderSpec));
1435 ShaderDataSpec shaderSpec; local
1441 shaderSpec.numInputs = 3;
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
DvktShaderRenderOperatorTests.cpp1758 ShaderDataSpec shaderSpec; in init() local
1759 shaderSpec.numInputs = 0; in init()
1760 shaderSpec.precision = isBoolCase ? PRECISION_LAST : (Precision)precision; in init()
1761 shaderSpec.output = outDataType; in init()
1762 shaderSpec.resultScale = funcInfo.resultScale; in init()
1763 shaderSpec.resultBias = funcInfo.resultBias; in init()
1764 shaderSpec.referenceScale = funcInfo.referenceScale; in init()
1765 shaderSpec.referenceBias = funcInfo.referenceBias; in init()
1840shaderSpec.inputs[shaderSpec.numInputs++] = ShaderValue(curInDataType, v.rangeMin, v.rangeMax); in init()
1852 …OperatorCase(m_testCtx, name.c_str(), desc.c_str(), isVertexCase, evalFunc, shaderOp, shaderSpec)); in init()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderOperatorTests.cpp1758 ShaderDataSpec shaderSpec; in init() local
1759 shaderSpec.numInputs = 0; in init()
1760 shaderSpec.precision = isBoolCase ? PRECISION_LAST : (Precision)precision; in init()
1761 shaderSpec.output = outDataType; in init()
1762 shaderSpec.resultScale = funcInfo.resultScale; in init()
1763 shaderSpec.resultBias = funcInfo.resultBias; in init()
1764 shaderSpec.referenceScale = funcInfo.referenceScale; in init()
1765 shaderSpec.referenceBias = funcInfo.referenceBias; in init()
1840shaderSpec.inputs[shaderSpec.numInputs++] = ShaderValue(curInDataType, v.rangeMin, v.rangeMax); in init()
1852 …OperatorCase(m_testCtx, name.c_str(), desc.c_str(), isVertexCase, evalFunc, shaderOp, shaderSpec)); in init()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fShaderOperatorTests.cpp2145 ShaderDataSpec shaderSpec; local
2158 shaderSpec.numInputs = 0;
2159 shaderSpec.precision = isBoolCase ? PRECISION_LAST : (Precision)precision;
2160 shaderSpec.output = outDataType;
2161 shaderSpec.resultScale = funcInfo.resultScale;
2162 shaderSpec.resultBias = funcInfo.resultBias;
2163 shaderSpec.referenceScale = funcInfo.referenceScale;
2164 shaderSpec.referenceBias = funcInfo.referenceBias;
2239shaderSpec.inputs[shaderSpec.numInputs++] = ShaderValue(curInDataType, v.rangeMin, v.rangeMax);
2251 …OperatorCase(m_context, name.c_str(), desc.c_str(), isVertexCase, evalFunc, shaderOp, shaderSpec));
[all …]

12