Get or allocate buffers for the given resource If the buffer already exists but has different sizing characteristics the allocation fails. The number of buffers will equal the size of the InElementCount array. But if the allocation fails, the returned array will be empty.