Reply to Metal Inline Functions @Graphics and Games Engineer For example: kernel void test(constant _4D& insh) { uint shape = index4D(&insh, 2, 2, 2, 2); ... } Can you post how you would use it? Graphics & Games Metal 1w