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
  • Vulkan
  • VkMemory.cpp
Find file
BlameHistoryPermalink
  • Alexis Hetu's avatar
    Linux build fix · e70c3514
    Alexis Hetu authored Oct 17, 2018
    On linux, clang is unable to find the Cast() function used in the
    templated destroy() function unless it has already been defined
    before the template function. This forces us to make sure all
    Cast() functions are available, but simply adding the vulkan objects'
    header files in VkMemory.h would cause a circular dependency, which,
    while it would be properly guarded by the preprocessor directives,
    wouldn't guarantee any include order, due to the nature of circular
    dependencies. So, to fix the issue, a new header file, called
    VkDestroy.h was added, which can depend on all vulkan objects' header
    files without creating a circular dependency.
    
    Also fixed some warnings.
    
    Change-Id: I1f343a8c476d6308d4555009848a234b0695661e
    Reviewed-on: https://swiftshader-review.googlesource.com/c/21668Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
    Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
    e70c3514
VkMemory.cpp 1.21 KB
EditWeb IDE
×

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