博覧会:
1) My viewport is 800x600
2) I have tex1 = frame buffer object; rendered to a texture, 800x600
3) I have tex2 = frame buffer object; rendered to a texture, 800x600
ここで、画面に次の画像を作成します。
tex1 _on top of_ tex2.
Where tex1 is black, display tex2's pixel.
Else, display tex1's pixel.
この最後のステップを完全に GPU で実行する方法はありますか (少しいじって画面に表示するだけのようです)。私の現在の解決策には、1) tex1 と tex2 を CPU のメモリに読み込んで戻す、2) CPU で配列操作を実行する、3) それを GPU に送り返してから表示する、が含まれます。ただし、これを完全に GPU で実行できるはずです。
ありがとう!