dotnet / dotnet/Silk.NET

Issue with Vulkan/MoltenVK creating GLFW window for macOS

Open
#2,440 0 comments 2 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
5.2k
Forks
477
Avg merge
3d 16h
Merged PRs (30d)
2

Description

# Summary
There seems to be an issue with Silk.NET version 2.22 and 2.21 when trying to create GLWF window on macOS using Vulkan. For version 2.20 it works fine but for mentioned versions I'm getting error: "**Silk.NET.Windowing.Glfw.dll: 'Attempted to initialize a Vulkan window using GLFW, which doesn't support Vulkan on this computer.'**"

# Steps to reproduce
Simple code:
```c#
public void Initialize()
{
// Create a window
var options = WindowOptions.DefaultVulkan;
options.Size = new Silk.NET.Maths.Vector2D(800, 600);
options.Title = "Test Window";

window = Window.Create(options);
window.Initialize(); // Error: Silk.NET.Windowing.Glfw.dll: 'Attempted to initialize a Vulkan window using GLFW, which doesn't support Vulkan on this computer.'

window.Load += OnLoad;
window.Render += OnRender;
window.Closing += OnClose;

window.Run();
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.