November 08, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | On Friday, 8 November 2013 at 02:57:25 UTC, Andrej Mitrovic wrote: > On 11/3/13, evilrat <evilrat666@gmail.com> wrote: >> https://github.com/evilrat666/directx-d > > Nice! > > I tried porting one of the samples from the SDK but it uses > D3DX11CompileFromFile which is missing in the bindings. > > MSDN says they recommend not using it (well.. why are they using it in > the samples then?: > http://msdn.microsoft.com/en-us/library/windows/desktop/ff476261%28v=vs.85%29.aspx > > So maybe it's not worth binding it? No idea. :) its already in the bindings https://github.com/evilrat666/directx-d/blob/master/src/directx/d3dx11async.d#L79 however i may forgot to add public import this module in d3dx11. |
November 08, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | On 11/8/13, evilrat <evilrat666@gmail.com> wrote:
> its already in the bindings https://github.com/evilrat666/directx-d/blob/master/src/directx/d3dx11async.d#L79
>
> however i may forgot to add public import this module in d3dx11.
Ah, I forgot to check for updates. Awesome, there's a triangle example now. Thanks!
|
November 08, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | On Sunday, 3 November 2013 at 05:27:24 UTC, evilrat wrote: > please be careful though, as it is only in alpha stage and missing some stuff. current version is June 2010 SDK, but i update it(to win8 sdk version) once i had win8 machine(i'm still don't have a PC at home). > Hi evilrat, I've been thinking about this for a while, maybe you know about SharpDX. https://github.com/sharpdx/SharpDX It parses DirectX SDK headers and provide C# DirectX bindings + marshalling code (based on gccxml C++ parser). I wonder how involved would it be to modify its generation tool (https://github.com/sharpdx/SharpDX/tree/master/Source/Tools/SharpGen) to output D bindings instead. |
November 08, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | On Sunday, 3 November 2013 at 05:27:24 UTC, evilrat wrote:
> Greetings,
> many of you may notice lack of (up-to-date and working) DirectX bindings, one may also seen my activity on d.learn sub forum. so let me announce yet another bindings for DirectX which one may fork right now from github!
>
> https://github.com/evilrat666/directx-d
>
> please be careful though, as it is only in alpha stage and missing some stuff. current version is June 2010 SDK, but i update it(to win8 sdk version) once i had win8 machine(i'm still don't have a PC at home).
>
> also, there is no d3d9 and d3d10 stuff as i consider it outdated now, but i would appreciate pull requests for them anyway :)
great, however it seems has a little problem, the arg of
ID3D11DeviceContext.Unmap should be ID3D11Resource not
ID3D11Resource*, arg of IASetIndexBuffer should be ID3D11Buffer
not ID3D11Buffer*
|
November 08, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to liyu | On Friday, 8 November 2013 at 11:37:38 UTC, liyu wrote:
> On Sunday, 3 November 2013 at 05:27:24 UTC, evilrat wrote:
>> Greetings,
>> many of you may notice lack of (up-to-date and working) DirectX bindings, one may also seen my activity on d.learn sub forum. so let me announce yet another bindings for DirectX which one may fork right now from github!
>>
>> https://github.com/evilrat666/directx-d
>>
>> please be careful though, as it is only in alpha stage and missing some stuff. current version is June 2010 SDK, but i update it(to win8 sdk version) once i had win8 machine(i'm still don't have a PC at home).
>>
>> also, there is no d3d9 and d3d10 stuff as i consider it outdated now, but i would appreciate pull requests for them anyway :)
>
> great, however it seems has a little problem, the arg of
> ID3D11DeviceContext.Unmap should be ID3D11Resource not
> ID3D11Resource*, arg of IASetIndexBuffer should be ID3D11Buffer
> not ID3D11Buffer*
uh, yes, it has some problems, this is semi-automatic coversion bindings, and i have missed some stuff. thanks for pointing out.
|
November 08, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to ponce | On 11/8/13, ponce <contact@gam3sfrommars.fr> wrote: > I've been thinking about this for a while, maybe you know about > SharpDX. > https://github.com/sharpdx/SharpDX > > It parses DirectX SDK headers and provide C# DirectX bindings + marshalling code (based on gccxml C++ parser). If you need a gccxml XML loader you could grab this code: https://github.com/AndrejMitrovic/dgen/blob/master/src/dgen/parser/gccxml.d It's not exactly a self-hosting module, there's a few dependencies. I also have a fork of gccxml that exports some additional attributes (and documents some things as well): https://github.com/AndrejMitrovic/gccxml Don't even ask about that project though, it's something I /might/ get back to at one point, but I'm way too busy with other stuff. |
November 08, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
On 11/8/13, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote:
> Don't even ask about that project though, it's something I /might/ get back to at one point, but I'm way too busy with other stuff.
This is referring to dgen, not gccxml.
|
November 11, 2013 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | On Friday, 8 November 2013 at 02:57:25 UTC, Andrej Mitrovic wrote:
> On 11/3/13, evilrat <evilrat666@gmail.com> wrote:
>> https://github.com/evilrat666/directx-d
>
> Nice!
>
> I tried porting one of the samples from the SDK but it uses
> D3DX11CompileFromFile which is missing in the bindings.
>
> MSDN says they recommend not using it (well.. why are they using it in
> the samples then?:
> http://msdn.microsoft.com/en-us/library/windows/desktop/ff476261%28v=vs.85%29.aspx
>
> So maybe it's not worth binding it? No idea. :)
indeed this is not recommended to use, and there are no more such function on windows 8. i'm also need to fix xaudio example too :(
|
February 03, 2014 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | it has been for a long time since i released this bindings, so i wonder if anyone uses this in their projects? it would be nice to see some results of projects using this bindings :) |
February 03, 2014 Re: DirectX bindings | ||||
---|---|---|---|---|
| ||||
Posted in reply to evilrat | Am 03.02.2014 10:55, schrieb evilrat:
> it has been for a long time since i released this bindings, so i wonder
> if anyone uses this in their projects? it would be nice to see some
> results of projects using this bindings :)
I'm currently using them. But there is nothing showabe yet. I will keep you posted.
|
Copyright © 1999-2021 by the D Language Foundation