Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS samples #18

Merged
merged 6 commits into from
May 27, 2018
Merged

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