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
  • include
  • platform
  • FeaturesVk.h
Find file
BlameHistoryPermalink
  • Ian Elliott's avatar
    Vulkan: Implement Android pre-rotation · e488d8b8
    Ian Elliott authored Feb 26, 2020
    As an Android GLES driver on top of Vulkan, ANGLE must pre-rotate
    rendering on behalf of the application.  This involves modifying the
    vertex shader to multiply gl_Position with a mat2 "rotation matrix".
    Not doing so means that SurfaceFlinger (SF) will perform a costly
    rotation blit before presenting every image.  Setting
    WindowSurfaceVk::mPreTransform to mCurrentTransform tells SF to not do
    the blit.
    
    When the surface is rotated 90 or 270 degrees, the width and height
    must be swapped for:
    
    - The swapchain images, and for any depth, stencil, and/or multisample
      attachments used with the swapchain image.
    
    - The viewport, scissor, and render area.
    
    Because the Metal back-end shares the TranslatorVulkan, it will define
    the same preRotation (mat2) DriverUniform that is used for Vulkan.
    
    Bug: angleproject:3502
    Change-Id: I968dbe8869ba0f50de18dd41f1195e847c06b545
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2038272
    Commit-Queue: Ian Elliott <ianelliott@google.com>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    e488d8b8
FeaturesVk.h 14.6 KB
EditWeb IDE
×

Replace FeaturesVk.h

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.