FacticiusVir / SharpVk

C# Bindings for the Vulkan API & SPIR-V
MIT License
147 stars 18 forks source link

Generator Syntax Error #26

Closed sunkin351 closed 7 years ago

sunkin351 commented 7 years ago

Files: LayerProperties.cs PhysicalDeviceProperties.cs

screenshot: screenshot

Have it remove the uint to int conversion, its really not needed anyway. Edit: It does need it, sorry, but it isnt accepting the conversion either because the conversion would make it "non-constant".

FacticiusVir commented 7 years ago

Interesting; this is using the Mono compiler? Will look at changing the Size constants to regular ints for cross-compatibility.

sunkin351 commented 7 years ago

That fixed it. Before I close this, (This is off-topic, I am sorry, I have not found a good solution to this yet.) how would you recommend going about getting an XCB window handle (connection and window index) for linux with this? I have tried to get it with unmanaged code but there have been many issues.

FacticiusVir commented 7 years ago

I'm not hugely familiar with .NET on Linux, I'm afraid, but I was looking at moving the sample code to something like GLFW to make them cross-platform; I'll have a look this weekend and see what I can get working.

sunkin351 commented 7 years ago

That would be awesome, please do. :)