Immutable RGBA8 image with explicit sampler state.
More...
#include <render_device.h>
Immutable RGBA8 image with explicit sampler state.
- Examples
- Tutorial_205_RealCamera.
◆ Image()
| Image |
( |
std::uint32_t |
width, |
|
|
std::uint32_t |
height, |
|
|
std::vector< unsigned char > |
rgba, |
|
|
Sampler |
sampler = {} |
|
) |
| |
Create an RGBA8 image snapshot.
- Parameters
-
| width | Image width in pixels. |
| height | Image height in pixels. |
| rgba | Tightly packed pixels, with the top row first. |
| sampler | Texture addressing and filtering options. |
No implicit global image-loader flip state is used.
◆ height()
| std::uint32_t height |
( |
| ) |
const |
|
inline |
Return image height in pixels.
- Returns
- Image height in pixels.
◆ rgba()
| const std::vector< unsigned char > & rgba |
( |
| ) |
const |
|
inline |
Return tightly packed RGBA8 data, with the top row first.
- Returns
- Tightly packed RGBA8 pixels, top row first.
◆ sampler()
Return the image sampler settings.
- Returns
- Texture addressing and filtering options.
◆ width()
| std::uint32_t width |
( |
| ) |
const |
|
inline |
Return image width in pixels.
- Returns
- Image width in pixels.
The documentation for this class was generated from the following files: