jwollen / SharpVulkan

C# bindings for https://www.khronos.org/vulkan/
MIT License
82 stars 13 forks source link

Setting validate to true in MiniTri results in Vulkan error ValidationFailed #7

Closed jcoder58 closed 8 years ago

jcoder58 commented 8 years ago
SharpVulkan.dll!SharpVulkan.ResultExtensions.CheckError(SharpVulkan.Result result) Line 29  C#
SharpVulkan.dll!SharpVulkan.Device.CreateGraphicsPipelines(SharpVulkan.PipelineCache pipelineCache, uint createInfoCount, SharpVulkan.GraphicsPipelineCreateInfo* createInfos, SharpVulkan.AllocationCallbacks* allocator) Line 876 C#
MiniTri.exe!MiniTri.Sample.CreatePipeline() Line 600    C#
MiniTri.exe!MiniTri.Sample.Initialize() Line 96 C#
MiniTri.exe!MiniTri.Sample.Run() Line 79    C#
MiniTri.exe!MiniTri.Program.Main() Line 32  C#

Vulkan reports:

Error: Attempt to set lineWidth to 0.000000 but physical device wideLines feature not supported/enabled so lineWidth must be 1.0f! ([10] DS) Warning: vkCreateGraphicsPipelines: returned VK_ERROR_VALIDATION_FAILED_EXT, indicating that API validation has detected an invalid use of the API ([1] ParameterValidation)

stefnotch commented 8 years ago

You could post your source code or the relevant lines that cause an error. It looks like your GPU doesn't like line widths that are not 1.

jcoder58 commented 8 years ago

In your project MiniTri, in Sample.cs line 37, change validate = false to validate = true. Compile and run. No other code changes made.

Driver is Nvidia Version 365.10. GPU is GTX870M

jwollen commented 8 years ago

Thanks for the report! Should be fixed.

jcoder58 commented 8 years ago

Out of curiosity, what video card do you use?

I have an MSI GT70 2PC laptop with an embedded Nvidia 870M GPU.