This function looks for resources specified in ResourceTableMap in the parameter map, adds them to the resource table, and removes them from the parameter map. If a resource is used from a currently unmapped uniform buffer we allocate a slot for it from UsedUniformBufferSlots. Returns false if there's any internal error.