Commit graph

80 commits

Author SHA1 Message Date
Tom Hochstein
5606406604 Revert recent change to assets install for cross-compile
Since existing textures and models are still installed at the root, it
didn't have any noticeable effect other than to create an empty folder.
The change was made because it looked like it should be updated like
the shaders folder, but it wasn't solving any problem, so switching
it back seems the best.
2023-07-12 10:08:04 -05:00
Tom Hochstein
83d8d02b64 Fix runtime shaders path for cross-compile case 2023-07-12 10:06:19 -05:00
Tom Hochstein
c773b27db8 Fix install location for assets and shaders
This fixes the following error for the cross-compile case, where
RESOURCE_INSTALL_DIR=/usr/share/vulkan-demos:
```
Error: Could not open shader file \"/usr/share/vulkan-demos/shaders/glsl/renderheadless/triangle.frag.spv\"
```
2023-07-10 09:03:58 -05:00
Sascha Willems
8a686e0380 CMake min version bump 2023-06-08 16:09:45 +02:00
Karmjit Mahil
56f9e79f8c Fix make install with RESOURCE_INSTALL_DIR not finding shader dir 2023-05-19 15:16:10 +01:00
Sascha Willems
69bb4d6ac0 Path lookup 2023-05-10 21:10:59 +02:00
Sascha Willems
c13ba757b7 Changed assets and shader path functions, removed asset download script 2023-05-09 21:05:01 +02:00
Stephen Saunders
b1f10d7393 Fix CMakeLists.txt for vulkanExamples.xcodeproj build, fix macOS storyboard for resizable window, set animation rate based on display refresh period 2022-07-07 09:57:01 -04:00
Sascha Willems
0887881eac
Merge pull request #832 from per-mathisen-arm/master
Add support for rendering with the headless extension
2021-06-05 15:10:30 +02:00
Tomek Bury
2d47dc6e9c Use pkg_get_variable() for wayland-protocols dir
The CMake function uses cross-compilation setup of the project so it
finds protocols available for the target system.
2021-05-04 17:31:30 +01:00
Per Inge Mathisen
45ba247b55 Add support for rendering for the headless extension 2021-04-27 13:53:07 +02:00
Philip Rideout
6e2c1a3a6b
Update CMakeLists.txt (#770)
This fixes the build errors that look like:

    source file is not valid UTF-8

This was due to CMake adding object files to the command line after the `-x` argument, which caused them to be interpreted as Objective C++ source code.
2020-11-18 09:17:20 +01:00
Nicolas Caramelli
c13a715ead
Add DirectFB WSI support (#761) 2020-09-13 10:12:33 +02:00
daemyung jang
ad6e36023f
Run on MacOS (#762)
* Run on MacOS

* Update BUILD.md
2020-09-11 20:19:28 +02:00
Sascha Willems
feb939096f
Merge glTF branch (#747)
* Added helper function for easy pipeline vertex input state create info structure setup from glTF model vertex class

* Split glTF loader into header and implementation

* Updated sample to use glTF

* Removed collada files

Replaced assets are now part of the asset pack

* Return value for glTF model vertex input state create info helper

* Removed unused assets

* Use glTF assets

* Added default material for glTF node's without materials

* Use glTF assets

* Apply pre-transforms to normals

* Use glTF assets

* Use glTF assets

* Use vertex input state from glTF model class

* Scene setup

* Use glTF assets

* Use glTF assets

* Display error message and exit if glTF file could not be loaded

* Use glTF assets

* Use glTF assets

* Use glTF assets

* Remove unused buffer binds

* Use glTF assets

* Remove no longer used model files

* Remove no longer used model files

* Added support for rendering glTF models with images

* glTF model normal pre-transform ignores translation

* Use glTF assets

* Use glTF assets

* Use glTF assets

* Use glTF assets

* Use glTF assets

* Only add combined image samplers to pool if actually used in the scene

* Use global descriptor set layouts

* Use global descriptor set layouts

* Use glTF assets

* Use glTF assets

* Use glTF assets

Code cleanup
Updated GLSL and HLSL shaders

* Use glTF assets

Code cleanup

* Use glTF assets

Code cleanup
Updated GLSL and HLSL shaders

* Remove no-longer used model

* Use glTF assets

Code cleanup
Updated GLSL and HLSL shaders

* Use glTF assets

Code cleanup
Updated GLSL and HLSL shaders
Removed no-longer used model

* Use glTF assets

Code cleanup
Use RGBA texture instead of different compressed formats
Removed no-longer used assets

* Adnrdoid build file

* Use glTF assets

Code cleanup and refactoring
Updated GLSL and HLSL shaders

* Added vertex count and way of passing additional memory property type flags to glTF loader

* Use glTF assets

Updated GLSL and HLSL shaders
Removed no-longer used assets

* Use glTF assets

Updated GLSL and HLSL shaders

* Remove unfinished sample

* Completely reworked push constants sample

Use glTF assets
Updated GLSL and HLSL shaders
Removed no-longer used assets

* Android CMake build files

* Removed un-used asset

* Explicit buffer binding function

* Use glTF assets

Code cleanup
Updated GLSL and HLSL shaders

* Use glTF assets

Code cleanup

* Use glTF assets

Code cleanup
Removed no-longer used assets

* Use glTF assets

Code cleanup
Updated GLSL and HLSL shaders
Removed no-longer used assets

* Remove no-longer used asset

* Use glTF assets

Code cleanup and refactoring
Performance optimizations
Updated GLSL and HLSL shaders
Removed no-longer used assets

* Use glTF assets

Code cleanup and refactoring
Updated GLSL and HLSL shaders
Removed no-longer used assets

* Use glTF assets

Code cleanup and refactoring
Updated GLSL and HLSL shaders
Removed no-longer used assets

* Use glTF assets

Code cleanup and refactoring
Removed no-longer used assets

* Use glTF assets

Code cleanup and refactoring
Removed no-longer used assets

* Use glTF assets

Code cleanup and refactoring

* Use glTF assets

Code cleanup and refactoring

* Use glTF assets

Code cleanup and refactoring
Removed no-longer used assets

* Pass vertex size and calculate multiplier in shaders instead of hard-coding

With this, changes to the glTF vertex structure won't break the ray tracing samples

* Load tangents (if present)

* Use glTF assets

Code cleanup and heavy refactoring
Reworked debug display code

* Android build

* Normal mapping fixes

Udpated HLSL shaders

* Use glTF assets

Code cleanup and heavy refactoring
Reworked debug display code
Updated GLSL and HLSL shaders

* Code cleanup, comments

* Use glTF assets

Code cleanup and heavy refactoring
Reworked debug display code
Updated GLSL and HLSL shaders

* Added sample count to framebuffer create info

* Removed no-longer used assets

* Android build

Removed no-longer used assets

* Code cleanup and heavy refactoring

Updated GLSL and HLSL shaders
Use tangents stored in GLSL instead of calculating them in the fragment shader

* Renamed textured PBR sample main cpp file

* Use glTF assets

Code cleanup and refactoring
Updated GLSL and HLSL shaders
Removed no-longer used assets

* Use glTF assets

Removed no-longer used assets

* Android build files

* Android build files

* Use glTF assets

Removed no-longer used assets

* Fixed HLSL shaders

* Android build files

* Use glTF assets

Updated GLSL and HLSL shaders
Removed no-longer used assets

* Use glTF assets

Updated GLSL and HLSL shaders
Removed no-longer used assets

* Added flag to disable glTF image loading

Useful for samples that use their own textures or don't use textures at all to speed up loading

* Use glTF assets

Code cleanup
Use Sponza scene instead of Sibenik to better highlight the effect
Updated GLSL and HLSL shaders

* Updated Android build files

* Removed left-over comment

* Use Sponza scene for the SSAO sample

* Removed unused code

* Removed ASSIMP

No longer required as all samples now use the glTF file format

* Added missing vertex shader stage

* Removed old ASSIMP-based model loader

* Added support for loading external glTF images from ktx

Android fixes for loading external buffer files

* Scene setup

* Added missing shader stages

* Removed ASSIMP from build files

* Fixed compiler warning

* Removed ASSIMP from readmes

* Android build files cleanup

* Replaced ktx submodule with only the files required for this repo

The ktx submodule was a tad too big and contained lots of files not required for this repo

* Moved ktx build files into base project

* Use glTF assets

* Use glTF assets

* Removed license files, will be moved to asset pack

* Use RGBA textures

* Use RGBA cubemp texture with face assignment based on original images

Refs #679

* Android build files

* Removed textures

All textures will be moved to the asset pack

* Ignore asset folders

* Removed font

Fonts will be moved to the asset pack

* Link to gltf asset pack

* Updated gitignore

* Android build file
2020-07-28 20:20:38 +02:00
Sascha Willems
44413ff57e Updated CMAKE C++ standard flags
Fixes #688
2020-04-19 18:26:24 +02:00
Sascha Willems
535c693ab2 C++11 flag only for C++ 2019-08-03 13:28:15 +02:00
Sascha Willems
1a6042e82d Started replacing gli with libktx 2019-08-02 20:41:44 +02:00
Sascha Willems
6a73419f38 Added support for Turing Shader extensions to CMake example build function 2019-04-22 17:47:22 +02:00
Sascha Willems
b58375f6ad Output wayland xdg headers into proper directory
Refs #567
2019-04-13 12:13:11 +02:00
Sascha Willems
dbe3f01283 Fix for cmake C++11 definiton 2019-01-20 10:44:56 +01:00
Scott Moreau
203ea178d0 wayland: Port to xdg-shell stable
Wayland compositors and clients are expected to support the xdg-shell
stable protocol over the deprecated wl_shell protocol.
2019-01-16 01:33:34 -07:00
saschawillems
d6e0b714ea Added tinygltf as external dependency 2018-09-03 20:27:15 +02:00
saschawillems
d53b098017 Removed -wall flag (too many warnings from external files)
Fixes #491
2018-07-14 10:45:15 +02:00
saschawillems
94a076e1ae Moved example source files into sub folder 2017-11-12 19:32:09 +01:00
saschawillems
a17e3924b3 Added pipeline statistics query example 2017-11-12 14:19:01 +01:00
saschawillems
f504d7cb0c Added headless rendering example to CMakeLists 2017-09-20 20:52:19 +02:00
saschawillems
1e4944a9e1 Added minimal headless compute example 2017-09-14 22:17:48 +02:00
Sascha Willems
a3b8534e5f Merge pull request #352 from jku/install
Support installing demos, support out-of-tree builds
2017-09-02 14:02:34 +02:00
Jean-Philippe Bruyère
977f0318b7 make base as library 2017-08-17 20:50:28 +02:00
saschawillems
e05de0b93a Added stencil buffer outlining example 2017-08-16 21:02:08 +02:00
Jussi Kukkonen
7798901a46 Support installing demos, support out-of-tree builds
This is especially useful for cross-compile situation where testing
happens on target.

-DRESOURCE_INSTALL_DIR=<path> decides where data is installed (and
where the binaries will load the data from): if it's left empty,
then nothing will be installed and binaries will load the data from
CMAKE_SOURCE_DIR.

Binaries are now correctly built in CMAKE_BINARY_DIR.
2017-07-04 18:12:04 +03:00
saschawillems
18df00c7b4 Add shaders as filters to examples (visual studios) 2017-07-01 13:28:31 +02:00
cksingamala
ee87687365 CMakeLists.txt updated to fix, "visual studio project debug version giving error on flag Wextra" 2017-05-26 13:52:16 +05:30
saschawillems
90a95b495a Added pbrtexture to CMakeLists.txt 2017-05-11 20:28:49 +02:00
Sascha Willems
5912aa0a7c Merge pull request #103 from 1ace/add-debug-flags
Add some debug warnings
2017-04-23 12:09:26 +02:00
saschawillems
dba54b09b3 Added imgui example to CMakeLists.txt [skip ci] 2017-04-22 11:50:13 +02:00
saschawillems
70ae00042f Added new samples to CMakeLists.txt 2017-03-25 12:16:29 +01:00
saschawillems
a09de3b953 Added hdr example to CMakeLists 2017-02-04 11:46:36 +01:00
Tomek Bury
570d9bc6ee Add Wayland WSI support 2017-02-02 08:54:56 +00:00
saschawillems
826a4ba44a Disable missing switch statements warning for clang 2017-01-09 20:24:16 +01:00
Mika Laitio
67383cb444 allow bundled Vulkan lib also with newer cmakes
Remove REQUIRED flag for the Vulkan library
search that are used if CMake version > 3.7.

This will allow the configuration and build fall back
of searching the internal vulkan library versions that
are bundled within this repo. (In case that the user
has not installed vulkan libraries under /usr)

Signed-off-by: Mika Laitio <lamikr@pilppa.org>
2017-01-08 02:04:23 -08:00
saschawillems
3d9350d960 Added Android and CMake builds for specialization constants example 2017-01-01 15:56:44 +01:00
saschawillems
d89b45eaf2 Added Android build files for dynamic uniform buffer example 2016-12-23 11:20:17 +01:00
saschawillems
deed78921c Added screenshot taking example 2016-12-17 00:13:55 +01:00
saschawillems
2674c7c404 Added compute shader n-body particle simulation demonstrating the use of shared compute shader memory 2016-11-26 13:52:22 +01:00
saschawillems
7cd95fc8c8 Use FindVulkan CMake module if version >= 3.7.0 (refs #225) 2016-11-12 13:33:21 +01:00
Sascha Willems
f8766d8ce7 Prefer lib from installed SDK if present, update Linux library 2016-11-05 17:17:46 +01:00
Shi Yan
6989e12f2a add README for using Direct to Display swapchain and fix a typo. 2016-11-04 15:40:22 -07:00
Shi Yan
9b5127f894 add direct to display wsi swapchain option
direct to display swapchain needs to be enabled at compile time with option -DUSE_D2D_WSI=ON

currently tested under linux
2016-11-04 14:04:34 -07:00