Thread overview | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 13, 2018 Vulkan | ||||
---|---|---|---|---|
| ||||
I wanted to do some experimentation with Vulkan using D. None of the projects that I found (derelict-vulkan, d-vulkan and erupted) work. Are there D bindings to Vulkan that actually work? |
February 14, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley Attachments:
| On Wed, Feb 14, 2018 at 8:20 AM, Ivan Trombley via Digitalmars-d < digitalmars-d@puremagic.com> wrote: > I wanted to do some experimentation with Vulkan using D. None of the projects that I found (derelict-vulkan, d-vulkan and erupted) work. > > Are there D bindings to Vulkan that actually work? > strictly speaking you don't need a binding, you can access C code directly as long as you write compatible header definitions for the parts of vulkan you are actually using in your code. eg extern(C) int someExternalCLibraryFunction (); auto a = someExternalCLibraryFunction(); Just make sure that you link to that C Library when you build. If you do this on an as needed basis It's not too painful. |
February 14, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley | On Tuesday, 13 February 2018 at 22:20:15 UTC, Ivan Trombley wrote: > I wanted to do some experimentation with Vulkan using D. None of the projects that I found (derelict-vulkan, d-vulkan and erupted) work. > > Are there D bindings to Vulkan that actually work? Maybe these work, not sure; https://github.com/Rikarin/VulkanizeD |
February 14, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley | On Tuesday, 13 February 2018 at 22:20:15 UTC, Ivan Trombley wrote:
> I wanted to do some experimentation with Vulkan using D. None of the projects that I found (derelict-vulkan, d-vulkan and erupted) work.
>
> Are there D bindings to Vulkan that actually work?
What doesn't it mean to say they don't work? Have you reported any issues? I don't see any in the DerelictVulkan repo. If something's broken, please report it so it can be fixed.
|
February 14, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Wednesday, 14 February 2018 at 02:40:18 UTC, Mike Parker wrote:
>
> What doesn't it mean
Eh, what *does* it mean.
|
February 14, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Danni Coy | On 13/02/2018 10:54 PM, Danni Coy wrote:
>
> On Wed, Feb 14, 2018 at 8:20 AM, Ivan Trombley via Digitalmars-d <digitalmars-d@puremagic.com <mailto:digitalmars-d@puremagic.com>> wrote:
>
> I wanted to do some experimentation with Vulkan using D. None of the
> projects that I found (derelict-vulkan, d-vulkan and erupted) work.
>
> Are there D bindings to Vulkan that actually work?
>
>
> strictly speaking you don't need a binding, you can access C code directly as long as you write compatible header definitions for the parts of vulkan you are actually using in your code.
Which is then called a binding ;)
|
February 16, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Mike Parker | On Wednesday, 14 February 2018 at 02:40:18 UTC, Mike Parker wrote:
> What [does] it mean to say they don't work? Have you reported any issues? I don't see any in the DerelictVulkan repo. If something's broken, please report it so it can be fixed.
Derelict-vulkan is Windows only ATM.
|
February 16, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to flamencofantasy | On Wednesday, 14 February 2018 at 00:22:25 UTC, flamencofantasy wrote:
> Maybe these work, not sure;
>
> https://github.com/Rikarin/VulkanizeD
Thanks, I'll check this out.
|
February 17, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley | On Friday, 16 February 2018 at 22:58:30 UTC, Ivan Trombley wrote:
> On Wednesday, 14 February 2018 at 02:40:18 UTC, Mike Parker wrote:
>> What [does] it mean to say they don't work? Have you reported any issues? I don't see any in the DerelictVulkan repo. If something's broken, please report it so it can be fixed.
>
> Derelict-vulkan is Windows only ATM.
Actually someone added posix support. Just forgot to flag a new release. (I did not test posix support myself yet).
If there are other issues please file them on GitHub.
|
February 17, 2018 Re: Vulkan | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ivan Trombley | On Friday, 16 February 2018 at 22:58:30 UTC, Ivan Trombley wrote: > On Wednesday, 14 February 2018 at 02:40:18 UTC, Mike Parker wrote: >> What [does] it mean to say they don't work? Have you reported any issues? I don't see any in the DerelictVulkan repo. If something's broken, please report it so it can be fixed. > > Derelict-vulkan is Windows only ATM. The only difference is the one specific function for creating the surface. You are better off using something like SDL2 for creating the window anyways, which takes care of the only OS specific code of vulkan. None of the types also have default value set to the proper value. https://github.com/Zoadian/DerelictVulkan/blob/master/source/derelict/vulkan/types.d#L1102 It's not that difficult to add though, the name of the struct name is pretty much the type enum name but with all caps and underscores. A simple regex replace and formatting easily adds most of them. |
Copyright © 1999-2021 by the D Language Foundation