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
  • ShaderStorageBlockOutputHLSL.cpp
Find file
BlameHistoryPermalink
  • Shahbaz Youssefi's avatar
    Use TSpan for TType's array sizes · 86d9c93a
    Shahbaz Youssefi authored Dec 16, 2019
    Until C++20, std::vector doesn't have a constexpr constructor, which
    means TType cannot use a `TVector` for `mArraySizes` if an arrayed type
    needs to be created constexpr.  This is needed for the upcoming
    textureGatherOffsets implementation.
    
    A new TSpan class is introduced, based on std::span (from C++20) that
    holds the pointer/size allocated from a TVector without owning it.
    Since TVector's allocation are made from a pool, the allocated memory
    will live beyond the vector's destruction.  `TType::mArraySizes` is
    changed to this type.
    
    This change will allow a new constexpr constructor to be added to TType
    that takes a TSpan as array directly, a value which is constexpr
    initialized from a static array (instead of TVector).
    
    Bug: angleproject:3569
    Change-Id: I78793b0f4c64519e0ebe30cf6e0de995ba70035d
    Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1968260Reviewed-by: 's avatarJiajia Qin <jiajia.qin@intel.com>
    Reviewed-by: 's avatarShahbaz Youssefi <syoussefi@chromium.org>
    Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
    86d9c93a
ShaderStorageBlockOutputHLSL.cpp 25.7 KB
EditWeb IDE
×

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