Solved by ptrblck in post #4 
              
              
                The D dimension should define the “depth” of a volume for 3D inputs or parameters. 
While 2-dimensional data defines spatial dimensions as height and width, 3-dimensional data uses depth, height, and width.