Fix support for nested generic intrinsics (#1462)
Fix support for nested generic intrinsics (#1462)

The logic that detects intrinsic functions during emit was not able to properly detect an intrinsic generic method nested in a generic type. The basic problem was that this led to a `specialize(specialize(...), ...)` in the IR, which wasn't being handled (only one level of `specialize` was handled). The fix is local and simple.

The larger issue was that the author of this commit had thought our IR ruled out nested generics like this, when in fact that is precisely how we handle nested generics throughout the IR. This oversight/misunderstanding means that we might have broken passes in other places that assume nested generics cannot happen. This change doesn't pretend to fix that other issue, but we should pay attention to it.
shader-slang/slang,shader-slang/slang,csyonghe/slang,csyonghe/slang,csyonghe/slang,shader-slang/slang