SDL2 Android vulkan question
evilrat
evilrat666 at gmail.com
Sun May 2 12:35:51 UTC 2021
On Sunday, 2 May 2021 at 08:58:30 UTC, Danny Arends wrote:
> Any thoughts on why loading the Vulkan library using SDL2 would
> not work ?
> thoughts in general about the process ?
Just few tips.
GC "crashes" since you have custom main, D default main has
runtime initialization code so it "just works", in you custom
main function try to do this before any call to D code.
https://dlang.org/phobos/core_runtime.html#.Runtime.initialize
```d
extern(C) main()
{
import core.runtime;
Runtime.initialize();
scope(exit)
Runtime.terminate();
}
```
As for SDL2, are you sure it was built with Vulkan support?
Do you have any other Vulkan apps to test if it actually
supported by your device?
More information about the Digitalmars-d-learn
mailing list