amerkoleci / Vortice.Vulkan

Cross platform .NET bindings for Vulkan, VMA, SPIRV-Cross and shaderc
MIT License
284 stars 26 forks source link

Triangle sample - instable colors #50

Open isolin opened 1 day ago

isolin commented 1 day ago

When I run the Sample 02 with a triangle, I always get a different result. Sometimes three colors (RGB) are present, but mostly there is something missing. This changes each time I run the example without any code editing. Just a repeated dotnet run. I have the feeling that blue is always present, but red and green are often substituted by black. Any what could be the cause or how to search for it?

The correct one: image

Wrong results, randomly obtained: image image image

isolin commented 1 day ago

When I change the color to a single one, e.g. green then I get either all an black or all an green triangle.

amerkoleci commented 1 day ago

Not sure whats wrong here, never happened to me actually

isolin commented 1 day ago

In the cases when it messes up, there is also alpha wrong. I assume it will be some sort of a memory issue. Positions are always correct, though. And surprisingly, having a constant blue always yields a correct result.