Code Monkey home page Code Monkey logo

gettingstartedwithmetal's People

Contributors

haroldserrano avatar roldie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

wradley

gettingstartedwithmetal's Issues

Blank screen when running ("returning nil because device is nil")

@haroldserrano: Thank you for sharing so much information about game engine programming including the tutorials you made. This is very valuable!

I just started to follow your course https://www.haroldserrano.com/blog/getting-started-with-metal-api and there, a link brought me to this repo. Interesstingly enough, it brought me to a branch within the repo called MetalBasics. I used the ZIP downloader, unzipped and opened the XCode project. I am on macOS 10.14 with XCode 11.3.1.

I then went to the Scheme and deactivated ""Metal API validation" as I saw this in one of your videos about installing the Untoldengine. After compiling and running for the target for the iPhone 11 Pro (simulator, no real device), this is the error messages I get, i.e. it does not work, there is a blank screen:

2020-02-08 09:05:48.990969+0100 GettingStartedMetal[8193:4425166] [CAMetalLayer nextDrawable] returning nil because device is nil.
2020-02-08 09:05:48.997626+0100 GettingStartedMetal[8193:4425166] [CAMetalLayer nextDrawable] returning nil because device is nil.
2020-02-08 09:05:49.011861+0100 GettingStartedMetal[8193:4425166] [CAMetalLayer nextDrawable] returning nil because device is nil.`

[... it goes on like this ...]

P.S.: Unrelated to the error, but do I need to do this in the iOS emulator or can I just run the sample as a macOS app?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.