Removing resourceState again. Will be replaced by resource-arrays and bindMasks