Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
S
swiftshader
  • 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
  • swiftshader
  • Repository

Switch branch/tag
  • swiftshader
  • src
  • System
  • Types.hpp
Find file
BlameHistoryPermalink
  • Ben Clayton's avatar
    System/Types: Add support for vec3 · ac160bd3
    Ben Clayton authored Sep 28, 2020
    Non-power of two vector types were previously not supported as they would be misaligned.
    Use a `constexpr` function to ensure the `alignas` is rounded to the next POT.
    
    While the memory layout for vec3 will be identical to a vec4, this allows us to specialize templates to distinguish between `vec3` and `vec4`.
    This is used by the debugger to display `vec3` locals without showing an undefined `w` component.
    
    Bug: b/145351270
    Change-Id: I61f61e42e69d367b1a625c262be970994b287433
    Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48708Tested-by: 's avatarBen Clayton <bclayton@google.com>
    Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Kokoro-Result: kokoro <noreply+kokoro@google.com>
    ac160bd3
Types.hpp 4.8 KB
EditWeb IDE
×

Replace Types.hpp

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.