#How do detect if a type is burst compatible using Roslyn?
1 messages · Page 1 of 1 (latest)
type must be unmanaged
you probably just want to apply this constraint somewhere else
what do you mean by that?
don't make your codegen all knowing, trying to cover all niche cases
if user does something bad - then compiler will throw error anyway
and for example
EntityManager overloads explicitly define unmanaged, IComponentData
which makes acceptable input 100% burst compatible at compile time
Aight, I won't try to make my codegen all-knowing. Was just wondering if there was a straighforward way to check if any ITypeSymbol is burst compatible (which it might be even when it's seen as managed code by roslyn)