I can't find this in doc. Is there any way to declare helper function argument as resource (as in interlocked intrinsic functions)? I want to make my own general atomic function working on resource and declaring argument as uint returns compile error.
error X3669: Resources being indexed cannot come from conditional expressions, they must come from literal expressions.
Index is available at compile time, so I hope it is just some fancy syntax problem.