GL_APPLE_shader_framebuffer_fetch gl_lastFragData [英] GL_APPLE_shader_framebuffer_fetch gl_lastFragData

查看:604
本文介绍了GL_APPLE_shader_framebuffer_fetch gl_lastFragData的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple推出了一个名为GL_APPLE_shader_framebuffer_fetch的新着色器扩展,它允许完全可编程混合。还有一个解释功能的wwdc视频。这是2012年wwdc的视频513。

Apple introduced a new shader extension called GL_APPLE_shader_framebuffer_fetch, which allows fully programmable blending. There is also a wwdc video explaining the functionallity. It's the video 513 of wwdc 2012.

可悲的是,这个扩展程序对我不起作用。

Sadly this extension doesn’t work for me.

F-Shader:

#extension GL_APPLE_shader_framebuffer_fetch : require

varying lowp vec4 colorVarying;

void main(void) {
    gl_FragColor = gl_lastFragData[0] + vec4(colorVarying.x, colorVarying.y, colorVarying.z, 1.0);
}

调试输出:
扩展名'GL_APPLE_shader_framebuffer_fetch'不受支持

Debug output: extension ‘GL_APPLE_shader_framebuffer_fetch’ is not supported

尝试在iOS 6.0 iPad模拟器上运行它在实际的iPad上运行6.0

Tried to run it on the iOS 6.0 iPad Simulator ‘n on an actual iPad with 6.0

怎么可能?我该怎么做才能真正使用此扩展程序?

How can that be? What do I have to do to actually use this extension?

推荐答案

尝试 GL_EXT_shader_framebuffer_fetch 它被称为 GL_APPLE_shader_framebuffer_fetch Beta中的,但它在最终版本中重命名(根据iOS6发行说明)。

Try GL_EXT_shader_framebuffer_fetch it was called GL_APPLE_shader_framebuffer_fetch in the Beta, but it got renamed in the final release (according to the iOS6 release notes).

这篇关于GL_APPLE_shader_framebuffer_fetch gl_lastFragData的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆