Results 1 to 2 of 2

Thread: Reading in Z-buffer

  1. #1
    Junior Member
    Join Date
    Sep 2004

    Reading in Z-buffer


    I was wondering whether it is possible to read in z-buffer of the current framebuffer using GL ES? From the specs I gathered that glReadPixels support only RGBA read and not the DEPTH_COMPONENT read that is required here. If it is not possible with GL ES can the same thing be done using egl? Any help on the subject is highly appreciated.

  2. #2

    Re: Reading in Z-buffer


    The spec doesn't allow reading of depth buffer for a good reason. For some HW implementations providing readback capability from depth buffer is ever worse than reading back the frame buffer.

    It can be provided as a vendor-specific extension though (e.g., for SW only rasterizers).


Similar Threads

  1. JOCL - reading CL-Buffer fails
    By r00t in forum OpenCL
    Replies: 1
    Last Post: 05-15-2011, 05:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean