Vulkan Tutorial Code uploaded to Github
Doug Clayton
dougclayton0242 at gmail.com
Tue May 21 13:49:27 UTC 2019
On Saturday, 18 May 2019 at 14:25:27 UTC, KnightMare wrote:
>> I just uploaded a working example of Vulkan working in D (With
>> a Hello World triangle) on Github for anyone interested...
>
> about enums:
> enum SpvCapability_ { SpvCapabilityMatrix = 0, ... };
> // code sample
> obj.someCaps = SpvCapability_.SpvCapabilityMatrix;
>
> IMO better/understandable_enough:
> enum SpvCapability { Matrix = 0, ... };
> // code sample
> obj.someCaps = SpvCapability.Matrix;
Ah, I actually forgot to alias all of the enums in the spirv
bindings correctly so that they can be accessed globally, like
they would be in C++. I'll upload the fixes today.
I didn't alter any of the enum names from the original source in
order to maintain a 1:1 binding. Otherwise, when people are
following other people's code, the names would be completely
different.
Thanks,
Doug
More information about the Digitalmars-d
mailing list