/third_party/glslang/gtests/ |
H A D | Common.cpp | 18 #include "glslang/Include/Common.h" 23 EXPECT_EQ(false, glslang::IsPow2(-5)); in TEST() 24 EXPECT_EQ(false, glslang::IsPow2(-1)); in TEST() 25 EXPECT_EQ(false, glslang::IsPow2(INT_MIN)); in TEST() 26 EXPECT_EQ(false, glslang::IsPow2(int64_t(-10))); in TEST() 30 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST() 31 EXPECT_EQ(false, glslang::IsPow2(0u)); in TEST() 32 EXPECT_EQ(false, glslang::IsPow2(0)); in TEST() 33 EXPECT_EQ(false, glslang::IsPow2(uint64_t(0))); in TEST() 34 EXPECT_EQ(false, glslang in TEST() [all...] |
H A D | GlslMapIO.FromFile.cpp | 42 #include "glslang/MachineIndependent/iomapper.h" 43 #include "glslang/MachineIndependent/reflection.h" 57 return symbol.getType()->getBasicType() == glslang::EbtBlock ? std::string(symbol.getType()->getTypeName().c_str()) : symbol.name; in interfaceName() 60 bool verifyIOMapping(std::string& linkingError, glslang::TProgram& program) { in verifyIOMapping() 78 std::vector<glslang::TReflection> stageReflections; in verifyIOMapping() 91 std::map<std::string, const glslang::TObjectReflection*> pipeOut; in verifyIOMapping() 94 const glslang::TObjectReflection& out = it->getPipeOutput(i); in verifyIOMapping() 126 baseLoc += glslang::TIntermediate::computeTypeLocationSize(*(*outIt.second->getType()->getStruct())[j].type, EShLangVertex); in verifyIOMapping() 153 baseLoc += glslang::TIntermediate::computeTypeLocationSize(*(*in.getType()->getStruct())[j].type, EShLangVertex); in verifyIOMapping() 164 std::map<std::string, const glslang in verifyIOMapping() [all...] |
H A D | VkRelaxed.FromFile.cpp | 42 #include "glslang/MachineIndependent/iomapper.h" 43 #include "glslang/MachineIndependent/reflection.h" 57 return symbol.getType()->getBasicType() == glslang::EbtBlock ? std::string(symbol.getType()->getTypeName().c_str()) : symbol.name; in interfaceName() 60 bool verifyIOMapping(std::string& linkingError, glslang::TProgram& program) { in verifyIOMapping() 78 std::vector<glslang::TReflection> stageReflections; in verifyIOMapping() 91 std::map<std::string, const glslang::TObjectReflection*> pipeOut; in verifyIOMapping() 94 const glslang::TObjectReflection& out = it->getPipeOutput(i); in verifyIOMapping() 119 std::map<std::string, const glslang::TObjectReflection*> programUniforms; in verifyIOMapping() 121 const glslang::TObjectReflection& uniform = program.getUniform(i); in verifyIOMapping() 128 std::map<std::string, glslang in verifyIOMapping() [all...] |
H A D | Spv.FromFile.cpp | 92 Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P() 103 glslang::EShTargetVulkan_1_3, glslang::EShTargetSpv_1_0, Target::Spv); in TEST_P() 109 Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P() 119 glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P() 128 Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_1, glslang in TEST_P() [all...] |
H A D | Hlsl.FromFile.cpp | 76 Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P() 83 Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_1, glslang::EShTargetSpv_1_3, in TEST_P() 90 glslang::EShTargetVulkan_1_2, glslang::EShTargetSpv_1_4, Target::BothASTAndSpv, true, in TEST_P() 97 Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_3, glslang::EShTargetSpv_1_6, in TEST_P() 113 Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang in TEST_P() [all...] |
H A D | TestFixture.h | 51 #include "glslang/Include/Types.h" 52 #include "glslang/Public/ResourceLimits.h" 53 #include "glslang/Public/ShaderLang.h" 100 // Base class for glslang integration tests. It contains many handy utility-like 172 // A struct for holding all the information returned by glslang compilation 186 bool compile(glslang::TShader* shader, const std::string& code, in compile() 215 glslang::EShTargetClientVersion clientTargetVersion, in compileAndLink() 216 glslang::EShTargetLanguageVersion targetLanguageVersion, in compileAndLink() 226 glslang::TShader shader(stage); in compileAndLink() 238 shader.setEnvInput((controls & EShMsgReadHlsl) ? glslang in compileAndLink() [all...] |
H A D | AST.FromFile.cpp | 49 Source::GLSL, Semantics::OpenGL, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P() 57 Source::GLSL, Semantics::OpenGL, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
|
/third_party/glslang/glslang/MachineIndependent/ |
H A D | glslang_tab.cpp | 70 #line 44 "MachineIndependent/glslang.y" 93 using namespace glslang; 726 #line 111 "MachineIndependent/glslang.y" 4538 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, glslang::TParseContext* pParseContext) in yy_symbol_value_print() 4557 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep, glslang::TParseContext* pParseContext) in yy_symbol_print() 4596 int yyrule, glslang::TParseContext* pParseContext) in yy_reduce_print() 4925 yysymbol_kind_t yykind, YYSTYPE *yyvaluep, glslang::TParseContext* pParseContext) 4948 yyparse (glslang::TParseContext* pParseContext) 5205 #line 355 "MachineIndependent/glslang.y" 5213 #line 361 "MachineIndependent/glslang [all...] |
H A D | propagateNoContraction.cpp | 36 // Visit the nodes in the glslang intermediate tree representation to 69 typedef std::unordered_multimap<ObjectAccessChain, glslang::TIntermOperator*> NodeMapping; 71 typedef std::unordered_map<glslang::TIntermTyped*, ObjectAccessChain> AccessChainMapping; 76 typedef std::unordered_set<glslang::TIntermBranch*> ReturnBranchNodeSet; 80 bool isPreciseObjectNode(glslang::TIntermTyped* node) in isPreciseObjectNode() 86 bool isDereferenceOperation(glslang::TOperator op) in isDereferenceOperation() 89 case glslang::EOpIndexDirect: in isDereferenceOperation() 90 case glslang::EOpIndexDirectStruct: in isDereferenceOperation() 91 case glslang::EOpIndexIndirect: in isDereferenceOperation() 92 case glslang in isDereferenceOperation() 782 namespace glslang { global() namespace [all...] |
H A D | glslang_tab.cpp.h | 527 #line 72 "MachineIndependent/glslang.y" 530 glslang::TSourceLoc loc; 532 glslang::TString *string; 540 glslang::TSymbol* symbol; 543 glslang::TSourceLoc loc; 544 glslang::TOperator op; 547 glslang::TIntermNodePair nodePair; 548 glslang::TIntermTyped* intermTypedNode; 549 glslang::TAttributes* attributes; 550 glslang [all...] |
H A D | iomapper.h | 49 namespace glslang { namespace 131 struct TDefaultIoResolverBase : public glslang::TIoMapResolver { 150 virtual TResourceType getResourceType(const glslang::TType& type) = 0; 189 static int getLayoutSet(const glslang::TType& type) { in getLayoutSet() 196 static bool isSamplerType(const glslang::TType& type) { in isSamplerType() 197 return type.getBasicType() == glslang::EbtSampler && type.getSampler().isPureSampler(); in isSamplerType() 200 static bool isTextureType(const glslang::TType& type) { in isTextureType() 201 return (type.getBasicType() == glslang::EbtSampler && in isTextureType() 205 static bool isUboType(const glslang::TType& type) { in isUboType() 209 static bool isImageType(const glslang [all...] |
/third_party/glslang/SPIRV/ |
H A D | GlslangToSpv.cpp | 39 // Visit the nodes in the glslang intermediate tree representation to 59 #include "../glslang/MachineIndependent/localintermediate.h" 60 #include "../glslang/MachineIndependent/SymbolTable.h" 61 #include "../glslang/Include/Common.h" 64 #include "glslang/build_info.h" 118 // The main holder of information for translating glslang to SPIR-V. 122 class TGlslangToSpvTraverser : public glslang::TIntermTraverser { 124 TGlslangToSpvTraverser(unsigned int spvVersion, const glslang::TIntermediate*, spv::SpvBuildLogger* logger, 125 glslang::SpvOptions& options); 128 bool visitAggregate(glslang 10076 namespace glslang { global() namespace [all...] |
H A D | SpvTools.h | 50 #include "glslang/MachineIndependent/localintermediate.h" 54 namespace glslang { namespace 58 // Translate glslang's view of target versioning to what SPIRV-Tools uses. 69 void SpirvToolsValidate(const glslang::TIntermediate& intermediate, std::vector<unsigned int>& spirv, 73 void SpirvToolsTransform(const glslang::TIntermediate& intermediate, std::vector<unsigned int>& spirv, 95 void SpirvToolsStripDebugInfo(const glslang::TIntermediate& intermediate, 100 } // end namespace glslang
|
/third_party/glslang/ |
H A D | Android.mk | 36 # Generate glslang/build_info.h 38 GLSLANG_BUILD_INFO_H:=$(GLSLANG_GENERATED_INCLUDEDIR)/glslang/build_info.h 62 LOCAL_SRC_FILES:=glslang/OSDependent/Unix/ossource.cpp 63 LOCAL_C_INCLUDES:=$(LOCAL_PATH) $(LOCAL_PATH)/glslang/OSDependent/Unix/ 64 LOCAL_EXPORT_C_INCLUDES:=$(LOCAL_PATH)/glslang/OSDependent/Unix/ 71 $(LOCAL_PATH)/glslang/MachineIndependent/ShaderLang.cpp: \ 74 LOCAL_MODULE:=glslang 78 glslang/CInterface/glslang_c_interface.cpp \ 79 glslang/GenericCodeGen/CodeGen.cpp \ 80 glslang/GenericCodeGe [all...] |
/third_party/glslang/glslang/CInterface/ |
H A D | glslang_c_interface.cpp | 33 #include "glslang/Include/glslang_c_interface.h" 36 #include "glslang/Public/ResourceLimits.h" 37 #include "glslang/Include/ShHandle.h" 39 #include "glslang/Include/ResourceLimits.h" 40 #include "glslang/MachineIndependent/Versions.h" 41 #include "glslang/MachineIndependent/localintermediate.h" 45 static_assert(int(GLSLANG_SOURCE_COUNT) == glslang::EShSourceCount, ""); 46 static_assert(int(GLSLANG_CLIENT_COUNT) == glslang::EShClientCount, ""); 47 static_assert(int(GLSLANG_TARGET_COUNT) == glslang::EShTargetCount, ""); 48 static_assert(int(GLSLANG_TARGET_CLIENT_VERSION_COUNT) == glslang [all...] |
/third_party/glslang/glslang/OSDependent/Web/ |
H A D | glslang.js.cpp | 45 #include "../../../glslang/Public/ShaderLang.h" 192 glslang::EShTargetLanguageVersion spirv_version, in convert_glsl_to_spirv() 213 case glslang::EShTargetSpv_1_0: in convert_glsl_to_spirv() 214 case glslang::EShTargetSpv_1_1: in convert_glsl_to_spirv() 215 case glslang::EShTargetSpv_1_2: in convert_glsl_to_spirv() 216 case glslang::EShTargetSpv_1_3: in convert_glsl_to_spirv() 217 case glslang::EShTargetSpv_1_4: in convert_glsl_to_spirv() 218 case glslang::EShTargetSpv_1_5: in convert_glsl_to_spirv() 226 glslang::InitializeProcess(); in convert_glsl_to_spirv() 230 glslang in convert_glsl_to_spirv() [all...] |
/third_party/glslang/StandAlone/ |
H A D | StandAlone.cpp | 44 #include "glslang/Public/ResourceLimits.h" 47 #include "./../glslang/Include/ShHandle.h" 48 #include "./../glslang/Public/ShaderLang.h" 49 #include "../glslang/MachineIndependent/localintermediate.h" 66 #include "../glslang/OSDependent/osinclude.h" 69 #include "glslang/build_info.h" 71 #include "glslang/glsl_intrinsic_header.h" 154 std::vector<std::unique_ptr<glslang::TWorkItem>> WorkItems; 159 // Parse either a .conf file provided by the user or the default from glslang::DefaultTBuiltInResource 193 glslang [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/ |
H A D | Util.cpp | 139 // glslang requires one-time initialization. in compileGLSLtoSPIRV() 142 GlslangProcessInitialiser() { glslang::InitializeProcess(); } in compileGLSLtoSPIRV() 143 ~GlslangProcessInitialiser() { glslang::FinalizeProcess(); } in compileGLSLtoSPIRV() 146 std::unique_ptr<glslang::TShader> glslangShader = std::make_unique<glslang::TShader>(glslLanguage); in compileGLSLtoSPIRV() 149 glslangShader->setEnvClient(glslang::EShClientVulkan, glslang::EShTargetVulkan_1_1); in compileGLSLtoSPIRV() 150 glslangShader->setEnvTarget(glslang::EShTargetSpv, glslang::EShTargetSpv_1_3); in compileGLSLtoSPIRV() 154 bool parseResult = glslangShader->parse(&glslang in compileGLSLtoSPIRV() [all...] |
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkShaderToSpirV.cpp | 35 #include "glslang/Include/InfoSink.h" 36 #include "glslang/Include/ShHandle.h" 37 #include "glslang/MachineIndependent/localintermediate.h" 38 #include "glslang/Public/ShaderLang.h" 76 glslang::InitializeProcess(); in initGlslang() 289 glslang::TShader shader (shaderStage); in compileShaderToSpirV() 290 glslang::TProgram glslangProgram; in compileShaderToSpirV() 297 shader.setEnvTarget(glslang::EshTargetSpv, (glslang::EShTargetLanguageVersion)0x10000); in compileShaderToSpirV() 300 shader.setEnvTarget(glslang in compileShaderToSpirV() [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | glslang_wrapper.cpp | 7 // A wrapper to compile GLSL strings to SPIR-V blobs. glslang here refers to the Khronos 10 // This file is separated as glslang's header contains conflicting macro definitions with ANGLE's. 15 // glslang has issues with some specific warnings. 19 // glslang's version of ShaderLang.h, not to be confused with ANGLE's. 20 #include <glslang/Public/ShaderLang.h> 22 // Other glslang includes. 41 // Run at startup to warm up glslang's internals to avoid hitches on first shader compile. 46 const TBuiltInResource builtInResources(glslang::DefaultTBuiltInResource); in Warmup() 47 glslang::TShader warmUpShader(EShLangVertex); in Warmup() 61 // Generate glslang resource [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/common/ |
H A D | glcSpirvUtils.cpp | 35 #include "glslang/MachineIndependent/localintermediate.h" 36 #include "glslang/Public/ShaderLang.h" 74 glslang::InitializeProcess(); in initGlslang() 197 glslang::EShTargetLanguageVersion getSpirvTargetVersion(SpirvVersion version) in getSpirvTargetVersion() 205 return glslang::EShTargetSpv_1_0; in getSpirvTargetVersion() 207 return glslang::EShTargetSpv_1_1; in getSpirvTargetVersion() 209 return glslang::EShTargetSpv_1_2; in getSpirvTargetVersion() 211 return glslang::EShTargetSpv_1_3; in getSpirvTargetVersion() 224 glslang::TShader shader(shaderStage); in compileGlslToSpirV() 225 glslang in compileGlslToSpirV() [all...] |
/third_party/glslang/glslang/OSDependent/Windows/ |
H A D | main.cpp | 48 if (! glslang::InitProcess()) in DllMain() 53 if (! glslang::InitThread()) in DllMain() 59 if (! glslang::DetachThread()) in DllMain() 65 glslang::DetachProcess(); in DllMain()
|
/third_party/glslang/glslang/Include/ |
H A D | intermediate.h | 55 namespace glslang { namespace 1127 } // end namespace glslang 1132 // (Put outside the glslang namespace, as it's used as part of the external interface.) 1136 POOL_ALLOCATOR_NEW_DELETE(glslang::GetThreadPoolAllocator()) 1139 virtual const glslang::TSourceLoc& getLoc() const { return loc; } in getLoc() 1140 virtual void setLoc(const glslang::TSourceLoc& l) { loc = l; } in setLoc() 1141 virtual void traverse(glslang::TIntermTraverser*) = 0; 1142 virtual glslang::TIntermTyped* getAsTyped() { return nullptr; } in getAsTyped() 1143 virtual glslang::TIntermOperator* getAsOperator() { return nullptr; } in getAsOperator() 1144 virtual glslang in getAsOperator() 1175 namespace glslang { global() namespace [all...] |
H A D | ShHandle.h | 59 TShHandleBase() { pool = new glslang::TPoolAllocator; } in TShHandleBase() 64 virtual glslang::TPoolAllocator* getPool() const { return pool; } in getPool() 66 glslang::TPoolAllocator* pool; 112 typedef glslang::TVector<TCompiler*> TCompilerList; 113 typedef glslang::TVector<TShHandleBase*> THandleList;
|
/third_party/glslang/SPIRV/CInterface/ |
H A D | spirv_c_interface.cpp | 33 #include "glslang/Include/glslang_c_interface.h" 39 static_assert(sizeof(glslang_spv_options_t) == sizeof(glslang::SpvOptions), ""); 42 glslang::TProgram* program; 96 const glslang::TIntermediate* intermediate = program->program->getIntermediate(c_shader_stage(stage)); in glslang_program_SPIRV_generate_with_options() 98 glslang::GlslangToSpv(*intermediate, program->spirv, &logger, reinterpret_cast<glslang::SpvOptions*>(spv_options)); in glslang_program_SPIRV_generate_with_options()
|