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
  • renderer_utils.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    Vulkan: Fix matrix uniforms · b783fbc7
    Shahbaz Youssefi authored May 10, 2019
    A piece of code shared with d3d was used to implement this feature.
    However, we store the uniform data transposed and row-major in d3d to
    accomodate the fact that matrix indexing in HLSL is the opposite of GLSL
    (mat[row][col] in HLSL as opposed to mat[col][row] in GLSL).
    
    There were two functions that copied the source matrix fields either as
    column-major or source-major (corresponding to `transpose` false or true
    respectively in glUniformMatrix*) into a row-major destination.  These
    functions are refactored into one, which copies from any-major source to
    any-major destination.  The HLSL backend uses the "to row-major" variant
    and the Vulkan backend uses the "to column-major" variant.
    
    Bug: angleproject:3198
    Change-Id: I7254da4fbe6916af78c5906abcb82ca01674ab9f
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1607541
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
    b783fbc7
renderer_utils.cpp 21.7 KB
EditWeb IDE
×

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