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
  • compiler
  • translator
  • TranslatorVulkan.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    Vulkan: Remove special output of structs and keep them in AST · cc56e1aa
    Shahbaz Youssefi authored Apr 09, 2021
    The code that separated out declaration of nameless structs from uniform
    variable declarations is generalized to separate out declaration of all
    structs from uniform variable declarations.
    
    As a result, a pass that outputs the struct types at the top of the
    shader is no longer necessary.  The struct declarations are kept in the
    AST to be output to GLSL as they normally would when not used in
    conjunction with uniform variables.
    
    After this change, the Vulkan and Metal translators no longer intermix
    transformations and code generation; transformations are done first
    entirely in AST, and code generation is done at the end.
    
    Bug: angleproject:2461
    Bug: angleproject:4889
    Change-Id: Ieb4d3f7091845e50c3dc399603ab01182692521d
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2818153
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    Reviewed-by: 's avatarTim Van Patten <timvp@google.com>
    cc56e1aa
TranslatorVulkan.cpp 54.4 KB
EditWeb IDE
×

Replace TranslatorVulkan.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.