Home
last modified time | relevance | path

Searched refs:vertexShader (Results 1 – 25 of 72) sorted by relevance

123

/external/deqp/framework/randomshaders/
DrsgTest.cpp50 rsg::Shader vertexShader(rsg::Shader::TYPE_VERTEX); in runTest() local
54 generator.generate(programParams, vertexShader, fragmentShader); in runTest()
56 std::cout << "Vertex shader:\n--\n" << vertexShader.getSource() << "--\n"; in runTest()
63 rsg::computeUnifiedUniforms(vertexShader, fragmentShader, uniforms); in runTest()
70 executor.execute(vertexShader, fragmentShader, uniformValues); in runTest()
DrsgProgramGenerator.cpp43 Shader& vertexShader, in generate() argument
65 shaderGen.generate(programParams.vertexParameters, vertexShader, fragmentInputs); in generate()
70 const vector<ShaderInput*>& vertexUniforms = vertexShader.getUniforms(); in generate()
/external/webrtc/talk/app/webrtc/java/android/org/webrtc/
DGlShader.java57 private int vertexShader; field in GlShader
62 vertexShader = compileShader(GLES20.GL_VERTEX_SHADER, vertexSource); in GlShader()
68 GLES20.glAttachShader(program, vertexShader); in GlShader()
130 if (vertexShader != -1) { in release()
131 GLES20.glDeleteShader(vertexShader); in release()
132 vertexShader = -1; in release()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/utils/
DDefaultShaderProvider.java32 public DefaultShaderProvider (final String vertexShader, final String fragmentShader) { in DefaultShaderProvider() argument
33 this(new DefaultShader.Config(vertexShader, fragmentShader)); in DefaultShaderProvider()
36 public DefaultShaderProvider (final FileHandle vertexShader, final FileHandle fragmentShader) { in DefaultShaderProvider() argument
37 this(vertexShader.readString(), fragmentShader.readString()); in DefaultShaderProvider()
DDepthShaderProvider.java32 public DepthShaderProvider (final String vertexShader, final String fragmentShader) { in DepthShaderProvider() argument
33 this(new DepthShader.Config(vertexShader, fragmentShader)); in DepthShaderProvider()
36 public DepthShaderProvider (final FileHandle vertexShader, final FileHandle fragmentShader) { in DepthShaderProvider() argument
37 this(vertexShader.readString(), fragmentShader.readString()); in DepthShaderProvider()
/external/deqp/modules/glshared/
DglsRandomShaderProgram.cpp70 …ation (sglr::pdec::ShaderProgramDeclaration& decl, const rsg::Shader& vertexShader, const rsg::Sha… in generateProgramDeclaration() argument
72 decl << sglr::pdec::VertexSource(vertexShader.getSource()) in generateProgramDeclaration()
75 …rsg::ShaderInput*>::const_iterator vtxInIter = vertexShader.getInputs().begin(); vtxInIter != vert… in generateProgramDeclaration()
96 …aderProgramDeclaration generateProgramDeclaration (const rsg::Shader& vertexShader, const rsg::Sha… in generateProgramDeclaration() argument
99 …generateProgramDeclaration(decl, vertexShader, fragmentShader, numUnifiedUniforms, unifiedUniforms… in generateProgramDeclaration()
131 RandomShaderProgram::RandomShaderProgram (const rsg::Shader& vertexShader, const rsg::Shader& fragm… in RandomShaderProgram() argument
132 …: sglr::ShaderProgram (generateProgramDeclaration(vertexShader, fragmentShader, numUnifiedUniforms… in RandomShaderProgram()
133 , m_vertexShader (vertexShader) in RandomShaderProgram()
137 , m_positionVar (findShaderOutputByName(vertexShader, "gl_Position")) in RandomShaderProgram()
148 …const rsg::Variable* vertexOutput = findShaderOutputByName(vertexShader, fragInput->getVariable()-… in RandomShaderProgram()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/classical/
DPass1Shader.java54 …this(renderable, config, prefix, config.vertexShader != null ? config.vertexShader : getDefaultVer… in Pass1Shader()
58 … (final Renderable renderable, final Config config, final String prefix, final String vertexShader, in Pass1Shader() argument
60 this(renderable, config, new ShaderProgram(prefix + vertexShader, prefix + fragmentShader)); in Pass1Shader()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/realistic/
DPass1Shader.java54 …this(renderable, config, prefix, config.vertexShader != null ? config.vertexShader : getDefaultVer… in Pass1Shader()
58 … (final Renderable renderable, final Config config, final String prefix, final String vertexShader, in Pass1Shader() argument
60 this(renderable, config, new ShaderProgram(prefix + vertexShader, prefix + fragmentShader)); in Pass1Shader()
/external/deqp/modules/egl/
DteglSwapBuffersTests.cpp137 deUint32 vertexShader = 0; in createGLES2Program() local
150 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
155 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
156 gl.compileShader(vertexShader); in createGLES2Program()
166 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
167 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
171 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
191 gl.attachShader(program, vertexShader); in createGLES2Program()
221 gl.deleteShader(vertexShader); in createGLES2Program()
232 if (vertexShader) in createGLES2Program()
[all …]
DteglNativeColorMappingTests.cpp105 deUint32 vertexShader = 0; in createGLES2Program() local
118 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
123 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
124 gl.compileShader(vertexShader); in createGLES2Program()
134 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
135 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
139 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
159 gl.attachShader(program, vertexShader); in createGLES2Program()
189 gl.deleteShader(vertexShader); in createGLES2Program()
200 if (vertexShader) in createGLES2Program()
[all …]
DteglNativeCoordMappingTests.cpp105 deUint32 vertexShader = 0; in createGLES2Program() local
118 vertexShader = gl.createShader(GL_VERTEX_SHADER); in createGLES2Program()
123 gl.shaderSource(vertexShader, 1, &vertexShaderSource, DE_NULL); in createGLES2Program()
124 gl.compileShader(vertexShader); in createGLES2Program()
134 gl.getShaderiv(vertexShader, GL_COMPILE_STATUS, &vertexCompileStatus); in createGLES2Program()
135 gl.getShaderiv(vertexShader, GL_INFO_LOG_LENGTH, &infoLogLength); in createGLES2Program()
139 …gl.getShaderInfoLog(vertexShader, (glw::GLsizei)vertexInfoLog.length(), &infoLogLength, &(vertexIn… in createGLES2Program()
159 gl.attachShader(program, vertexShader); in createGLES2Program()
189 gl.deleteShader(vertexShader); in createGLES2Program()
200 if (vertexShader) in createGLES2Program()
[all …]
DteglGLES2SharingTests.cpp340 const char* vertexShader = "" in renderResource() local
357 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
516 const char* vertexShader = "" in renderResource() local
534 glu::ShaderProgram program(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in renderResource()
652 const char* vertexShader = "" in createResource() local
669 m_program = new glu::ShaderProgram(m_gl, glu::makeVtxFragSources(vertexShader, fragmentShader)); in createResource()
805 const char* vertexShader = "" in createResource() local
829 GLU_CHECK_GLW_CALL(m_gl, shaderSource(m_shader, 1, &vertexShader, DE_NULL)); in createResource()
855 m_log << tcu::TestLog::Message << vertexShader << tcu::TestLog::EndMessage; in createResource()
883 const char* vertexShader = "" in renderResource() local
[all …]
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/shaders/
DDepthShader.java42 public Config (String vertexShader, String fragmentShader) { in Config() argument
43 super(vertexShader, fragmentShader); in Config()
82 …this(renderable, config, prefix, config.vertexShader != null ? config.vertexShader : getDefaultVer… in DepthShader()
86 … (final Renderable renderable, final Config config, final String prefix, final String vertexShader, in DepthShader() argument
88 this(renderable, config, new ShaderProgram(prefix + vertexShader, prefix + fragmentShader)); in DepthShader()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/particles/
DParticleShader.java56 public String vertexShader = null; field in ParticleShader.Config
80 public Config(final String vertexShader, final String fragmentShader) { in Config() argument
81 this.vertexShader = vertexShader; in Config()
169 config.vertexShader != null ? config.vertexShader : getDefaultVertexShader(), in ParticleShader()
173 …le renderable, final Config config, final String prefix, final String vertexShader, final String f… in ParticleShader() argument
174 this(renderable, config, new ShaderProgram(prefix + vertexShader, prefix + fragmentShader)); in ParticleShader()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/
DFloatTextureTest.java47 String vertexShader = in create() local
66 fbshader = new ShaderProgram(vertexShader, fragmentShader); in create()
68 vertexShader = in create()
103 shader = new ShaderProgram(vertexShader, fragmentShader); in create()
DMeshShaderTest.java37 …String vertexShader = "attribute vec4 a_position; \n" + "attribute vec4 a_color;\n" + "attribut… in create() local
47 shader = new ShaderProgram(vertexShader, fragmentShader); in create()
/external/deqp/modules/gles2/performance/
Des2pDrawCallBatchingTests.cpp200 std::ostringstream vertexShader; in createShader() local
204 vertexShader << "attribute mediump vec4 a_static" << attributeNdx << ";\n"; in createShader()
207 vertexShader << "\n"; in createShader()
210 vertexShader << "attribute mediump vec4 a_dyn" << attributeNdx << ";\n"; in createShader()
212 vertexShader in createShader()
219 vertexShader << "\tv_color = "; in createShader()
226 vertexShader << " + "; in createShader()
229 vertexShader << "a_static" << attributeNdx; in createShader()
235 vertexShader << " + "; in createShader()
238 vertexShader << "a_dyn" << attributeNdx; in createShader()
[all …]
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/gles2/
DHelloTriangle.java33 String vertexShader = "attribute vec4 vPosition; \n" + "void main() \n" in create() local
39 shader = new ShaderProgram(vertexShader, fragmentShader); in create()
DSimpleVertexShader.java41 String vertexShader = in create() local
58 shader = new ShaderProgram(vertexShader, fragmentShader); in create()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/glutils/
DShaderProgram.java156 public ShaderProgram (String vertexShader, String fragmentShader) { in ShaderProgram() argument
157 if (vertexShader == null) throw new IllegalArgumentException("vertex shader must not be null"); in ShaderProgram()
161 vertexShader = prependVertexCode + vertexShader; in ShaderProgram()
165 this.vertexShaderSource = vertexShader; in ShaderProgram()
169 compileShaders(vertexShader, fragmentShader); in ShaderProgram()
177 public ShaderProgram (FileHandle vertexShader, FileHandle fragmentShader) { in ShaderProgram() argument
178 this(vertexShader.readString(), fragmentShader.readString()); in ShaderProgram()
185 private void compileShaders (String vertexShader, String fragmentShader) { in compileShaders() argument
186 vertexShaderHandle = loadShader(GL20.GL_VERTEX_SHADER, vertexShader); in compileShaders()
/external/libgdx/backends/gdx-backends-gwt/src/com/google/gwt/webgl/client/
DWebGLUtil.java33 WebGLShader vertexShader = getShader(gl, VERTEX_SHADER, vertexSource); in createShaderProgram() local
38 gl.attachShader(shaderProgram, vertexShader); in createShaderProgram()
/external/skia/bench/
DGLBench.cpp86 GrGLuint vertexShader = CompileShader(gl, vshader, GR_GL_VERTEX_SHADER); in CreateProgram() local
91 GR_GL_CALL(gl, AttachShader(shaderProgram, vertexShader)); in CreateProgram()
103 GR_GL_CALL(gl, DeleteShader(vertexShader)); in CreateProgram()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g3d/
DModelBatch.java128 public ModelBatch (final FileHandle vertexShader, final FileHandle fragmentShader) { in ModelBatch() argument
129 this(null, new DefaultShaderProvider(vertexShader, fragmentShader), null); in ModelBatch()
136 public ModelBatch (final String vertexShader, final String fragmentShader) { in ModelBatch() argument
137 this(null, new DefaultShaderProvider(vertexShader, fragmentShader), null); in ModelBatch()
/external/libgdx/tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/
DShaderCollectionTest.java79 if (config.vertexShader == null || config.fragmentShader == null) return false; in revert()
80 config.vertexShader = null; in revert()
105 if (config.vertexShader != null && config.fragmentShader != null && tempFolder != null in createShader()
108 …absolute(tempFolder).child(name + ".vertex.glsl").writeString(prefix + config.vertexShader, false); in createShader()
201 shaderProvider.config.vertexShader = null; in setShader()
206 shaderProvider.config.vertexShader = loader.load(name + ".glsl:VS"); in setShader()
/external/webrtc/webrtc/api/objc/
DRTCOpenGLVideoRenderer.mm102 GLuint CreateProgram(GLuint vertexShader, GLuint fragmentShader) {
103 if (vertexShader == 0 || fragmentShader == 0) {
110 glAttachShader(program, vertexShader);
267 GLuint vertexShader = CreateShader(GL_VERTEX_SHADER, kVertexShaderSource);
268 NSAssert(vertexShader, @"failed to create vertex shader");
272 _program = CreateProgram(vertexShader, fragmentShader);
274 if (vertexShader) {
275 glDeleteShader(vertexShader);

123