Classes and enumerations related to accessing data as textures.
More...
Classes and enumerations related to accessing data as textures.
◆ TextureAddressMode
An enumeration of address modes for texture objects, similar to the argument padding_mode in torch.nn.functional.grid_sample, or the CUDA enumeration cudaTextureAddressMode.
| Enumerator |
|---|
| ZERO | Sampling locations outside texture coordinate range will be read as 0.
|
| WRAP | Sampling locations outside texture coordinate range will be read wrapped back according to ((x - left) mod width + left, (y - bottom) mod height + bottom, etc...
|
◆ StringsToAddressModes()
template<std::size_t DIMENSIONALITY>
| Vec< TextureAddressMode, DIMENSIONALITY > reg23::StringsToAddressModes |
( |
const std::array< std::string_view, DIMENSIONALITY > & |
strings | ) |
|
- Template Parameters
-
- Parameters
-
- Returns