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

Commit 7445bd7b authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Clarify GPU API requirements for BufferUsage" into main

parents 5b9d41b2 9db00ec7
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 */