Jump to page: 1 2
Thread overview
Vulkan
5 days ago
Ivan Trombley
5 days ago
Danni Coy
1 day ago
Danni Coy
1 day ago
rumbu
5 days ago
flamencofantasy
2 days ago
Ivan Trombley
4 days ago
Mike Parker
4 days ago
Mike Parker
2 days ago
Ivan Trombley
2 days ago
Zoadian
2 days ago
Rubn
5 days ago
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?
5 days ago
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.


5 days ago
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
4 days ago
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.
4 days ago
On Wednesday, 14 February 2018 at 02:40:18 UTC, Mike Parker wrote:

>
> What doesn't it mean

Eh, what *does* it mean.
4 days ago
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 ;)

2 days ago
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.
2 days ago
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.
2 days ago
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.
2 days ago
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