Lines Matching full:glslang

46 #include "./../glslang/Include/ShHandle.h"
47 #include "./../glslang/Public/ShaderLang.h"
62 #include "../glslang/OSDependent/osinclude.h"
65 #include "glslang/build_info.h"
142 std::vector<std::unique_ptr<glslang::TWorkItem>> WorkItems;
148 // Parse either a .conf file provided by the user or the default from glslang::DefaultTBuiltInResou…
153 Resources = glslang::DefaultTBuiltInResource; in ProcessConfigFile()
157 glslang::DecodeResourceLimits(&Resources, configString); in ProcessConfigFile()
181 glslang::EShClient Client = glslang::EShClientNone; // will stay EShClientNone if only validating
182 glslang::EShTargetClientVersion ClientVersion; // not valid until Client is set
183 glslang::EShTargetLanguage TargetLanguage = glslang::EShTargetNone;
184 glslang::EShTargetLanguageVersion TargetVersion; // not valid until TargetLanguage is set
194 std::array<std::array<unsigned int, EShLangCount>, glslang::EResCount> baseBinding;
195 std::array<std::array<TPerSetBaseBinding, EShLangCount>, glslang::EResCount> baseBindingForSet;
317 void ProcessBindingBase(int& argc, char**& argv, glslang::TResourceType res) in ProcessBindingBase()
405 void ProcessArguments(std::vector<std::unique_ptr<glslang::TWorkItem>>& workItems, int argc, char* … in ProcessArguments()
407 for (int res = 0; res < glslang::EResCount; ++res) in ProcessArguments()
441 if (Client == glslang::EShClientNone) in ProcessArguments()
442 ClientVersion = glslang::EShTargetVulkan_1_0; in ProcessArguments()
443 Client = glslang::EShClientVulkan; in ProcessArguments()
451 if (Client == glslang::EShClientNone) in ProcessArguments()
452 ClientVersion = glslang::EShTargetOpenGL_450; in ProcessArguments()
453 Client = glslang::EShClientOpenGL; in ProcessArguments()
575 ProcessBindingBase(argc, argv, glslang::EResImage); in ProcessArguments()
579 ProcessBindingBase(argc, argv, glslang::EResSampler); in ProcessArguments()
583 ProcessBindingBase(argc, argv, glslang::EResUav); in ProcessArguments()
587 ProcessBindingBase(argc, argv, glslang::EResTexture); in ProcessArguments()
594 ProcessBindingBase(argc, argv, glslang::EResUbo); in ProcessArguments()
598 ProcessBindingBase(argc, argv, glslang::EResSsbo); in ProcessArguments()
619 ClientVersion = glslang::EShTargetVulkan_1_0; in ProcessArguments()
622 ClientVersion = glslang::EShTargetVulkan_1_1; in ProcessArguments()
625 ClientVersion = glslang::EShTargetVulkan_1_2; in ProcessArguments()
628 ClientVersion = glslang::EShTargetOpenGL_450; in ProcessArguments()
630 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
631 TargetVersion = glslang::EShTargetSpv_1_0; in ProcessArguments()
633 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
634 TargetVersion = glslang::EShTargetSpv_1_1; in ProcessArguments()
636 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
637 TargetVersion = glslang::EShTargetSpv_1_2; in ProcessArguments()
639 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
640 TargetVersion = glslang::EShTargetSpv_1_3; in ProcessArguments()
642 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
643 TargetVersion = glslang::EShTargetSpv_1_4; in ProcessArguments()
645 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
646 TargetVersion = glslang::EShTargetSpv_1_5; in ProcessArguments()
817 … workItems.push_back(std::unique_ptr<glslang::TWorkItem>(new glslang::TWorkItem(name))); in ProcessArguments()
847 if ((Options & EOptionReadHlsl) && (Client == glslang::EShClientOpenGL)) { in ProcessArguments()
852 if (TargetLanguage == glslang::EShTargetNone) { in ProcessArguments()
854 case glslang::EShTargetVulkan_1_0: in ProcessArguments()
855 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
856 TargetVersion = glslang::EShTargetSpv_1_0; in ProcessArguments()
858 case glslang::EShTargetVulkan_1_1: in ProcessArguments()
859 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
860 TargetVersion = glslang::EShTargetSpv_1_3; in ProcessArguments()
862 case glslang::EShTargetVulkan_1_2: in ProcessArguments()
863 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
864 TargetVersion = glslang::EShTargetSpv_1_5; in ProcessArguments()
866 case glslang::EShTargetOpenGL_450: in ProcessArguments()
867 TargetLanguage = glslang::EShTargetSpv; in ProcessArguments()
868 TargetVersion = glslang::EShTargetSpv_1_0; in ProcessArguments()
874 if (TargetLanguage != glslang::EShTargetNone && Client == glslang::EShClientNone) in ProcessArguments()
918 void CompileShaders(glslang::TWorklist& worklist) in CompileShaders()
923 glslang::TWorkItem* workItem; in CompileShaders()
1014 std::list<glslang::TShader*> shaders; in CompileAndLinkShaderUnits()
1023 glslang::TProgram& program = *new glslang::TProgram; in CompileAndLinkShaderUnits()
1026 glslang::TShader* shader = new glslang::TShader(compUnit.stage); in CompileAndLinkShaderUnits()
1042 for (int r = 0; r < glslang::EResCount; ++r) { in CompileAndLinkShaderUnits()
1043 const glslang::TResourceType res = glslang::TResourceType(r); in CompileAndLinkShaderUnits()
1085 shader->setEnvInput((Options & EOptionReadHlsl) ? glslang::EShSourceHlsl in CompileAndLinkShaderUnits()
1086 : glslang::EShSourceGlsl, in CompileAndLinkShaderUnits()
1171 glslang::SpvOptions spvOptions; in CompileAndLinkShaderUnits()
1180glslang::GlslangToSpv(*program.getIntermediate((EShLanguage)stage), spirv, &logger, &spvOptions); in CompileAndLinkShaderUnits()
1187glslang::OutputSpvHex(spirv, GetBinaryName((EShLanguage)stage), variableName); in CompileAndLinkShaderUnits()
1189 glslang::OutputSpvBin(spirv, GetBinaryName((EShLanguage)stage)); in CompileAndLinkShaderUnits()
1225 void CompileAndLinkShaderFiles(glslang::TWorklist& Worklist) in CompileAndLinkShaderFiles()
1246 glslang::TWorkItem* workItem; in CompileAndLinkShaderFiles()
1265 glslang::OS_DumpMemoryCounters(); in CompileAndLinkShaderFiles()
1276 glslang::TWorklist workList; in singleMain()
1277 …std::for_each(WorkItems.begin(), WorkItems.end(), [&workList](std::unique_ptr<glslang::TWorkItem>&… in singleMain()
1284 printf("%s", glslang::GetDefaultTBuiltInResourceString().c_str()); in singleMain()
1291 …printf("%d:%d.%d.%d%s\n", glslang::GetSpirvGeneratorVersion(), GLSLANG_VERSION_MAJOR, GLSLANG_VERS… in singleMain()
1296 …printf("Glslang Version: %d:%d.%d.%d%s\n", glslang::GetSpirvGeneratorVersion(), GLSLANG_VERSION_MA… in singleMain()
1298 printf("ESSL Version: %s\n", glslang::GetEsslVersionString()); in singleMain()
1299 printf("GLSL Version: %s\n", glslang::GetGlslVersionString()); in singleMain()
1301 glslang::GetSpirvVersion(spirvVersion); in singleMain()
1304 printf("Khronos Tool ID %d\n", glslang::GetKhronosToolId()); in singleMain()
1305 printf("SPIR-V Generator Version %d\n", glslang::GetSpirvGeneratorVersion()); in singleMain()
1317 WorkItems.push_back(std::unique_ptr<glslang::TWorkItem>{new glslang::TWorkItem("stdin")}); in singleMain()
1332 glslang::InitializeProcess(); in singleMain()
1333 glslang::InitializeProcess(); // also test reference counting of users in singleMain()
1334 glslang::InitializeProcess(); // also test reference counting of users in singleMain()
1335 glslang::FinalizeProcess(); // also test reference counting of users in singleMain()
1336 glslang::FinalizeProcess(); // also test reference counting of users in singleMain()
1338 glslang::FinalizeProcess(); in singleMain()
1389 glslang::OS_DumpMemoryCounters(); in main()
1393 glslang::OS_DumpMemoryCounters(); in main()
1519 glslang::OS_DumpMemoryCounters(); in CompileFile()
1597 " -i intermediate tree (glslang AST) is printed out\n" in usage()