projectGenerator icon indicating copy to clipboard operation
projectGenerator copied to clipboard

Question about including Metal shaders as part of an addon

Open sortofsleepy opened this issue 7 years ago • 0 comments

👋

Running into some minor, though annoying issues when starting up new projects with the generator. Unsure if this is a projectGenerator or Xcode issue but figured I might as well ask here first.

Quick background - I'm starting to make use of Metal shader files for ofxARKit. Two strange things have popped up.

  1. Metal shaders are initially treated as "Data" and thus, not correctly read by Xcode. The curious part is that when you go to change the file type(by highlighting the file and looking at the "identify and type" section), XCode appears to recognize it as a Metal shader as that is what the default selection is set to. 😕

  2. I need the Metal shader to get included as a compiled source but I can't seem to figure out how to get the project generator to do so. I thought I could add it by changing the ADDON_SOURCES value in a addon_config.mk file but that does not appear to work.

I realize Metal is probably not a high priority at the moment so it's ok if this is not going to be fixed anytime soon, but if there happens to be any ideas as to how to solve these 2 issues or where I ought to start looking, it'd be greatly appreciated!

Thanks!

sortofsleepy avatar Jul 29 '18 15:07 sortofsleepy