{
YAGL_GET_CTX(glActiveTexture);
- YAGL_BARRIER_ARG_NORET(ts);
-
if (!yagl_gles_context_set_active_texture(ctx, texture)) {
YAGL_SET_ERR(GL_INVALID_ENUM);
}
YAGL_GET_CTX(glBindBuffer);
- YAGL_BARRIER_ARG_NORET(ts);
-
if (buffer != 0) {
buffer_obj = (struct yagl_gles_buffer*)yagl_sharegroup_acquire_object(ctx->base.sg,
YAGL_NS_BUFFER, buffer);
YAGL_GET_CTX(glBindTexture);
- YAGL_BARRIER_ARG_NORET(ts);
-
if (!yagl_gles_validate_texture_target(target, &texture_target)) {
YAGL_SET_ERR(GL_INVALID_ENUM);
goto out;
{
YAGL_GET_CTX(glBlendFunc);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->BlendFunc(ctx->driver_ps, sfactor, dfactor);
}
}
}
- YAGL_BARRIER_ARG_NORET(ts);
-
yagl_gles_buffer_set_data(buffer_obj, size, data, usage);
out:
goto out;
}
- YAGL_BARRIER_ARG_NORET(ts);
-
if (!yagl_gles_buffer_update_data(buffer_obj, offset, size, data)) {
YAGL_SET_ERR(GL_INVALID_VALUE);
goto out;
{
YAGL_GET_CTX(glClear);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Clear(ctx->driver_ps, mask);
}
{
YAGL_GET_CTX(glClearColor);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->ClearColor(ctx->driver_ps, red, green, blue, alpha);
}
{
YAGL_GET_CTX(glClearDepthf);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->ClearDepthf(ctx->driver_ps, depth);
}
{
YAGL_GET_CTX(glClearStencil);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->ClearStencil(ctx->driver_ps, s);
}
{
YAGL_GET_CTX(glColorMask);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->ColorMask(ctx->driver_ps, red, green, blue, alpha);
}
}
}
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->CompressedTexImage2D(ctx->driver_ps,
target,
level,
}
}
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->CompressedTexSubImage2D(ctx->driver_ps,
target,
level,
{
YAGL_GET_CTX(glCopyTexImage2D);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->CopyTexImage2D(ctx->driver_ps,
target,
level,
{
YAGL_GET_CTX(glCopyTexSubImage2D);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->CopyTexSubImage2D(ctx->driver_ps,
target,
level,
{
YAGL_GET_CTX(glCullFace);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->CullFace(ctx->driver_ps, mode);
}
}
}
- YAGL_BARRIER_ARG_NORET(ts);
-
if (buffer_names) {
for (i = 0; i < n; ++i) {
buffer_obj = (struct yagl_gles_buffer*)yagl_sharegroup_acquire_object(ctx->base.sg,
}
}
- YAGL_BARRIER_ARG_NORET(ts);
-
if (texture_names) {
for (i = 0; i < n; ++i) {
yagl_gles_context_unbind_texture(ctx, texture_names[i]);
{
YAGL_GET_CTX(glDepthFunc);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->DepthFunc(ctx->driver_ps, func);
}
{
YAGL_GET_CTX(glDepthMask);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->DepthMask(ctx->driver_ps, flag);
}
{
YAGL_GET_CTX(glDepthRangef);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->DepthRangef(ctx->driver_ps, zNear, zFar);
}
{
YAGL_GET_CTX(glEnable);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Disable(ctx->driver_ps, cap);
}
return;
}
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->DrawArrays(ctx->driver_ps, mode, first, count);
}
goto out;
}
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->DrawElements(ctx->driver_ps,
mode,
count,
{
YAGL_GET_CTX(glEnable);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Enable(ctx->driver_ps, cap);
}
{
YAGL_GET_CTX(glFinish);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Finish(ctx->driver_ps);
}
{
YAGL_GET_CTX(glFlush);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Flush(ctx->driver_ps);
}
{
YAGL_GET_CTX(glFrontFace);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->FrontFace(ctx->driver_ps, mode);
}
{
YAGL_GET_CTX(glHint);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Hint(ctx->driver_ps, target, mode);
}
{
YAGL_GET_CTX(glLineWidth);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->LineWidth(ctx->driver_ps, width);
}
{
YAGL_GET_CTX(glPixelStorei);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->PixelStorei(ctx->driver_ps, pname, param);
}
{
YAGL_GET_CTX(glPolygonOffset);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->PolygonOffset(ctx->driver_ps, factor, units);
}
{
YAGL_GET_CTX(glSampleCoverage);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->SampleCoverage(ctx->driver_ps, value, invert);
}
{
YAGL_GET_CTX(glScissor);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Scissor(ctx->driver_ps, x, y, width, height);
}
{
YAGL_GET_CTX(glStencilFunc);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->StencilFunc(ctx->driver_ps, func, ref, mask);
}
{
YAGL_GET_CTX(glStencilMask);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->StencilMask(ctx->driver_ps, mask);
}
{
YAGL_GET_CTX(glStencilOp);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->StencilOp(ctx->driver_ps, fail, zfail, zpass);
}
}
}
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->TexImage2D(ctx->driver_ps,
target,
level,
{
YAGL_GET_CTX(glTexParameterf);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->TexParameterf(ctx->driver_ps, target, pname, param);
}
{
YAGL_GET_CTX(glTexParameteri);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->TexParameteri(ctx->driver_ps, target, pname, param);
}
}
}
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->TexSubImage2D(ctx->driver_ps,
target,
level,
{
YAGL_GET_CTX(glViewport);
- YAGL_BARRIER_ARG_NORET(ts);
-
ctx->driver_ps->Viewport(ctx->driver_ps, x, y, width, height);
}
YAGL_GET_CTX(glAttachShader);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
program_obj = (struct yagl_gles2_program*)yagl_sharegroup_acquire_object(ctx->sg,
YAGL_NS_PROGRAM, program);
YAGL_LOG_TRACE("binding attrib %s location to %d", name, index);
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
yagl_gles2_program_bind_attrib_location(program_obj, index, name);
out:
YAGL_GET_CTX(glBindFramebuffer);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
if (framebuffer != 0) {
framebuffer_obj = (struct yagl_gles_framebuffer*)yagl_sharegroup_acquire_object(ctx->sg,
YAGL_NS_FRAMEBUFFER, framebuffer);
YAGL_GET_CTX(glBindRenderbuffer);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
if (renderbuffer != 0) {
renderbuffer_obj = (struct yagl_gles_renderbuffer*)yagl_sharegroup_acquire_object(ctx->sg,
YAGL_NS_RENDERBUFFER, renderbuffer);
{
YAGL_GET_CTX(glBlendColor);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->BlendColor(ctx->driver_ps, red, green, blue, alpha);
}
{
YAGL_GET_CTX(glBlendEquation);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->BlendEquation(ctx->driver_ps, mode);
}
{
YAGL_GET_CTX(glBlendEquationSeparate);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->BlendEquationSeparate(ctx->driver_ps, modeRGB, modeAlpha);
}
{
YAGL_GET_CTX(glBlendFuncSeparate);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->BlendFuncSeparate(ctx->driver_ps,
srcRGB,
dstRGB,
YAGL_GET_CTX(glCompileShader);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
shader_obj = (struct yagl_gles2_shader*)yagl_sharegroup_acquire_object(ctx->sg,
YAGL_NS_SHADER, shader);
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
if (framebuffer_names) {
for (i = 0; i < n; ++i) {
yagl_gles_context_unbind_framebuffer(&ctx->base, framebuffer_names[i]);
{
YAGL_GET_CTX(glDeleteProgram);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
yagl_gles2_context_unuse_program(ctx, program);
yagl_sharegroup_remove(ctx->sg,
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
if (renderbuffer_names) {
for (i = 0; i < n; ++i) {
yagl_gles_context_unbind_renderbuffer(&ctx->base, renderbuffer_names[i]);
{
YAGL_GET_CTX(glDeleteShader);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
yagl_sharegroup_remove(ctx->sg,
YAGL_NS_SHADER,
shader);
YAGL_GET_CTX(glDetachShader);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
program_obj = (struct yagl_gles2_program*)yagl_sharegroup_acquire_object(ctx->sg,
YAGL_NS_PROGRAM, program);
YAGL_GET_CTX(glDisableVertexAttribArray);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
array = yagl_gles_context_get_array(&ctx->base, index);
if (!array) {
YAGL_GET_CTX(glEnableVertexAttribArray);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
array = yagl_gles_context_get_array(&ctx->base, index);
if (!array) {
YAGL_GET_CTX(glFramebufferRenderbuffer);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
framebuffer_obj = yagl_gles_context_acquire_binded_framebuffer(&ctx->base, target);
if (!framebuffer_obj) {
YAGL_GET_CTX(glFramebufferTexture2D);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
framebuffer_obj = yagl_gles_context_acquire_binded_framebuffer(&ctx->base, target);
if (!framebuffer_obj) {
{
YAGL_GET_CTX(glGenerateMipmap);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->common->GenerateMipmap(ctx->driver_ps->common, target);
}
YAGL_GET_CTX(glLinkProgram);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
program_obj = (struct yagl_gles2_program*)yagl_sharegroup_acquire_object(ctx->sg,
YAGL_NS_PROGRAM, program);
{
YAGL_GET_CTX(glReleaseShaderCompiler);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->ReleaseShaderCompiler(ctx->driver_ps);
}
{
YAGL_GET_CTX(glRenderbufferStorage);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->common->RenderbufferStorage(ctx->driver_ps->common,
target,
internalformat,
YAGL_LOG_TRACE("string %d = %s", i, tmp);
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
yagl_gles2_shader_source(shader_obj,
strings,
count,
{
YAGL_GET_CTX(glStencilFuncSeparate);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->StencilFuncSeparate(ctx->driver_ps, face, func, ref, mask);
}
{
YAGL_GET_CTX(glStencilMaskSeparate);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->StencilMaskSeparate(ctx->driver_ps, face, mask);
}
{
YAGL_GET_CTX(glStencilOpSeparate);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->StencilOpSeparate(ctx->driver_ps, face, fail, zfail, zpass);
}
{
YAGL_GET_CTX(glUniform1f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform1f(ctx->driver_ps, location, x);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform1fv(ctx->driver_ps, location, count, v);
out:
{
YAGL_GET_CTX(glUniform1i);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform1i(ctx->driver_ps, location, x);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform1iv(ctx->driver_ps, location, count, v);
out:
{
YAGL_GET_CTX(glUniform2f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform2f(ctx->driver_ps, location, x, y);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform2fv(ctx->driver_ps, location, count, v);
out:
{
YAGL_GET_CTX(glUniform2i);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform2i(ctx->driver_ps, location, x, y);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform2iv(ctx->driver_ps, location, count, v);
out:
{
YAGL_GET_CTX(glUniform3f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform3f(ctx->driver_ps, location, x, y, z);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform3fv(ctx->driver_ps, location, count, v);
out:
{
YAGL_GET_CTX(glUniform3i);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform3i(ctx->driver_ps, location, x, y, z);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform3iv(ctx->driver_ps, location, count, v);
out:
{
YAGL_GET_CTX(glUniform4f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform4f(ctx->driver_ps, location, x, y, z, w);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform4fv(ctx->driver_ps, location, count, v);
out:
{
YAGL_GET_CTX(glUniform4i);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform4i(ctx->driver_ps, location, x, y, z, w);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->Uniform4iv(ctx->driver_ps, location, count, v);
out:
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->UniformMatrix2fv(ctx->driver_ps, location, count, transpose, value);
out:
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->UniformMatrix3fv(ctx->driver_ps, location, count, transpose, value);
out:
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->UniformMatrix4fv(ctx->driver_ps, location, count, transpose, value);
out:
YAGL_GET_CTX(glUseProgram);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
if (program != 0) {
program_obj = (struct yagl_gles2_program*)yagl_sharegroup_acquire_object(ctx->sg,
YAGL_NS_PROGRAM, program);
{
YAGL_GET_CTX(glVertexAttrib1f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib1f(ctx->driver_ps, indx, x);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib1fv(ctx->driver_ps,
indx,
(values_ ? &values[0] : NULL));
{
YAGL_GET_CTX(glVertexAttrib2f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib2f(ctx->driver_ps, indx, x, y);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib2fv(ctx->driver_ps,
indx,
(values_ ? &values[0] : NULL));
{
YAGL_GET_CTX(glVertexAttrib3f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib3f(ctx->driver_ps, indx, x, y, z);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib3fv(ctx->driver_ps,
indx,
(values_ ? &values[0] : NULL));
{
YAGL_GET_CTX(glVertexAttrib4f);
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib4f(ctx->driver_ps, indx, x, y, z, w);
}
}
}
- YAGL_BARRIER_ARG_NORET(gles2_api_ts->ts);
-
ctx->driver_ps->VertexAttrib4fv(ctx->driver_ps,
indx,
(values_ ? &values[0] : NULL));