When (if ever) is this supported? What must I do to make it supported?
Long story short, I noticed that Shader.PropertyToID is marked threadsafe and is static. So I tried to give it a FixedString64Bytes by passing in $"{myFixedString}"
. This produced the following error:
structs with characters that do not have the 'CharSet=CharSet.Unicode' StructLayout are not supported for external-function functions
Interestingly, the error says nothing about string being managed, which makes me think that this is close to being possible.
For kicks I tried wrapping FixedString64Bytes inside a struct with the specified attribute, but that produced the same error.