Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9db00ec7 authored by John Reck's avatar John Reck
Browse files

Clarify GPU API requirements for BufferUsage

Bug: 283989374
Test: n/a doc only change
Change-Id: I4caec722420d4fa2089d1f297f377408a1e674ae
parent 83bee8b1
Loading
Loading
Loading
Loading
+68 −56
Original line number Diff line number Diff line
@@ -41,10 +41,22 @@ enum BufferUsage {
    /** buffer is often written by CPU */
    CPU_WRITE_OFTEN = 3 << 4,

    /** buffer is used as a GPU texture */
    /**
     * Buffer may be used as a GPU texture
     *
     * Buffers allocated with this flag must be
     * texturable both in EGL/GL & Vulkan via
     * their respective external memory extensions
     */
    GPU_TEXTURE = 1 << 8,

    /** buffer is used as a GPU render target */
    /**
     * Buffer may be used as a GPU render target
     *
     * Buffers allocated with this flag must be
     * renderable both in EGL/GL & Vulkan via
     * their respective external memory extensions
     */
    GPU_RENDER_TARGET = 1 << 9,

    /** bit 10 must be zero */