Added assets as submodule

This commit is contained in:
Sascha Willems 2023-05-09 20:47:41 +02:00
parent ed8be7e92d
commit 0b3f8340e3
4 changed files with 7 additions and 18 deletions

4
.gitmodules vendored
View file

@ -1,3 +1,7 @@
[submodule "external/glm"] [submodule "external/glm"]
path = external/glm path = external/glm
url = https://github.com/g-truc/glm url = https://github.com/g-truc/glm
[submodule "assets"]
path = assets
url = https://github.com/SaschaWillems/Vulkan-Assets
branch = main

View file

@ -39,7 +39,7 @@ You can find this repository at https://github.com/KhronosGroup/Vulkan-Samples
As I've been involved with getting the official repository up and running, I'll be mostly contributing to that repository from now, but may still add samples that don't fit there in here and I'll of course continue to maintain these samples. As I've been involved with getting the official repository up and running, I'll be mostly contributing to that repository from now, but may still add samples that don't fit there in here and I'll of course continue to maintain these samples.
## Cloning ## Cloning
This repository contains submodules for external dependencies, so when doing a fresh clone you need to clone recursively: This repository contains submodules for external dependencies and assets, so when doing a fresh clone you need to clone recursively:
``` ```
git clone --recursive https://github.com/SaschaWillems/Vulkan.git git clone --recursive https://github.com/SaschaWillems/Vulkan.git
@ -53,11 +53,8 @@ git submodule update
``` ```
## Assets ## Assets
Many examples require assets from the asset pack that is not part of this repository due to file size. A python script is included to download the asset pack that. Run
python download_assets.py **Important notice:** As of may 2023 assets have been moved to a [submodule](https://github.com/SaschaWillems/Vulkan-Assets). If you have cloned the repository before this date, you may need to initialize and update submodules. If you do a fresh clone, no action is required to get the assets.
from the root of the repository after cloning or see [this](data/README.md) for manual download.
## Building ## Building

1
assets Submodule

@ -0,0 +1 @@
Subproject commit cef63c5c44cd0ad53e778ccdb150ff3b650183ab

13
data/README.md vendored
View file

@ -1,13 +0,0 @@
# Getting the assets
Binary assets (models, textures, etc.) are not stored in this repository and need to be downloaded manually.
## Downloading the assets
### Option 1: Run the python script
Run the [download_assets.py](../download_assets.py) python script which will download the asset pack and unpacks it into the appropriate folder.
### Option 2: Manual download
Download the asset pack from [https://vulkan.gpuinfo.org/downloads/vulkan_asset_pack_gltf.zip](https://vulkan.gpuinfo.org/downloads/vulkan_asset_pack_gltf.zip) and extract it in the ```data``` directory.