|
slot 0.0.1
A real time UI render framework
|
#include <slang-gfx.h>
Public 属性 | |
| void const * | data |
| Pointer to texel data for the subresource tensor. | |
| gfx::Size | strideY |
| gfx::Size | strideZ |
Data for a single subresource of a texture.
Each subresource is a tensor with 1 <= rank <= 3, where the rank is deterined by the base shape of the texture (Buffer, 1D, 2D, 3D, or Cube). For the common case of a 2D texture, rank == 2 and each subresource is a 2D image.
Subresource tensors must be stored in a row-major layout, so that the X axis strides over texels, the Y axis strides over 1D rows of texels, and the Z axis strides over 2D "layers" of texels.
For a texture with multiple mip levels or array elements, each mip level and array element is stores as a distinct subresource. When indexing into an array of subresources, the index of a subresoruce for mip level m and array index a is m + a*mipLevelCount.
| void const* gfx::ITextureResource::SubresourceData::data |
Pointer to texel data for the subresource tensor.
| gfx::Size gfx::ITextureResource::SubresourceData::strideY |
Stride in bytes between rows of the subresource tensor.
This is the number of bytes to add to a pointer to a texel at (X,Y,Z) to get to a texel at (X,Y+1,Z).
Devices may not support all possible values for strideY. In particular, they may only support strictly positive strides.
| gfx::Size gfx::ITextureResource::SubresourceData::strideZ |
Stride in bytes between layers of the subresource tensor.
This is the number of bytes to add to a pointer to a texel at (X,Y,Z) to get to a texel at (X,Y,Z+1).
Devices may not support all possible values for strideZ. In particular, they may only support strictly positive strides.