Home
last modified time | relevance | path

Searched refs:glslang (Results 1 – 25 of 281) sorted by relevance

12345678910>>...12

/third_party/glslang/glslang/
DBUILD.gn14 # external glslang src glslang build
51 sources = [ "//third_party/glslang/glslang/OSDependent/Unix/ossource.cpp" ]
53 "//third_party/glslang/glslang/OSDependent",
55 "//third_party/glslang/glslang/Include",
56 "//third_party/glslang/glslang/Public",
73 "//third_party/glslang/glslang/GenericCodeGen/CodeGen.cpp",
74 "//third_party/glslang/glslang/GenericCodeGen/Link.cpp",
78 "//third_party/glslang/glslang/Include",
79 "//third_party/glslang/glslang/Public",
97 "//third_party/glslang/glslang/HLSL/hlslAttributes.cpp",
[all …]
DCMakeLists.txt54 set_property(TARGET GenericCodeGen PROPERTY FOLDER glslang)
60 MachineIndependent/glslang.m4
61 MachineIndependent/glslang.y
135 set_property(TARGET MachineIndependent PROPERTY FOLDER glslang)
144 # glslang
165 add_library(glslang ${LIB_TYPE} ${BISON_GLSLParser_OUTPUT_SOURCE} ${GLSLANG_SOURCES} ${GLSLANG_HEAD… target
166 set_target_properties(glslang PROPERTIES
167 FOLDER glslang
171 target_link_libraries(glslang PRIVATE OGLCompiler OSDependent MachineIndependent)
172 target_include_directories(glslang PUBLIC
[all …]
DupdateGrammar38 m4 -P -DGLSLANG_WEB MachineIndependent/glslang.m4 > MachineIndependent/glslang.y
41 m4 -P MachineIndependent/glslang.m4 > MachineIndependent/glslang.y
49 bison --defines=MachineIndependent/glslang_tab.cpp.h -t MachineIndependent/glslang.y -o MachineInde…
/third_party/glslang/SPIRV/
DGlslangToSpv.cpp126 class TGlslangToSpvTraverser : public glslang::TIntermTraverser {
128 …TGlslangToSpvTraverser(unsigned int spvVersion, const glslang::TIntermediate*, spv::SpvBuildLogger…
129 glslang::SpvOptions& options);
132 bool visitAggregate(glslang::TVisit, glslang::TIntermAggregate*);
133 bool visitBinary(glslang::TVisit, glslang::TIntermBinary*);
134 void visitConstantUnion(glslang::TIntermConstantUnion*);
135 bool visitSelection(glslang::TVisit, glslang::TIntermSelection*);
136 bool visitSwitch(glslang::TVisit, glslang::TIntermSwitch*);
137 void visitSymbol(glslang::TIntermSymbol* symbol);
138 bool visitUnary(glslang::TVisit, glslang::TIntermUnary*);
[all …]
DBUILD.gn14 # external glslang src SPIRV build
49 "//third_party/glslang/SPIRV/CInterface/spirv_c_interface.cpp",
50 "//third_party/glslang/SPIRV/GlslangToSpv.cpp",
51 "//third_party/glslang/SPIRV/InReadableOrder.cpp",
52 "//third_party/glslang/SPIRV/Logger.cpp",
53 "//third_party/glslang/SPIRV/SpvBuilder.cpp",
54 "//third_party/glslang/SPIRV/SpvPostProcess.cpp",
55 "//third_party/glslang/SPIRV/SpvTools.cpp",
56 "//third_party/glslang/SPIRV/disassemble.cpp",
57 "//third_party/glslang/SPIRV/doc.cpp",
[all …]
/third_party/glslang/glslang/MachineIndependent/
DpropagateNoContraction.cpp71 typedef std::unordered_multimap<ObjectAccessChain, glslang::TIntermOperator*> NodeMapping;
73 typedef std::unordered_map<glslang::TIntermTyped*, ObjectAccessChain> AccessChainMapping;
78 typedef std::unordered_set<glslang::TIntermBranch*> ReturnBranchNodeSet;
82 bool isPreciseObjectNode(glslang::TIntermTyped* node) in isPreciseObjectNode()
88 bool isDereferenceOperation(glslang::TOperator op) in isDereferenceOperation()
91 case glslang::EOpIndexDirect: in isDereferenceOperation()
92 case glslang::EOpIndexDirectStruct: in isDereferenceOperation()
93 case glslang::EOpIndexIndirect: in isDereferenceOperation()
94 case glslang::EOpVectorSwizzle: in isDereferenceOperation()
95 case glslang::EOpMatrixSwizzle: in isDereferenceOperation()
[all …]
Dglslang_tab.cpp.h476 glslang::TSourceLoc loc;
478 glslang::TString *string;
486 glslang::TSymbol* symbol;
489 glslang::TSourceLoc loc;
490 glslang::TOperator op;
493 glslang::TIntermNodePair nodePair;
494 glslang::TIntermTyped* intermTypedNode;
495 glslang::TAttributes* attributes;
498 glslang::TPublicType type;
499 glslang::TFunction* function;
[all …]
Diomapper.h51 namespace glslang {
93 struct TDefaultIoResolverBase : public glslang::TIoMapResolver {
112 virtual TResourceType getResourceType(const glslang::TType& type) = 0;
147 static int getLayoutSet(const glslang::TType& type) { in getLayoutSet()
154 static bool isSamplerType(const glslang::TType& type) { in isSamplerType()
155 return type.getBasicType() == glslang::EbtSampler && type.getSampler().isPureSampler(); in isSamplerType()
158 static bool isTextureType(const glslang::TType& type) { in isTextureType()
159 return (type.getBasicType() == glslang::EbtSampler && in isTextureType()
163 static bool isUboType(const glslang::TType& type) { in isUboType()
167 static bool isImageType(const glslang::TType& type) { in isImageType()
[all …]
/third_party/glslang/
DAndroid.mk38 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/
85 $(LOCAL_PATH)/glslang/HLSL
92 $(LOCAL_PATH)/glslang/MachineIndependent/ShaderLang.cpp: \
95 LOCAL_MODULE:=glslang
99 glslang/GenericCodeGen/CodeGen.cpp \
100 glslang/GenericCodeGen/Link.cpp \
101 glslang/HLSL/hlslAttributes.cpp \
[all …]
DBUILD.gn34 import("build_overrides/glslang.gni")
55 out_file = "${target_gen_dir}/include/glslang/build_info.h"
124 "glslang/GenericCodeGen/CodeGen.cpp",
125 "glslang/GenericCodeGen/Link.cpp",
126 "glslang/Include/BaseTypes.h",
127 "glslang/Include/Common.h",
128 "glslang/Include/ConstantUnion.h",
129 "glslang/Include/InfoSink.h",
130 "glslang/Include/InitializeGlobals.h",
131 "glslang/Include/PoolAlloc.h",
[all …]
DBUILD.bazel55 outs = ["glslang/build_info.h"],
56 …name $(location CHANGES.md)) -i $(location build_info.h.tmpl) -o $(location glslang/build_info.h)",
80 name = "glslang",
83 "glslang/GenericCodeGen/*.cpp",
84 "glslang/HLSL/*.cpp",
85 "glslang/MachineIndependent/*.cpp",
86 "glslang/MachineIndependent/preprocessor/*.cpp",
89 "glslang/HLSL/pch.h",
90 "glslang/MachineIndependent/pch.h",
96 ["glslang/OSDependent/Windows/ossource.cpp"],
[all …]
DCHANGES.md1 # Revision history for `glslang`
12 [As scheduled](https://github.com/KhronosGroup/glslang/blob/9eef54b2513ca6b40b47b07d24f453848b65c0d…
21 * `glslang/include/revision.h`
22 * `glslang/include/revision.template`
28 the glslang build-time generated header `glslang/build_info.h`.
30 The new public API to obtain the `glslang` version is `glslang::GetVersion()`.
33 * `glslang` shared objects produced by CMake are now `SONAME` versioned using
Dlicense-checker.cfg25 "glslang/OSDependent/Web/glslang.*.js",
26 "glslang/MachineIndependent/glslang_tab.cpp",
27 "glslang/MachineIndependent/glslang_tab.cpp.h",
45 "glslang/MachineIndependent/glslang_tab.cpp",
46 "glslang/MachineIndependent/glslang_tab.cpp.h"
/third_party/glslang/glslang/CInterface/
Dglslang_c_interface.cpp44 static_assert(int(GLSLANG_SOURCE_COUNT) == glslang::EShSourceCount, "");
45 static_assert(int(GLSLANG_CLIENT_COUNT) == glslang::EShClientCount, "");
46 static_assert(int(GLSLANG_TARGET_COUNT) == glslang::EShTargetCount, "");
47 static_assert(int(GLSLANG_TARGET_CLIENT_VERSION_COUNT) == glslang::EShTargetClientVersionCount, "");
48 static_assert(int(GLSLANG_TARGET_LANGUAGE_VERSION_COUNT) == glslang::EShTargetLanguageVersionCount,…
58 glslang::TShader* shader;
63 glslang::TProgram* program;
81 class CallbackIncluder : public glslang::TShader::Includer {
84 class CallbackIncludeResult : public glslang::TShader::Includer::IncludeResult {
88 … : glslang::TShader::Includer::IncludeResult(headerName, headerData, headerLength, userData), in CallbackIncludeResult()
[all …]
/third_party/glslang/StandAlone/
DStandAlone.cpp142 std::vector<std::unique_ptr<glslang::TWorkItem>> WorkItems;
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()
[all …]
/third_party/glslang/glslang/OSDependent/Web/
Dglslang.js.cpp183 glslang::EShTargetLanguageVersion spirv_version, in convert_glsl_to_spirv()
204 case glslang::EShTargetSpv_1_0: in convert_glsl_to_spirv()
205 case glslang::EShTargetSpv_1_1: in convert_glsl_to_spirv()
206 case glslang::EShTargetSpv_1_2: in convert_glsl_to_spirv()
207 case glslang::EShTargetSpv_1_3: in convert_glsl_to_spirv()
208 case glslang::EShTargetSpv_1_4: in convert_glsl_to_spirv()
209 case glslang::EShTargetSpv_1_5: in convert_glsl_to_spirv()
217 glslang::InitializeProcess(); in convert_glsl_to_spirv()
221 glslang::TShader shader(stage); in convert_glsl_to_spirv()
223 shader.setEnvInput(glslang::EShSourceGlsl, stage, glslang::EShClientVulkan, 100); in convert_glsl_to_spirv()
[all …]
DCMakeLists.txt35 add_executable(glslang.js "glslang.js.cpp")
36 glslang_set_link_args(glslang.js)
37 target_link_libraries(glslang.js glslang SPIRV)
42 target_link_libraries(glslang.js "-Os")
45 set_target_properties(glslang.js PROPERTIES
46 OUTPUT_NAME "glslang"
48 em_link_pre_js(glslang.js "${CMAKE_CURRENT_SOURCE_DIR}/glslang.pre.js")
50 target_link_libraries(glslang.js "--llvm-lto 1")
51 target_link_libraries(glslang.js "--closure 1")
52 target_link_libraries(glslang.js "-s MODULARIZE=1")
[all …]
/third_party/glslang/gtests/
DSpv.FromFile.cpp87 … Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
94 … Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
104 glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
113 … Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_1, glslang::EShTargetSpv_1_3, in TEST_P()
120 … Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_1, glslang::EShTargetSpv_1_4, in TEST_P()
129 … Source::GLSL, Semantics::OpenGL, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
138 … Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
147 … Source::GLSL, Semantics::OpenGL, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
155 … Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
194 … Source::GLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
[all …]
DTestFixture.h185 bool compile(glslang::TShader* shader, const std::string& code,
202 (resources ? resources : &glslang::DefaultTBuiltInResource),
214 glslang::EShTargetClientVersion clientTargetVersion,
215 glslang::EShTargetLanguageVersion targetLanguageVersion,
224 glslang::TShader shader(stage);
236 shader.setEnvInput((controls & EShMsgReadHlsl) ? glslang::EShSourceHlsl
237 : glslang::EShSourceGlsl,
238 stage, glslang::EShClientVulkan, 100);
239 shader.setEnvClient(glslang::EShClientVulkan, clientTargetVersion);
240 shader.setEnvTarget(glslang::EShTargetSpv, targetLanguageVersion);
[all …]
DHlsl.FromFile.cpp73 … Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
80 … Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_1, glslang::EShTargetSpv_1_3, in TEST_P()
96 … Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
106 … Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
114 … Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
126 … Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0, in TEST_P()
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DBUILD.gn65 "//third_party/glslang",
70 "//third_party/glslang/OGLCompilersDLL:libdeqp_OGLCompiler",
71 "//third_party/glslang/SPIRV:libdeqp_spirv",
72 "//third_party/glslang/SPIRV:libdeqp_spvremapper",
73 "//third_party/glslang/glslang:libdeqp_GenericCodeGen",
74 "//third_party/glslang/glslang:libdeqp_MachineIndependent",
75 "//third_party/glslang/glslang:libdeqp_OSDependent",
78 "//third_party/glslang/glslang:libdeqp_glslang",
79 "//third_party/glslang/hlsl:libdeqp_hlsl",
96 # "glslang",
[all …]
DvkShaderToSpirV.cpp76 glslang::InitializeProcess(); in initGlslang()
280 glslang::TShader shader (shaderStage); in compileShaderToSpirV()
281 glslang::TProgram glslangProgram; in compileShaderToSpirV()
288 shader.setEnvTarget(glslang::EshTargetSpv, (glslang::EShTargetLanguageVersion)0x10000); in compileShaderToSpirV()
291 shader.setEnvTarget(glslang::EshTargetSpv, (glslang::EShTargetLanguageVersion)0x10100); in compileShaderToSpirV()
294 shader.setEnvTarget(glslang::EshTargetSpv, (glslang::EShTargetLanguageVersion)0x10200); in compileShaderToSpirV()
297 shader.setEnvTarget(glslang::EshTargetSpv, (glslang::EShTargetLanguageVersion)0x10300); in compileShaderToSpirV()
300 shader.setEnvTarget(glslang::EshTargetSpv, (glslang::EShTargetLanguageVersion)0x10400); in compileShaderToSpirV()
303 shader.setEnvTarget(glslang::EshTargetSpv, (glslang::EShTargetLanguageVersion)0x10500); in compileShaderToSpirV()
344 const glslang::TIntermediate* const intermediate = glslangProgram.getIntermediate(shaderStage); in compileShaderToSpirV()
[all …]
/third_party/vk-gl-cts/external/glslang/
DCMakeLists.txt1 # cmake file for glslang
10 set(DEFAULT_GLSLANG_SRC_PATH "../glslang")
13 set(GLSLANG_SRC_PATH ${DEFAULT_GLSLANG_SRC_PATH} CACHE STRING "Path to glslang source tree")
21 if (EXISTS ${GLSLANG_ABS_PATH}/glslang/GenericCodeGen/CodeGen.cpp)
22 message(STATUS "glslang found")
24 # Disable glslang install as part of cmake install.
27 # Do not build glslang binaries.
30 # Overwrite the CMake flags for glslang with the our 3rd party ones.
39 set(GLSLANG_LIBRARIES glslang SPIRV SPVRemapper PARENT_SCOPE)
41 message(FATAL_ERROR "glslang not found")
/third_party/glslang/OGLCompilersDLL/
DInitializeDll.cpp44 namespace glslang { namespace
54 glslang::GetGlobalLock(); in InitProcess()
61 glslang::ReleaseGlobalLock(); in InitProcess()
70 glslang::ReleaseGlobalLock(); in InitProcess()
77 glslang::ReleaseGlobalLock(); in InitProcess()
84 glslang::ReleaseGlobalLock(); in InitProcess()
88 glslang::ReleaseGlobalLock(); in InitProcess()
113 glslang::SetThreadPoolAllocator(nullptr); in InitThread()
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/
DUtil.cpp142 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::DefaultTBuiltInResource, defaultVersion, false, … in compileGLSLtoSPIRV()
163 glslang::TIntermediate *intermediateRepresentation = glslangShader->getIntermediate(); in compileGLSLtoSPIRV()
167 glslang::SpvOptions options; in compileGLSLtoSPIRV()
168 glslang::GlslangToSpv(*intermediateRepresentation, spirv, &options); in compileGLSLtoSPIRV()

12345678910>>...12