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

Qt: set Vulkan surface in gs_frame #5267

Merged
merged 1 commit into from
Oct 20, 2018
Merged

Conversation

hcorion
Copy link
Member

@hcorion hcorion commented Oct 19, 2018

This is needed for MoltenVK on MacOS, however the Vulkan->MoltenVK correlation was only established in Qt 5.12, so if you want to test MoltenVK (hint: it doesn't work nearly as well as gfx-rs/portability) you'll need to use the Qt 5.12 Beta as of right now.

Requesting review from @Megamouse

Copy link
Contributor

@Megamouse Megamouse left a comment

Choose a reason for hiding this comment

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

Did you test this with windows and linux ?

@@ -28,6 +28,9 @@ constexpr auto qstr = QString::fromStdString;
gs_frame::gs_frame(const QString& title, const QRect& geometry, QIcon appIcon, bool disableMouse)
: QWindow(), m_windowTitle(title), m_disable_mouse(disableMouse)
{
// Needed for MoltenVK to work properly on MacOS
if (g_cfg.video.renderer == video_renderer::vulkan)
Copy link
Contributor

Choose a reason for hiding this comment

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

why not put this in front of the other setters?
Also.... vertical spacing?

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this block should be behind a preprocessor select for apple only.

@Megamouse Megamouse merged commit db40cbd into RPCS3:master Oct 20, 2018
@vit9696 vit9696 mentioned this pull request Nov 10, 2018
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.

None yet

3 participants