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

Give a bit more context as to *where* to put code #23

Open
PaperPrototype opened this issue Jul 1, 2021 · 3 comments
Open

Give a bit more context as to *where* to put code #23

PaperPrototype opened this issue Jul 1, 2021 · 3 comments

Comments

@PaperPrototype
Copy link

I know this is a bit nuanced, but it saves a lot of questions and problems for the reader / student. Here is where the problem arose

"
Setting up the callback to place it into the MTKView is very easy, since MTKView actually provides most of the implementation for us. We just need to tell the commandBuffer to present into the MTKView's drawable:

// Tell Metal to send the rendering result to the MTKView when rendering completes
commandBuffer.present(view.currentDrawable!)

"

(By the way, I love your tutorials! I am making some of my own here https://github.com/PaperPrototype/Intro-Voxel-Terrain-in-Unity maybe sometime we can work together since I want to make courses on "Intro to Render Pipelines")

@PaperPrototype
Copy link
Author

I also am not getting a red window...

@PaperPrototype
Copy link
Author

Basically does endEncoding() need to come after commandBuffer.commit()?

@PaperPrototype
Copy link
Author

Got it working

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

No branches or pull requests

1 participant