Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…emoryAllocator.git

subrepo:
  subdir:   "VulkanMemoryAllocator"
  merged:   "f3f5a98ae"
upstream:
  origin:   "https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git"
  branch:   "master"
  commit:   "f3f5a98ae"
git-subrepo:
  version:  "0.4.9"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "cce3d93"
  • Loading branch information
jamievlin committed Dec 14, 2024
1 parent 152ca3b commit 6056e9f
Show file tree
Hide file tree
Showing 261 changed files with 60,109 additions and 0 deletions.
6 changes: 6 additions & 0 deletions VulkanMemoryAllocator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/bin/*
/build/*
!/bin/VmaSample_Release_vs2019.exe
!/bin/VmaSample_Release_vs2022.exe
!/bin/Shader*.spv
.vscode/
12 changes: 12 additions & 0 deletions VulkanMemoryAllocator/.gitrepo
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
; DO NOT EDIT (unless you know what you are doing)
;
; This subdirectory is a git "subrepo", and this file is maintained by the
; git-subrepo command. See https://github.com/ingydotnet/git-subrepo#readme
;
[subrepo]
remote = https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git
branch = master
commit = f3f5a98ae8570d8e8415992f22595047a095fb20
parent = 152ca3ba173546e6a6efe344e5e0746ceb19d334
method = merge
cmdver = 0.4.9
37 changes: 37 additions & 0 deletions VulkanMemoryAllocator/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
language: cpp
sudo: required
os: linux
dist: bionic

branches:
only:
- master

compiler:
- clang
- gcc

before_script:
- sudo apt-get install
- eval "${MATRIX_EVAL}"

install:
- sudo apt-get -qq update
- sudo apt-get install -y libassimp-dev libglm-dev graphviz libxcb-dri3-0 libxcb-present0 libpciaccess0 cmake libpng-dev libxcb-dri3-dev libx11-dev libx11-xcb-dev libmirclient-dev libwayland-dev libxrandr-dev
- export VK_VERSION=1.2.189.0
- wget -O vulkansdk-linux-x86_64-$VK_VERSION.tar.gz https://sdk.lunarg.com/sdk/download/$VK_VERSION/linux/vulkansdk-linux-x86_64-$VK_VERSION.tar.gz?Human=true
- tar zxf vulkansdk-linux-x86_64-$VK_VERSION.tar.gz
- export VULKAN_SDK=$TRAVIS_BUILD_DIR/$VK_VERSION/x86_64

script:
- mkdir -p build
- cd build
- cmake ..
- make

notifications:
email:
recipients:
- [email protected]
on_success: change
on_failure: always
217 changes: 217 additions & 0 deletions VulkanMemoryAllocator/CHANGELOG.md

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions VulkanMemoryAllocator/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
cmake_minimum_required(VERSION 3.15...3.26)

project(VMA VERSION 3.1.0 LANGUAGES CXX)

add_library(VulkanMemoryAllocator INTERFACE)
add_library(GPUOpen::VulkanMemoryAllocator ALIAS VulkanMemoryAllocator)

target_include_directories(VulkanMemoryAllocator INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>)

if (CMAKE_VERSION VERSION_LESS "3.21")
# https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html
string(COMPARE EQUAL ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_SOURCE_DIR} PROJECT_IS_TOP_LEVEL)
endif()

option(VMA_ENABLE_INSTALL "Install VulkanMemoryAllocator" ${PROJECT_IS_TOP_LEVEL})
if (VMA_ENABLE_INSTALL)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)

install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(TARGETS VulkanMemoryAllocator EXPORT VulkanMemoryAllocatorConfig INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
install(EXPORT VulkanMemoryAllocatorConfig NAMESPACE "GPUOpen::" DESTINATION "share/cmake/VulkanMemoryAllocator")

write_basic_package_version_file(VulkanMemoryAllocatorConfigVersion.cmake COMPATIBILITY SameMajorVersion ARCH_INDEPENDENT)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/VulkanMemoryAllocatorConfigVersion.cmake" DESTINATION "share/cmake/VulkanMemoryAllocator")

option(VMA_BUILD_DOCUMENTATION "Create and install the HTML based API documentation")
if(VMA_BUILD_DOCUMENTATION)
find_package(Doxygen REQUIRED)
# set input and output files
set(DOXYGEN_IN ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile)
set(DOXYGEN_OUT ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
# request to configure the file
configure_file(${DOXYGEN_IN} ${DOXYGEN_OUT} @ONLY)
# note the option ALL which allows to build the docs together with the application
add_custom_target(doc_doxygen ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYGEN_OUT}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
COMMENT "Generating API documentation with Doxygen"
VERBATIM
)
install(DIRECTORY docs/ DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/VulkanMemoryAllocator" PATTERN ".nojekyll" EXCLUDE)
endif()

option(VMA_BUILD_SAMPLES "Build samples")
if (VMA_BUILD_SAMPLES)
add_subdirectory(src)
endif()
endif()
Loading

0 comments on commit 6056e9f

Please sign in to comment.