Profile Photo
I've got a .h file set up just like in the Metal Xcode template (I copy and pasted the relevant content from one of those files into another existing project not made from the template), but when I define a struct in there similar to how it's defined in the template, my Swift code isn't finding the definition - so the compiler says the struct type… (Show more)
in Metal
Profile Photo
For the color values I'm passing to my Metal shaders, I'm wanting to have them in P3 since the content of my MTKView is something that makes sense to have in P3. My question is that because these values are stored in extended sRGB (as recommended in WWDC 2016 605 What's New In Metal Part 2), what's the range (below 0.0 and above 1.0) that these… (Show more)
in Metal
Profile Photo
I posted a question in the playgrounds section of the forums regarding an issue with Metal in Swift playgrounds: Metal playground not setting up MTLLibrary with makeDefaultLibrary(), but I figured someone might better know on a general level whether Metal even works in playgrounds or not. I'm not sure if I'm putting my shader file in the correct… (Show more)
in Metal
Profile Photo
I have a UIViewController subclass that I made in a regular app, and I tried moving it over to my playground, but there are some layout issues happening in the playground that weren't in the regular app (and there were no Auto Layout-related messages in the console when running the app). I've got a UIStackView pinned to the bottom of the view… (Show more)
in WWDC Scholarships
Profile Photo
What is the correct way to detect device orientation changes in Swift Playgrounds? One of the views in my Playground Book needs to be manually adjusted when the device rotates, but it doesn't appear that any of the standard approaches are working. It seems like this question has been asked a few times in the past (see… (Show more)
in WWDC Scholarships