Skip to content

Add test for Metal APIs new in iOS 12 #20834

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

Merged
merged 1 commit into from
Nov 29, 2018
Merged

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Nov 28, 2018

These APIs were used in the test for macOS only, but now with the iOS 12
they can also be called on iOS, so let's test them.

@moiseev
Copy link
Contributor Author

moiseev commented Nov 28, 2018

@swift-ci Please test macOS platform

@moiseev
Copy link
Contributor Author

moiseev commented Nov 28, 2018

@swift-ci Please smoke test Linux platform

1 similar comment
@moiseev
Copy link
Contributor Author

moiseev commented Nov 28, 2018

@swift-ci Please smoke test Linux platform

encoder.setViewports([MTLViewport()])
encoder.setScissorRects([MTLScissorRect(x:0, y:0, width:1, height:1)])
#elseif os(iOS)
if #available(iOS 12.0, *) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can combine these two branches. That's what the * in #available is for.

@moiseev
Copy link
Contributor Author

moiseev commented Nov 29, 2018

@swift-ci Smoke test

@moiseev moiseev merged commit f4a2b8f into swiftlang:master Nov 29, 2018
@moiseev moiseev deleted the metal-test branch November 29, 2018 19:02
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