Export (0) Print
Expand All

texture::get_depth_pitch Method

Visual Studio 2013

Returns the number of bytes between each depth slice in a 3D staging texture on the CPU.

unsigned int get_depth_pitch() const restrict(cpu);

The number of bytes between each depth slice in a 3D staging texture on the CPU.

Given the address of any element in the first depth slice of the staging texture, you can add depth_pitch to calculate the address of the same element in the second depth slice of the same texture, and similarly for subsequent depth slices. The value of depth_pitch compensates for the size of the texture elements as well as any additional padding that might exist between depth slices and between rows within each depth slice.

Header: amp_graphics.h

Namespace: concurrency::graphics

Show:
© 2014 Microsoft