Better handling of cubemaps, requiring dx10 header to pass array size