Struct TextureViewDescription
Describes a View for a Texture.
public struct TextureViewDescription
- Inherited Members
- Extension Methods
Fields
ArraySlice
The index of the array slice.
public int ArraySlice
Field Value
Remarks
If the Texture is not a Texture Array, only a single slice is assumed, so this should be zero (i.e. the first index).
Flags
A combination of flags determining what kind of Texture the View is attached to and how it should behave (i.e. how it is bound, how can it be read / written, etc.).
- If this field is None, the View is reusing the same flags as its parent Texture.
- For any other value, this field overrides the flags of the parent Texture.
public TextureFlags Flags
Field Value
Format
The pixel format of the View (used for the Shader Resource View or Unordered Access View).
public PixelFormat Format
Field Value
MipLevel
The index of the mip-level.
public int MipLevel
Field Value
Remarks
If the Texture has a single mipmap, this should be zero (i.e. the first index).
Type
A value of ViewType indicating which sub-resources the View can see (single mip, band, or full).
public ViewType Type
Field Value
Methods
ToStagingDescription()
Returns a copy of this description modified to describe a Texture View that will be used for staging.
public readonly TextureViewDescription ToStagingDescription()
Returns
- TextureViewDescription
A staging-compatible copy of the View description.