Lionel Landwerlin
b073d2753d
test/vulkan: fix/workaround validation errors
2021-08-24 12:21:30 -04:00
Ryan C. Gordon
abba181118
testvulkan: support multiple windows.
...
Fixes #4363 .
2021-08-23 20:20:49 -04:00
David Gow
fbc364908a
Use the new SDL_clamp() macro where sensible
...
There were a few places throughout the SDL code where values were
clamped using SDL_min() and SDL_max(). Now that we have an SDL_clamp()
macro, use this instead.
2021-08-14 09:01:14 -07:00
David Gow
773e1ba19f
testvulkan: Clamp the drawable size to the allowed range
...
SDL_Vulkan_GetDrawableSize() doesn't always return a size which is
within the Vulkan swapchain's allowed image extent range.
(This happens on X11 a lot when resizing, which is bug #3287 )
Clamp the value we get back from SDL_Vulkan_GetDrawableSize() to this
range. Given the range usually is just a single value, this is almost
always equivalent to just using the min or max image extent, but this
seems logically most correct.
2021-08-08 18:06:15 -07:00
Christian Rauch
b972258d56
test: remove unused variables and typedefs
2021-03-29 09:01:26 -07:00
Sam Lantinga
9130f7c377
Updated copyright for 2021
2021-01-02 10:25:38 -08:00
Ozkan Sezer
239c8f1f4c
testvulkan.c: fix -Wmissing-braces warnings. also fix whitespace.
2020-12-24 00:28:50 +03:00
Ryan C. Gordon
c3a32605f8
testvulkan: Patched to compile with SDL's internal Vulkan headers.
2020-11-09 04:55:15 -05:00
Sam Lantinga
a8780c6a28
Updated copyright date for 2020
2020-01-16 20:49:25 -08:00
Ryan C. Gordon
00e5eeb40e
test: added SDLTest_CommonDefaultArgs()
...
This is for test apps that don't need custom command line arguments; it lets
us reduce the boilerplate code a tiny bit.
2019-05-19 01:45:15 -04:00
Sam Lantinga
5e13087b0f
Updated copyright for 2019
2019-01-04 22:01:14 -08:00
Jeremy Ong
a794126d56
vulkan: SDL_Vulkan_GetInstanceExtensions should accept a NULL window.
...
Fixes Bugzilla #4235 .
2018-08-24 09:49:48 -04:00
Sam Lantinga
e3cc5b2c6b
Updated copyright for 2018
2018-01-03 10:03:25 -08:00
Sam Lantinga
37ce9f2773
Fixed typedef redefinition errors when including both SDL_vulkan.h and vulkan.h
...
You should always include vulkan/vulkan.h first, then include SDL_vulkan.h
2017-08-27 23:13:15 -07:00
Sam Lantinga
1f2e151b44
Added Vulkan support to the Visual Studio 2010 solution
2017-08-27 22:20:17 -07:00
Sam Lantinga
071e101837
We use the SDL Vulkan headers
2017-08-27 20:41:48 -07:00
Ryan C. Gordon
c722e58d1f
vulkan: Include a copy of vulkan.h and vk_platform.h.
...
Now we can provide Vulkan support in the build even if the build box doesn't
have a Vulkan SDK, since we dynamically link to the library anyhow.
2017-08-27 23:25:12 -04:00
Sam Lantinga
803fd6d526
Use SDL_Vulkan_GetDrawableSize() instead of SDL_GL_GetDrawableSize()
2017-08-27 19:32:08 -07:00
Ryan C. Gordon
25e3a1ec90
vulkan: Initial Vulkan support!
...
This work was done by Jacob Lifshay and Mark Callow; I'm just merging it
into revision control.
2017-08-27 22:15:57 -04:00