add samplelayout by code 3d