Enum ViewType
Defines what sub-resources (mip-levels, array elements) from a GraphicsResource are selected by a View.
public enum ViewType
- Extension Methods
Fields
ArrayBand = 2A band Texture View containing all the mip level Texture elements from the specified mip level and array index.
Here is an example of what the resulting View will cover with a Texture Array of 3, each with 3 mip levels when specifying a mipmap level index of 1, and a array index of 1:
Array slice 0 1 2 ┌───┬───┬───┐ 0 │ │ │ │ ■ = Selected M ├───┼───┼───┤ □ = Not selected i 1 │ │ ▓ │ │ p ├───┼───┼───┤ 2 │ │ ▓ │ │ └───┴───┴───┘Full = 0Gets a Texture View for the whole Texture and for all mips/arrays dimensions.
Here is an example of what the resulting View will cover with a Texture Array of 3, each with 3 mip levels:
Array slice 0 1 2 ┌───┬───┬───┐ 0 │ ▓ │ ▓ │ ▓ │ ■ = Selected M ├───┼───┼───┤ □ = Not selected i 1 │ ▓ │ ▓ │ ▓ │ p ├───┼───┼───┤ 2 │ ▓ │ ▓ │ ▓ │ └───┴───┴───┘MipBand = 3A band Texture View containing all the array Texture elements from the specified mip level and array index.
Here is an example of what the resulting View will cover with a Texture Array of 3, each with 3 mip levels when specifying a mipmap level index of 1, and a array index of 1:
Array slice 0 1 2 ┌───┬───┬───┐ 0 │ │ │ │ ■ = Selected M ├───┼───┼───┤ □ = Not selected i 1 │ │ ▓ │ ▓ │ p ├───┼───┼───┤ 2 │ │ │ │ └───┴───┴───┘Single = 1The Texture View contains a single Texture element at the specified mip level and array index.
Here is an example of what the resulting View will cover with a Texture Array of 3, each with 3 mip levels when specifying a mipmap level index of 1, and a array index of 1:
Array slice 0 1 2 ┌───┬───┬───┐ 0 │ │ │ │ ■ = Selected M ├───┼───┼───┤ □ = Not selected i 1 │ │ ▓ │ │ p ├───┼───┼───┤ 2 │ │ │ │ └───┴───┴───┘
Remarks
This selection model is taken from Nuaj by Patapom (https://wiki.nuaj.net/index.php?title=Nuaj).