Commit graph

1915 commits

Author SHA1 Message Date
Sascha Willems
8f88155a72 Remove prebuilt lib 2020-08-22 09:23:46 +02:00
Hanif Ariffin
8b521e2cd9
Don't perform unecessary copy (#727) 2020-08-22 09:21:12 +02:00
Sascha Willems
4ae75d3ee9 Removed unused define 2020-08-21 21:43:18 +02:00
Sascha Willems
7ef936b044 Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-08-21 17:29:43 +02:00
Sascha Willems
e04c084312 Use push constants for fixed object data, some minor code cleanup 2020-08-21 17:27:54 +02:00
Francesco
2210ca22a9
add FreeBSD support (#752)
Signed-off-by: Lucas Francesco <uramekus@cirno.dev>
2020-08-21 16:23:01 +02:00
Sascha Willems
fbc3526c58 Added HLSL shaders for order independent transparency sample 2020-08-21 13:37:05 +02:00
Sascha Willems
38ba5e6f3e Descripton of OIT sample 2020-08-21 10:21:59 +02:00
Sascha Willems
2083a9839c Added Android build files and screenshot for order independent transparency sample 2020-08-21 10:12:55 +02:00
daemyung jang
82747df540
Add Order Independent Transparency example (#755)
* Add Order Independent Transparency example

* Update README.md

* Add copyright at Order Independent Transparency example

* Disable the validation by default
2020-08-21 09:27:06 +02:00
Sascha Willems
d6b61a0952 Ray tracing samples properly handle window resize
Refs #750
2020-08-16 10:28:29 +02:00
Sascha Willems
9e22fe7b0d Add resized flag to base class 2020-08-16 10:22:45 +02:00
Sascha Willems
ee946e2abf
Update ray tracing samples to use VK_KHR_ray_tracing (#753)
* Started updating ray tracing samples to KHR extension

* Updated GLSL shaders to use GL_EXT_ray_tracing

* Code cleanup, naming

* Fix include directories to use Vulkan headers from repository instead of NDK for the Android build

* Added new Android function pointers

* Renamed basic ray tracing sample

Added android build files

* Remove unused batch file

* Replaced remaining NV identifiers

* Updating ray tracing shadow sample to KHR extension

* Updated shaders to use KHR instead of NV extension

Fixed shader bindings

* Updating ray tracing reflections sample to KHR extension

* Renamed ray tracing reflections sample

* Renamed ray tracing shadows sample

Added android build files

* Removed no-longer used batch files for shader generation

* Proper alignment for the shader binding table

* Updated readme

* Reworked shader group setup

* Cleanup

* Reworked shader group setup

* Reworked shader group setup

* Code cleanup
2020-08-15 17:59:02 +02:00
Sascha Willems
e6956acfbd Enable VK_MEMORY_ALLOCATE_DEVICE_ADDRESS_BIT_KHR flag on buffers that are allocated with VK_BUFFER_USAGE_SHADER_DEVICE_ADDRESS_BIT 2020-08-12 20:51:18 +02:00
Sascha Willems
f91bac81ad Merge branch 'master' of https://github.com/SaschaWillems/Vulkan 2020-08-12 17:58:34 +02:00
Sascha Willems
15969d58f2 Updated Vulkan headers to 1.2.150 2020-08-12 17:58:00 +02:00
Sascha Willems
810efdae27
Merge pull request #749 from setoye/patch-1
fix typo
2020-08-09 18:12:02 +02:00
Sascha Willems
b0376aea5e Fixed some compiler warnings and obvious errors 2020-08-09 15:10:28 +02:00
Sascha Willems
583e61ac35 Fixed typos 2020-08-09 14:39:32 +02:00
Sascha Willems
2898671f40 Fixed typos 2020-08-09 13:48:49 +02:00
Sascha Willems
fd5f50f298 Fixed typos 2020-08-09 13:38:33 +02:00
Sascha Willems
de035d3572 Fixed typos 2020-08-09 13:28:03 +02:00
Sascha Willems
a465bad5aa Cleaned up includes
Fixed typos
2020-08-09 13:16:35 +02:00
Sascha Willems
9207090718 Fixed typos 2020-08-09 12:14:12 +02:00
Sascha Willems
76331af78f Remove pragma once from implementation files 2020-08-09 11:56:19 +02:00
Sascha Willems
361535b29e Split texture class into header and implementation
Moved include to base class
2020-08-08 22:54:34 +02:00
Sascha Willems
231e97b8c0 Split device class into header and implementation
Moved include to base class
2020-08-08 22:36:01 +02:00
Sascha Willems
122288fe25 Split buffer class into header and implementation
Moved include to base class
2020-08-08 22:18:35 +02:00
Sascha Willems
abd68cc451 Split swap chain class into header and implementation 2020-08-08 18:48:00 +02:00
Sascha Willems
78f9881ebf Fixed typos 2020-08-08 18:22:10 +02:00
Sascha Willems
5539991ca5 Fixed typos 2020-08-08 18:13:29 +02:00
Sascha Willems
3abe588157 Fixed typos 2020-08-08 13:59:58 +02:00
Sascha Willems
e1ec3b6c78 Fixed typos 2020-08-08 13:25:58 +02:00
Sascha Willems
3e5f545b83 Added current screenshots 2020-08-08 12:28:48 +02:00
Sascha Willems
14536c6ec7 Removed unused Android code 2020-08-06 08:02:27 +02:00
YuTArrUsO
117641ebfb
fix typo
line 751, ttachment -> attachment, transitionss -> transitions
2020-08-02 16:21:57 +08:00
Sascha Willems
9c029b36fa Enable anisotropic filtering if supported by the devices, fixes validation layer message 2020-07-30 21:10:51 +02:00
Sascha Willems
011109020b
Merge pull request #730 from hbina/small_change_in_vkdevice
Use explicit ctor, remove unreachable code, and make functions const
2020-07-30 21:02:14 +02:00
Sascha Willems
dd0ec84481
Merge pull request #499 from AndreasReiten/patch-1
Fix for multisample depth resolve attachment and storeOp for the MSAA color attachment
2020-07-30 20:55:01 +02:00
Sascha Willems
29b5ba5abe
Merge pull request #704 from MattGuerrette/master
Update WM_CLASS property on Linux using xcb
2020-07-30 19:54:09 +02:00
Sascha Willems
524825dcd6
Merge pull request #697 from congyue1977/iss696_crash_Adreno640
fix:Inputattachment demo crash on Adreno 640 GPU
2020-07-28 21:25:06 +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
8526c204e7 Minor code cleanup, better naming and comments 2020-07-19 12:13:42 +02:00
Sascha Willems
8ed41c6ae8 Removed compiler warnings 2020-07-19 11:53:10 +02:00
Sascha Willems
f68c272695 Use textureLod fo GLSL shaders 2020-07-19 11:48:12 +02:00
Sascha Willems
7805b8bbe0 Comment on how cube map arrays are stored in ktx, loop structure 2020-07-19 09:58:16 +02:00
Sascha Willems
dceb349849 Added cube map array sample 2020-07-19 07:07:54 +02:00
Sascha Willems
f49c3d9ede
Merge pull request #737 from manueme/fix/vulkanscene
Fix offset for texture coordinates - vulkanscene example
2020-07-15 06:56:26 +02:00
Sascha Willems
3d347adf30
Merge pull request #741 from Jarreddebeer/yoffset_distancefieldfont
correction to yoffset char positions in distance field fonts example
2020-07-15 06:55:17 +02:00
Sascha Willems
3b117fd2dc Split into header and implementation 2020-07-14 20:17:48 +02:00