Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BastianBlokland
Copy link
Contributor

Added basic port of the samples to MacOS running on the MoltenVK library. For window-management its using a thin objective-c layer. (source of native obj-c: https://github.com/BastianBlokland/macwindow-dotnet). Nothing close to production ready but it maybe its a start for someone who wants to make a c# vulkan renderer that runs on MacOS.

Copy link
Owner

@discosultan discosultan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a ton, @BastianBlokland! MacOS samples are super helpful 🎉

I left a couple notes regarding formatting (tabs vs spaces) but other than that, looking good to me.

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Copy link
Owner

@discosultan discosultan May 27, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed tabs and spaces; should be spaces only

new ClearScreenApp()))
{
window.Initialize();
window.Run();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed tabs and spaces

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed tabs and spaces

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed tabs and spaces

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed tabs and spaces

private readonly VulkanApp _app;

private NativeMacOS.NativeApp _nativeApp;
private NativeMacOS.NativeWindow _nativeWindow;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed tabs and spaces

{
handle = LibDLGetProcAddress(_handle, procName);
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mixed tabs and spaces

@BastianBlokland
Copy link
Contributor Author

Thanks. Sorry for the tabs, we use tabs at the office and forgot that my editor was set to tabs 😅 Should be fixed now.

@discosultan discosultan merged commit f000b5e into discosultan:master May 27, 2018
@BastianBlokland BastianBlokland deleted the macos-samples branch June 6, 2018 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants