Commit graph

68 commits

Author SHA1 Message Date
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
MattGuerrette
67fbbbf10d prefixed runtime output directory with CMAKE_SOURCE_DIR to be more explicit. 2016-11-01 17:43:38 -04:00
saschawillems
55f16c2340 Added missing examples to CMakeLists 2016-10-31 21:32:54 +01:00
saschawillems
54ddca7c08 Added Android build files and seettings for SSAO example 2016-10-30 13:49:30 +01:00
saschawillems
b54e424d1b Implement make_unique, only require c++11 in CMakeLists (Fixes #235, Refs#167) 2016-09-20 21:04:16 +02:00
Aun-Ali Zaidi
3277f038e0
cmake: Add scenerendering demo to CMakeLists.txt 2016-09-17 13:00:05 -05:00
saschawillems
4db98481c0 Decoupled noise generation from 3D texture setup, added Android build files 2016-09-10 20:49:14 +02:00
saschawillems
9b7a1ba720 Added texture mip map generation example to CMakeLists 2016-08-15 16:51:13 +02:00
Sascha Willems
55721b4166 Added indirect draw and terrain tessellation examples to CMakeLists.txt 2016-08-03 20:43:18 +02:00
saschawillems
d47d6a126a Added deferred shadows example to CMakeLists 2016-07-19 21:22:48 +02:00
saschawillems
4bef4ca134 Added text overlay example to cmake and android build 2016-05-07 15:59:08 +02:00
d3x0r
6a7dc1b9c3 CMAKE_CXX_FLAGS is overwritten when later adding /Esc option. 2016-04-21 13:36:01 -07:00
Philipp Zabel
b6f3b7614b Fix compilation of multithreading example on Debian with CMake 3.5.1
Compilation of the multithreading example on Debian with CMake 3.5.1 would
fail with the following error because ${PTHREAD} was not set:
    [ 61%] Linking CXX executable bin/multithreading
    /usr/bin/ld: CMakeFiles/multithreading.dir/multithreading/multithreading.cpp.o: undefined reference to symbol 'pthread_create@@GLIBC_2.2.5'
This patch uses ${CMAKE_THREAD_LIB_INIT} [1] instead, initialized using
find_package(Threads REQUIRED).

[1] https://cmake.org/cmake/help/v2.8.12/cmake.html#module:FindThreads
2016-04-03 11:14:47 +02:00