Home
last modified time | relevance | path

Searched refs:glsl (Results 1 - 25 of 76) sorted by relevance

1234

/third_party/glslang/Test/
H A Druntests117 run -Od -i compoundsuffix.vert.glsl > $TARGETDIR/compoundsuffix.vert.glsl
118 diff -b $BASEDIR/compoundsuffix.vert.glsl $TARGETDIR/compoundsuffix.vert.glsl || HASERROR=1
207 run -DUNDEFED -UIN_SHADER -DFOO=200 -i -l --U UNDEFED --define-macro MUL=FOO*2 glsl.-D-U.frag > $TARGETDIR/glsl.-D-U.frag.out
208 diff -b $BASEDIR/glsl.-D-U.frag.out $TARGETDIR/glsl.-D-U.frag.out || HASERROR=1
211 run -P"#define TEST1" -i -l --preamble-text "#define TEST2" --p "#define TEST3" glsl.-P.frag > $TARGETDIR/glsl
[all...]
H A Dvalidate-shaders.sh96 # glsl
117 echo glsl
126 echo glsl
223 glsl) ;;
/third_party/skia/src/gpu/gl/builders/
H A DGrGLProgramBuilder.cpp32 #include "src/gpu/glsl/GrGLSLProgramDataManager.h"
99 bool GrGLProgramBuilder::compileAndAttachShaders(const SkSL::String& glsl, in compileAndAttachShaders() argument
108 glsl, in compileAndAttachShaders()
208 // Advanced Filter: Replace glsl shader of blur effect if AF is enabled
212 static void ApplyAdvancedFilter(std::string& glsl) in ApplyAdvancedFilter() argument
214 glsl = "#version 320 es\n" in ApplyAdvancedFilter()
271 SkSL::String glsl[kGrShaderTypeCount]; in finalize() local
324 GrPersistentCacheUtils::UnpackCachedShaders(&reader, glsl, &inputs, 1); in finalize()
352 if (glsl[kFragment_GrShaderType].empty()) { in finalize()
361 &glsl[kFragment_GrShaderTyp in finalize()
499 checkLinkStatus(GrGLuint programID, GrContextOptions::ShaderErrorHandler* errorHandler, SkSL::String* sksl[], const SkSL::String glsl[]) checkLinkStatus() argument
[all...]
H A DGrGLShaderStringBuilder.cpp25 SkSL::String* glsl, in GrSkSLtoGLSL()
35 if (!program || !compiler->toGLSL(*program, glsl)) { in GrSkSLtoGLSL()
48 GrShaderUtils::PrintLineByLine(GrShaderUtils::PrettyPrint(*glsl)); in GrSkSLtoGLSL()
58 const SkSL::String& glsl, in GrGLCompileAndAttachShader()
70 const GrGLchar* source = glsl.c_str(); in GrGLCompileAndAttachShader()
71 GrGLint sourceLength = glsl.size(); in GrGLCompileAndAttachShader()
94 errorHandler->compileError(glsl.c_str(), infoLen > 0 ? (const char*)log.get() : ""); in GrGLCompileAndAttachShader()
21 GrSkSLtoGLSL(const GrGLGpu* gpu, SkSL::ProgramKind programKind, const SkSL::String& sksl, const SkSL::Program::Settings& settings, SkSL::String* glsl, GrContextOptions::ShaderErrorHandler* errorHandler) GrSkSLtoGLSL() argument
55 GrGLCompileAndAttachShader(const GrGLContext& glCtx, GrGLuint programId, GrGLenum type, const SkSL::String& glsl, GrThreadSafePipelineBuilder::Stats* stats, GrContextOptions::ShaderErrorHandler* errorHandler) GrGLCompileAndAttachShader() argument
H A DGrGLShaderStringBuilder.h21 SkSL::String* glsl,
27 const SkSL::String& glsl,
H A DGrGLProgramBuilder.h16 #include "src/gpu/glsl/GrGLSLProgramBuilder.h"
17 #include "src/gpu/glsl/GrGLSLProgramDataManager.h"
64 bool compileAndAttachShaders(const SkSL::String& glsl,
79 SkSL::String* sksl[], const SkSL::String glsl[]);
/third_party/glslang/glslang/OSDependent/Web/
H A Dglslang.pre.js1 Module['compileGLSLZeroCopy'] = function(glsl, shader_stage, gen_debug, spirv_version) {
31 [glsl, shader_stage_int, gen_debug, spirv_version_int, p_output, p_output_len]);
51 Module['compileGLSL'] = function(glsl, shader_stage, gen_debug, spirv_version) {
52 var compiled = Module['compileGLSLZeroCopy'](glsl, shader_stage, gen_debug, spirv_version);
H A Dglslang.js.cpp174 * |glsl| Null-terminated string containing the shader to be converted.
189 void* convert_glsl_to_spirv(const char* glsl, in convert_glsl_to_spirv() argument
196 if (glsl == nullptr) { in convert_glsl_to_spirv()
231 shader.setStrings(&glsl, 1); in convert_glsl_to_spirv()
/third_party/mesa3d/src/amd/compiler/tests/
H A Dglsl_scraper.py53 self.glsl = None
64 self.glsl = self.stream.getvalue()
68 self.glsl = self.glsl.replace('QO_EXTENSION', '#extension')
71 self.glsl = self.glsl.replace('QO_DEFINE', '#define')
73 m = target_env_re.search(self.glsl)
76 self.glsl = self.glsl.replace('QO_TARGET_ENV', '// --target-env')
86 src = ('#version 450\n' + self.glsl)
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/libGLESv2/
H A DProgram.h43 BlockInfo(const glsl::Uniform& uniform, int blockIndex);
52 Uniform(const glsl::Uniform &uniform, const BlockInfo &blockInfo);
65 std::vector<glsl::ShaderVariable> fields;
231 bool linkAttribute(const glsl::Attribute &attribute, int location, unsigned int &usedLocations);
237 bool areMatchingUniformBlocks(const glsl::UniformBlock &block1, const glsl::UniformBlock &block2, const Shader *shader1, const Shader *shader2);
238 bool areMatchingFields(const std::vector<glsl::ShaderVariable>& fields1, const std::vector<glsl::ShaderVariable>& fields2, const std::string& name);
239 bool validateUniformStruct(GLenum shader, const glsl::Uniform &newUniformStruct);
240 bool defineUniform(GLenum shader, const glsl
[all...]
H A DShader.h34 namespace glsl namespace
42 class Shader : public glsl::Shader
79 static bool compareVarying(const glsl::Varying &x, const glsl::Varying &y);
H A DProgram.cpp44 Uniform::BlockInfo::BlockInfo(const glsl::Uniform& uniform, int blockIndex) in BlockInfo()
56 Uniform::Uniform(const glsl::Uniform &uniform, const BlockInfo &blockInfo) in Uniform()
1305 glsl::VaryingList &psVaryings = fragmentShader->varyings; in linkVaryings()
1306 glsl::VaryingList &vsVaryings = vertexShader->varyings; in linkVaryings()
1457 for(const glsl::Varying& varying : vertexShader->varyings) in linkTransformFeedback()
1645 bool Program::linkAttribute(const glsl::Attribute &attribute, int location, unsigned int &usedLocations) in linkAttribute()
1720 const glsl::ActiveUniformBlocks &activeUniformBlocks = shader->activeUniformBlocks; in linkUniforms()
1759 bool Program::defineUniform(GLenum shader, const glsl::Uniform &glslUniform, const Uniform::BlockInfo& blockInfo) in defineUniform()
1914 bool Program::validateUniformStruct(GLenum shader, const glsl::Uniform &newUniformStruct) in validateUniformStruct()
1929 bool Program::areMatchingUniformBlocks(const glsl
[all...]
/third_party/skia/third_party/externals/swiftshader/src/OpenGL/compiler/
H A DTranslatorASM.h21 namespace glsl namespace
29 TranslatorASM(glsl::Shader *shaderObject, GLenum type);
35 glsl::Shader *const shaderObject;
H A DTranslatorASM.cpp19 TranslatorASM::TranslatorASM(glsl::Shader *shaderObject, GLenum shaderType) : TCompiler(shaderType), shaderObject(shaderObject) in TranslatorASM()
26 glsl::OutputASM outputASM(parseContext, shaderObject); in translate()
/third_party/skia/third_party/externals/spirv-cross/
H A Dtest_shaders.py543 extra_args += ['--glsl-emit-push-constant-as-ubo']
547 extra_args += ['--vulkan-glsl-disable-ext-samplerless-texture-functions']
551 extra_args += ['--glsl-remap-ext-framebuffer-fetch', '0', '0']
552 extra_args += ['--glsl-remap-ext-framebuffer-fetch', '1', '1']
553 extra_args += ['--glsl-remap-ext-framebuffer-fetch', '2', '2']
554 extra_args += ['--glsl-remap-ext-framebuffer-fetch', '3', '3']
556 extra_args += ['--glsl-ext-framebuffer-fetch-noncoherent']
560 extra_args += ['--glsl-force-flattened-io-blocks']
642 def regression_check(shader, glsl, args):
648 if md5_for_file(glsl) !
[all...]
H A Dspirv_cross_c.cpp160 CompilerGLSL::Options glsl; member
366 opt->glsl = static_cast<CompilerMSL *>(compiler->compiler.get())->get_common_options(); in spvc_compiler_create_compiler_options()
374 opt->glsl = static_cast<CompilerHLSL *>(compiler->compiler.get())->get_common_options(); in spvc_compiler_create_compiler_options()
382 opt->glsl = static_cast<CompilerGLSL *>(compiler->compiler.get())->get_common_options(); in spvc_compiler_create_compiler_options()
419 options->glsl.force_temporary = value != 0; in spvc_compiler_options_set_uint()
422 options->glsl.flatten_multidimensional_arrays = value != 0; in spvc_compiler_options_set_uint()
425 options->glsl.vertex.fixup_clipspace = value != 0; in spvc_compiler_options_set_uint()
428 options->glsl.vertex.flip_vert_y = value != 0; in spvc_compiler_options_set_uint()
431 options->glsl.emit_line_directives = value != 0; in spvc_compiler_options_set_uint()
434 options->glsl in spvc_compiler_options_set_uint()
[all...]
/third_party/skia/third_party/externals/tint/src/writer/glsl/
H A Dgenerator.h32 namespace glsl { namespace
58 std::string glsl = ""; member
74 } // namespace glsl
H A Dgenerator.cc15 #include "src/writer/glsl/generator.h"
17 #include "src/transform/glsl.h"
18 #include "src/writer/glsl/generator_impl.h"
22 namespace glsl { namespace
48 result.glsl = impl->result(); in Generate()
61 } // namespace glsl
/third_party/skia/third_party/externals/spirv-tools/utils/
H A Dgenerate_vim_syntax.py143 parser.add_argument('--extinst-glsl-grammar', metavar='<path>',
172 glsl = json.loads(open(args.extinst_glsl_grammar).read())
175 for inst in glsl["instructions"]:
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/
H A Dgenerate_vim_syntax.py143 parser.add_argument('--extinst-glsl-grammar', metavar='<path>',
172 glsl = json.loads(open(args.extinst_glsl_grammar).read())
175 for inst in glsl["instructions"]:
/third_party/spirv-tools/utils/
H A Dgenerate_vim_syntax.py143 parser.add_argument('--extinst-glsl-grammar', metavar='<path>',
172 glsl = json.loads(open(args.extinst_glsl_grammar).read())
175 for inst in glsl["instructions"]:
/third_party/skia/third_party/externals/dawn/src/dawn_native/opengl/
H A DPipelineGL.cpp94 std::string glsl; in InitializeBase() local
95 DAWN_TRY_ASSIGN(glsl, module->TranslateToGLSL(stages[stage].entryPoint.c_str(), stage, in InitializeBase()
99 DAWN_TRY_ASSIGN(shader, CreateShader(gl, GLShaderType(stage), glsl.c_str())); in InitializeBase()
/third_party/skia/third_party/externals/spirv-tools/
H A DAndroid.mk185 SPV_GLSL_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.glsl.std.450.grammar.json
194 $(1)/glsl.std.450.insts.inc \
205 --extinst-glsl-grammar=$(SPV_GLSL_GRAMMAR) \
210 --glsl-insts-output=$(1)/glsl.std.450.insts.inc \
217 $(1)/glsl.std.450.insts.inc \
/third_party/spirv-tools/
H A DAndroid.mk200 SPV_GLSL_GRAMMAR=$(SPVHEADERS_LOCAL_PATH)/include/spirv/unified1/extinst.glsl.std.450.grammar.json
209 $(1)/glsl.std.450.insts.inc \
220 --extinst-glsl-grammar=$(SPV_GLSL_GRAMMAR) \
225 --glsl-insts-output=$(1)/glsl.std.450.insts.inc \
233 $(1)/glsl.std.450.insts.inc \
/third_party/ffmpeg/libavfilter/
H A Dglslang.cpp152 GLSlangResult *glslang_compile(const char *glsl, enum GLSlangStage stage) in glslang_compile() argument
173 shader->setStrings(&glsl, 1); in glslang_compile()

Completed in 14 milliseconds

1234