mono / VulkanSharp

Open source .NET binding for the Vulkan API
MIT License
538 stars 61 forks source link

ImageCreateFlags --- error CS1001: Identifier expected #58

Closed plynkus closed 7 years ago

plynkus commented 7 years ago

Found: "error CS1001: Identifier expected" when compiling the repo tip.

Appears to relate to a leading "2D" being emitted in the final generated entry:

[Flags]
public enum ImageCreateFlags : int
{
    SparseBinding = 0x1,
    SparseResidency = 0x2,
    SparseAliased = 0x4,
    MutableFormat = 0x8,
    CubeCompatible = 0x10,
    2DArrayCompatibleKhr = 0x20,
}

...thus an invalid token.

This was built with the latest VS2017RC (not sure that matters).

radekdoulik commented 7 years ago

That's weird. On my system it is generated differently. Like this: https://github.com/mono/VulkanSharp/blob/master/src/Vulkan/Enums.cs#L453

Does it also happen when you rebuild whole project?

plynkus commented 7 years ago

Local issue, apparently. Git reported a clean workspace against tip but I was still seeing the above. A complete wipe and re-clone has it back in order, apparently. Apologies.

radekdoulik commented 7 years ago

Nice, thanks for confirming. Might be a dependency issue. Let me know if you run into it again.