Describes a resource view, which specifies how to interpret the data of a resource.
More...
#include <reshade_api_resource.hpp>
|
| constexpr | resource_view_desc () |
| |
| constexpr | resource_view_desc (format format, uint64_t offset, uint64_t size) |
| |
| constexpr | resource_view_desc (format format, uint32_t first_level, uint32_t levels, uint32_t first_layer, uint32_t layers) |
| |
| constexpr | resource_view_desc (resource_view_type type, format format, uint64_t offset, uint64_t size) |
| |
| constexpr | resource_view_desc (resource_view_type type, format format, uint32_t first_level, uint32_t levels, uint32_t first_layer, uint32_t layers) |
| |
| constexpr | resource_view_desc (format format) |
| |
|
| resource_view_type | type |
| | Resource type the view should interpret the resource data to. More...
|
| |
| format | format |
| | Format the view should reinterpret the resource data to (can be different than the format of the resource as long as they are compatible). More...
|
| |
| union { |
| struct { |
| uint64_t offset |
| | Offset from the start of the buffer resource (in bytes). More...
|
| |
| uint64_t size |
| | Number of elements this view covers in the buffer resource (in bytes). Set to -1 (UINT64_MAX) to indicate that the entire buffer resource should be used. More...
|
| |
| } buffer |
| | Used when view type is a buffer or acceleration structure. More...
|
| |
| struct { |
| uint32_t first_level |
| | Index of the most detailed mipmap level to use. This number has to be between zero and the maximum number of mipmap levels in the texture minus 1. More...
|
| |
| uint32_t level_count |
| | Maximum number of mipmap levels for the view of the texture. Set to -1 (UINT32_MAX) to indicate that all mipmap levels down to the least detailed should be used. More...
|
| |
| uint32_t first_layer |
| | Index of the first array layer of the texture array to use. This value is ignored if the texture is not layered. More...
|
| |
| uint32_t layer_count |
| | Maximum number of array layers for the view of the texture array. This value is ignored if the texture is not layered. Set to -1 (UINT32_MAX) to indicate that all array layers should be used. More...
|
| |
| } texture |
| | Used when view type is a texture. More...
|
| |
| }; | |
| |
Describes a resource view, which specifies how to interpret the data of a resource.
◆ resource_view_desc() [1/6]
| constexpr reshade::api::resource_view_desc::resource_view_desc |
( |
| ) |
|
|
inlineconstexpr |
◆ resource_view_desc() [2/6]
| constexpr reshade::api::resource_view_desc::resource_view_desc |
( |
format |
format, |
|
|
uint64_t |
offset, |
|
|
uint64_t |
size |
|
) |
| |
|
inlineconstexpr |
◆ resource_view_desc() [3/6]
| constexpr reshade::api::resource_view_desc::resource_view_desc |
( |
format |
format, |
|
|
uint32_t |
first_level, |
|
|
uint32_t |
levels, |
|
|
uint32_t |
first_layer, |
|
|
uint32_t |
layers |
|
) |
| |
|
inlineconstexpr |
◆ resource_view_desc() [4/6]
| constexpr reshade::api::resource_view_desc::resource_view_desc |
( |
resource_view_type |
type, |
|
|
format |
format, |
|
|
uint64_t |
offset, |
|
|
uint64_t |
size |
|
) |
| |
|
inlineconstexpr |
◆ resource_view_desc() [5/6]
| constexpr reshade::api::resource_view_desc::resource_view_desc |
( |
resource_view_type |
type, |
|
|
format |
format, |
|
|
uint32_t |
first_level, |
|
|
uint32_t |
levels, |
|
|
uint32_t |
first_layer, |
|
|
uint32_t |
layers |
|
) |
| |
|
inlineconstexpr |
◆ resource_view_desc() [6/6]
| constexpr reshade::api::resource_view_desc::resource_view_desc |
( |
format |
format | ) |
|
|
inlineexplicitconstexpr |
| struct { ... } reshade::api::resource_view_desc::buffer |
Used when view type is a buffer or acceleration structure.
◆ first_layer
| uint32_t reshade::api::resource_view_desc::first_layer |
Index of the first array layer of the texture array to use. This value is ignored if the texture is not layered.
◆ first_level
| uint32_t reshade::api::resource_view_desc::first_level |
Index of the most detailed mipmap level to use. This number has to be between zero and the maximum number of mipmap levels in the texture minus 1.
◆ format
| format reshade::api::resource_view_desc::format |
Format the view should reinterpret the resource data to (can be different than the format of the resource as long as they are compatible).
◆ layer_count
| uint32_t reshade::api::resource_view_desc::layer_count |
Maximum number of array layers for the view of the texture array. This value is ignored if the texture is not layered. Set to -1 (UINT32_MAX) to indicate that all array layers should be used.
◆ level_count
| uint32_t reshade::api::resource_view_desc::level_count |
Maximum number of mipmap levels for the view of the texture. Set to -1 (UINT32_MAX) to indicate that all mipmap levels down to the least detailed should be used.
◆ offset
| uint64_t reshade::api::resource_view_desc::offset |
Offset from the start of the buffer resource (in bytes).
◆ size
| uint64_t reshade::api::resource_view_desc::size |
Number of elements this view covers in the buffer resource (in bytes). Set to -1 (UINT64_MAX) to indicate that the entire buffer resource should be used.
| struct { ... } reshade::api::resource_view_desc::texture |
Used when view type is a texture.
◆ type
Resource type the view should interpret the resource data to.
The documentation for this struct was generated from the following file: