Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • libANGLE
  • renderer
  • vulkan
  • ContextVk.cpp
Find file
BlameHistoryPermalink
  • Charlie Lao's avatar
    Vulkan: Fool proof packed attachment index to vulkan and from OpenGL · 06b4fb92
    Charlie Lao authored Sep 11, 2020
    ANGLE packs FBO attachments from OpenGL and uses packed attachments to
    create VkFramebuffer and renderpass. When we use attachment index into
    the attachment array, we must be very careful to use packed index for
    vulkan objects. It is easy to make mistakes here and introduce hard to
    debug bugs. This CL defines a PackedAttachmentIndex class that uses that
    to index into vulkan attachments and pass around APIs so that compiler
    would catch the error when wrong index is used. This also introduces
    PackedClearValuesArray that stores clear value in packed attachment
    index so that it is impossible to mix it with ClearValuesArray that
    stores clear value in GL attachment index.
    
    Bug: b/167301719
    Change-Id: I68680522c60beeb5096e5211eaef89da28c7097e
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2410366
    Commit-Queue: Charlie Lao <cclao@google.com>
    Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    06b4fb92
ContextVk.cpp 195 KB
EditWeb IDE
×

Replace ContextVk.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.