Skip to content

Material::compile() callback? #7525

Closed Answered by gibssa
gibssa asked this question in Q&A
Discussion options

You must be logged in to vote

Closing the loop on this (forgot about this one):

  1. Material::compile was indeed enough to get a callback working to show a loading screen (I tried to make sure shader variants that I requested at runtime matched what I actually use; hopefully I'm not doing extra work).
  2. Doesn't look like there's a way to precompile to .metallib.
  3. Looks like matc (filamat) is indeed targeting MSL, which still needs to get compiled on-device.

Hope this is helpful for posterity.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gibssa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant