Writing to the Frame Buffer

Can someone tell me how to set the framebuffer write mode to accumulate and also explain what it means.

Kirk Barham


Answer this question

Writing to the Frame Buffer

  • punkouter

    Thanks for the info.

    I want to perform matrix vector multipliaction on the GPU.

    What I have done is transfer the matrix values to a 1xN texture, t0.

    I also transfer the values in the vector to a another 1xN texture, t1.

    I access the current texel using the following.
    float4 value1 = tex2D(t0, input.tc);

    How can I get the get the next texel...can I peak ahead

    Kirk Barham



    *
    Microsoft.com Home|Site Map
    MSDN*
    Search Microsoft.com for:

    c 2005 Microsoft Corporation. All rights reserved. Terms of Use |Trademarks |Privacy Statement
    Microsoft


     

  • ChunXiong1982

    The Frame buffer aka the Front Buffer is a buffer that holds the pixel data of what you will see on the screen. While the frame buffer is giving data to the monitor to display the contents of the next frame are being packed in the back buffer.

    A simple diagram illustrates this:
    [Front Buffer] <----- [Back Buffer]
    |                                                   ^
    -----------------------------------|
    So from the back buffer the information gets sent to the front buffer and displayed by the monitor.

    "Can someone tell me how to set the framebuffer write mode to accumulate and also explain what it means."
    When you invoke the Draw* calls you are actually buffering data to be sent to the frame buffer. I hope this is what you mean by accumulating The data gets accumulated until you all the Present() method which will then send the contents of the back buffer to the front buffer (frame buffer).

    I hope this helps.
    Take care.


  • Writing to the Frame Buffer