Christian Forfang
33cb572058
Minor fix to access mask
...
- Given newLayout = LAYOUT_SHADER_READ_ONLY_OPTIMAL, upcoming
usage is unlikely to be TRANSFER_READ_BIT.
- dstAccessMask = FRAGMENT_SHADER makes more sense
2021-09-05 12:17:12 +02:00
Sascha Willems
3b1ff1eece
Ray tracing samples can now also use the UI overlay
...
General cleanup, changed default settings.overlay value
2021-08-28 12:59:10 +02:00
Sascha Willems
ab2d4060d2
Merge pull request #860 from per-mathisen-arm/benchmark1frame
...
Add option to only render a given number of frames.
2021-07-31 13:05:35 +02:00
Per Inge Mathisen
488aa9c220
Fix rayquery demo to not require full raytracing support.
2021-07-29 12:22:47 +02:00
Per Inge Mathisen
5f72b0faa3
Add option to only render a given number of frames.
...
This is useful on very slow targets, such as GPU emulators.
2021-07-29 12:15:58 +02: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
Sascha Willems
434546625f
Updated Vulkan Headers to 1.2.178
...
Don't use VK_NULL_HANDLE for queue family
Fixes #839
2021-05-17 20:39:41 +02:00
Tomek Bury
b212fa0840
Don't fail on startup when input device(s) are not present
...
The wl_seat protocol may not be available unless input devices (keyboard,
mouse) are connected to the compositor on the target system.
Warn but continue executing examples with default settings.
2021-05-04 17:31:34 +01:00
Per Inge Mathisen
45ba247b55
Add support for rendering for the headless extension
2021-04-27 13:53:07 +02:00
Sascha Willems
a2a604be47
Fix benchmark options
...
Fixes #815
2021-03-13 14:12:35 +01:00
Sascha Willems
35288a6f2b
Added comment on oldSwapChain
2021-03-02 07:33:18 +01:00
Per Inge Mathisen
5042f46388
Fix compile warning and crash in SSAO test.
...
emptyTexture was not initialized, so when destroying it the
destroy Vulkan functions were called with bogus pointers.
2021-02-15 12:30:38 +01:00
Sascha Willems
adfc509ebe
Merge pull request #795 from Lucodivo/patch-1
...
Remove unnecessary comparison
2021-01-29 16:34:06 +01:00
Sascha Willems
165b66a718
Reworked command line argument handling ( #804 )
...
* Reworked command line argument handling
Added a new class to handle these
2021-01-29 15:40:52 +01:00
Sascha Willems
ca17431794
Merge pull request #797 from caramelli/master
...
Fix long options for width and height
2021-01-28 19:39:49 +01:00
jeromenxp
1b22456d07
Change scope of validationExt and validationLayerName variables
...
Pointer to a variable declared into a block statement is stored and used outside of the block by vkCreateInstance. This can lead to segmentation fault.
Move the declaration of validationExt/validationLayerName outside of the block to fix the crash.
2021-01-18 17:41:41 +01:00
Witold Baryluk
be24a9c583
Add VK_PHYSICAL_DEVICE_TYPE_CPU to string
2021-01-07 19:54:33 +00:00
Nicolas Caramelli
9f00c24388
Fix long options for width and height
2021-01-07 17:05:42 +01:00
Connor Haskins
750a37f633
Remove unnecessary comparison
...
It is not possible for swapchainPresentMode to ever be VK_PRESENT_MODE_MAILBOX_KHR given the break in the above if block
2020-12-20 01:17:40 -08:00
Sascha Willems
3cf8fb81e3
Merge branch 'master' of https://github.com/SaschaWillems/Vulkan
2020-12-12 08:21:10 +01:00
Sascha Willems
a369e6ed96
Apply shader group handle alignment where required
...
Fixes #787
2020-12-12 08:20:33 +01:00
Jakub Kuderski
66a4f5af22
Don't use pragma once in .cpp file
...
Fix a compiler warning.
2020-12-04 15:02:18 -05:00
Sascha Willems
08be260685
Updated ray tracing samples to final ray tracing extensions
2020-11-23 12:15:57 +01:00
Sascha Willems
3cb3df4cbf
Merge branch 'variable_rate_shading'
2020-09-13 10:28:03 +02:00
Nicolas Caramelli
c13a715ead
Add DirectFB WSI support ( #761 )
2020-09-13 10:12:33 +02:00
Sascha Willems
144c0b66c0
Create empty texture to be used with materials that miss e.g. normal maps
2020-09-12 12:48:26 +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
85bf87125b
Added additional flags for binding texture maps and only rendering opaque/masked/blended meshes
2020-09-05 12:12:47 +02:00
Sascha Willems
5d594acb02
Bugfix for checking enabled instance extensions
2020-08-29 11:32:48 +02:00
Sascha Willems
af49951afb
Removed unused include
2020-08-29 10:43:01 +02:00
Sascha Willems
1d815e6ced
Better handling of device creation failure
2020-08-27 22:32:49 +02:00
Sascha Willems
8374d6cd68
Code cleanup, changed message for missing enabled device extensions
2020-08-27 22:24:43 +02:00
Sascha Willems
de61539799
Store instance extensions, reworked support check
2020-08-27 19:56:02 +02:00
Jérôme Leclercq
3298455373
Output warning to stderr if an extension is not supported ( #756 )
2020-08-27 19:36:24 +02:00
Sascha Willems
d5be770f55
Merge branch 'master' of https://github.com/SaschaWillems/Vulkan
2020-08-24 20:04:53 +02:00
Sascha Willems
236a424955
Fixed full screen mode for resolutions different than current desktop size
2020-08-24 20:04:46 +02:00
datenwolf
fd202bfc76
xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error ( #720 )
...
* xcb_connect always returns nonnull pointer, errors must be checked with xcb_connection_has_error: Fixed the error check to conform to XCB and assert nonnull pointer
* merged with newest master from upstream (tagged ktx)
Co-authored-by: Wolfgang Draxinger <code@datenwolf.net>
Co-authored-by: datenwolf <dw@kraeh.datenwolf.net>
2020-08-24 08:01:23 +02:00
Sascha Willems
d32663d569
Merged #729
2020-08-23 18:05:39 +02:00
Hanif Ariffin
8b521e2cd9
Don't perform unecessary copy ( #727 )
2020-08-22 09:21:12 +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
2083a9839c
Added Android build files and screenshot for order independent transparency sample
2020-08-21 10:12:55 +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
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
a465bad5aa
Cleaned up includes
...
Fixed typos
2020-08-09 13:16:35 +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