Indexing into an array of textures requires a dynamically uniform expression sample() involves an implicit derivative, and so requires uniform control flow
<rdar://problem/44402999>
The following functions require uniform control flow: ddx() ddy() AllMemoryBarrierWithGroupSync() DeviceMemoryBarrierWithGroupSync() GroupMemoryBarrierWithGroupSync() Sample() SampleBias() Gather() GatherRed() GatherGreen() GatherBlue() GatherAlpha() SampleCmp() GatherCmp() GatherCmpRed() GatherCmp() GatherCmpRed()
Indexing into an array which contains textures requires dynamically uniform expressions. I think that's the only operation.
I suppose this is done now.
Migrated to https://github.com/gpuweb/WHLSL/issues/58