Home
last modified time | relevance | path

Searched refs:programId (Results 1 – 19 of 19) sorted by relevance

/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/
DGlProgram.java40 private final int programId; field in GlProgram
72 programId = GLES20.glCreateProgram(); in GlProgram()
76 addShader(programId, GLES20.GL_VERTEX_SHADER, vertexShaderGlsl); in GlProgram()
77 addShader(programId, GLES20.GL_FRAGMENT_SHADER, fragmentShaderGlsl); in GlProgram()
80 GLES20.glLinkProgram(programId); in GlProgram()
82 GLES20.glGetProgramiv(programId, GLES20.GL_LINK_STATUS, linkStatus, /* offset= */ 0); in GlProgram()
85 "Unable to link shader program: \n" + GLES20.glGetProgramInfoLog(programId)); in GlProgram()
87 GLES20.glUseProgram(programId); in GlProgram()
90 GLES20.glGetProgramiv(programId, GLES20.GL_ACTIVE_ATTRIBUTES, attributeCount, /* offset= */ 0); in GlProgram()
93 Attribute attribute = Attribute.create(programId, i); in GlProgram()
[all …]
/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/
DGlUtil.java64 private final int programId; field in GlUtil.Program
94 programId = GLES20.glCreateProgram(); in Program()
98 addShader(programId, GLES20.GL_VERTEX_SHADER, vertexShaderGlsl); in Program()
99 addShader(programId, GLES20.GL_FRAGMENT_SHADER, fragmentShaderGlsl); in Program()
102 GLES20.glLinkProgram(programId); in Program()
104 GLES20.glGetProgramiv(programId, GLES20.GL_LINK_STATUS, linkStatus, /* offset= */ 0); in Program()
107 "Unable to link shader program: \n" + GLES20.glGetProgramInfoLog(programId)); in Program()
109 GLES20.glUseProgram(programId); in Program()
113 programId, GLES20.GL_ACTIVE_ATTRIBUTES, attributeCount, /* offset= */ 0); in Program()
116 Attribute attribute = Attribute.create(programId, i); in Program()
[all …]
/external/skia/src/gpu/gl/builders/
DGrGLShaderStringBuilder.cpp56 GrGLuint programId, in GrGLCompileAndAttachShader() argument
104 GR_GL_CALL(gli, AttachShader(programId, shaderId)); in GrGLCompileAndAttachShader()
DGrGLShaderStringBuilder.h25 GrGLuint programId,
DGrGLProgramBuilder.h65 GrGLuint programId,
DGrGLProgramBuilder.cpp100 GrGLuint programId, in compileAndAttachShaders() argument
106 programId, in compileAndAttachShaders()
/external/deqp/modules/gles3/functional/
Des3fClippingTests.cpp544 const deUint32 programId = ctx.createProgram(&program); in testRender() local
545 const GLint positionLoc = ctx.getAttribLocation(programId, "a_position"); in testRender()
546 const GLint pointSizeLoc = ctx.getAttribLocation(programId, "a_pointSize"); in testRender()
547 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender()
553 ctx.useProgram (programId); in testRender()
561 ctx.deleteProgram (programId); in testRender()
683 const deUint32 programId = ctx.createProgram(&program); in testRender() local
684 const GLint positionLoc = ctx.getAttribLocation(programId, "a_position"); in testRender()
685 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender()
691 ctx.useProgram (programId); in testRender()
[all …]
/external/deqp/modules/gles2/functional/
Des2fClippingTests.cpp541 const deUint32 programId = ctx.createProgram(&program); in testRender() local
542 const GLint positionLoc = ctx.getAttribLocation(programId, "a_position"); in testRender()
543 const GLint pointSizeLoc = ctx.getAttribLocation(programId, "a_pointSize"); in testRender()
544 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender()
550 ctx.useProgram (programId); in testRender()
558 ctx.deleteProgram (programId); in testRender()
680 const deUint32 programId = ctx.createProgram(&program); in testRender() local
681 const GLint positionLoc = ctx.getAttribLocation(programId, "a_position"); in testRender()
682 const GLint colorLoc = ctx.getAttribLocation(programId, "a_color"); in testRender()
688 ctx.useProgram (programId); in testRender()
[all …]
/external/deqp/modules/glshared/
DglsLifetimeTests.cpp1008 GLuint programId = 0; in testDeleteUsed() local
1018 programId = program.getProgram(); in testDeleteUsed()
1020 log() << TestLog::Message << "// Created and linked program " << programId in testDeleteUsed()
1022 GLU_CHECK_CALL_ERROR(glUseProgram(programId), gl().getError()); in testDeleteUsed()
1024 log() << TestLog::Message << "// Deleted program " << programId in testDeleteUsed()
1027 TCU_CHECK(glIsProgram(programId)); in testDeleteUsed()
1030 glGetProgramiv(programId, GL_DELETE_STATUS, &deleteFlagged); in testDeleteUsed()
1034 errors.check(!gl().isProgram(programId), in testDeleteUsed()
/external/deqp/external/openglcts/modules/common/
DglcLayoutLocationTests.cpp464 deUint32 programId = program.getProgram(); in iterate() local
465 …int location = gl.getUniformLocation(programId, m_specializationMap["OPAQUE_TYPE_NAME"].c_str()… in iterate()
473 gl.useProgram(programId); in iterate()
508 glu::draw(renderContext, programId, DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays, in iterate()
DglcInternalformatTests.cpp161 void renderTexturedQuad(GLuint programId) const;
390 void InternalformatCaseBase::renderTexturedQuad(GLuint programId) const in renderTexturedQuad()
399 glu::draw(m_context.getRenderContext(), programId, DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays, in renderTexturedQuad()
1083 void renderColoredQuad(GLuint programId, const float* positions) const;
1429 void RenderbufferCase::renderColoredQuad(GLuint programId, const float* positions) const in renderColoredQuad() argument
1439 glu::draw(m_context.getRenderContext(), programId, DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays, in renderColoredQuad()
DglcCompressedFormatTests.cpp249 GLuint programId() const;
374 GLuint SharedData::programId () const in programId() function in glcts::__anonc3e2a8be0111::SharedData
1581 gl.useProgram(m_data->programId()); in iterate()
1616 gl.useProgram(m_data->programId()); in iterate()
DglcTextureRepeatModeTests.cpp1292 GLint programId = program.getProgram(); in iterate() local
1293 GLint samplerLocation = gl.getUniformLocation(programId, "texture0"); in iterate()
1296 gl.useProgram(programId); in iterate()
DglcPackedDepthStencilTests.cpp312 bool setTextureUniform(GLuint programId);
645 bool BaseTest::setTextureUniform(GLuint programId) in setTextureUniform() argument
649 gl.useProgram(programId); in setTextureUniform()
651 GLint uniformTex = gl.getUniformLocation(programId, "tex"); in setTextureUniform()
/external/angle/src/libANGLE/
DvalidationES31.cpp1737 ShaderProgramID programId) in ValidateUseProgramStagesBase() argument
1773 if (programId.value == 0) in ValidateUseProgramStagesBase()
1778 Program *program = context->getProgramNoResolveLink(programId); in ValidateUseProgramStagesBase()
1810 ShaderProgramID programId) in ValidateActiveShaderProgramBase() argument
1823 if ((programId.value != 0) && !context->isProgram(programId) && !context->isShader(programId)) in ValidateActiveShaderProgramBase()
1830 if (context->isShader(programId)) in ValidateActiveShaderProgramBase()
1838 Program *program = context->getProgramNoResolveLink(programId); in ValidateActiveShaderProgramBase()
1839 if ((programId.value != 0) && !program->isLinked()) in ValidateActiveShaderProgramBase()
DProgramPipeline.cpp108 bool ProgramPipelineState::usesShaderProgram(ShaderProgramID programId) const in usesShaderProgram()
112 if (program && (program->id() == programId)) in usesShaderProgram()
/external/deqp/external/openglcts/modules/gles2/
Des2cTexture3DTests.cpp340 deUint32 programId = testProgram.getProgram(); in renderQuad() local
341 gl.useProgram(programId); in renderQuad()
342 gl.uniform1i(gl.getUniformLocation(programId, "u_sampler"), 0); in renderQuad()
349 glu::draw(m_context.getRenderContext(), programId, DE_LENGTH_OF_ARRAY(vertexArrays), vertexArrays, in renderQuad()
/external/deqp/modules/gles31/functional/
Des31fGeometryShaderTests.cpp2064 const GLuint programId = ctx.createProgram(&program); in renderWithContext() local
2065 const GLint attrPosLoc = ctx.getAttribLocation(programId, "a_position"); in renderWithContext()
2066 const GLint attrColLoc = ctx.getAttribLocation(programId, m_dataAttributeName); in renderWithContext()
2109 ctx.useProgram(programId); in renderWithContext()
2112 preRender(ctx, programId); in renderWithContext()
2136 postRender(ctx, programId); in renderWithContext()
2423 const GLuint programId = m_ctx->createProgram(m_program); in iterate() local
2424 const GLint attrPosLoc = m_ctx->getAttribLocation(programId, "a_position"); in iterate()
2445 m_ctx->useProgram(programId); in iterate()
/external/angle/src/libANGLE/capture/
DFrameCapture.cpp6057 gl::ShaderProgramID programId; in maybeCapturePostCallUpdates() local
6058 programId.value = lastCall.params.getReturnValue().value.GLuintVal; in maybeCapturePostCallUpdates()
6059 const gl::Program *program = context->getProgramResolveLink(programId); in maybeCapturePostCallUpdates()