Jump to page: 1 2
Thread overview
Vulkan
Feb 13, 2018
Ivan Trombley
Feb 13, 2018
Danni Coy
Feb 14, 2018
rikki cattermole
Feb 17, 2018
Danni Coy
Feb 17, 2018
Jonathan M Davis
Feb 17, 2018
rumbu
Feb 14, 2018
flamencofantasy
Feb 16, 2018
Ivan Trombley
Feb 14, 2018
Mike Parker
Feb 14, 2018
Mike Parker
Feb 16, 2018
Ivan Trombley
Feb 17, 2018
Zoadian
Feb 17, 2018
Rubn
Feb 17, 2018
Peter Campbell
February 13, 2018
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
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
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
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
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
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
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
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
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
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.
« First   ‹ Prev
1 2