Tightly packed pixels read back from a target, rows top to bottom.
More...
#include <gpu_pass.hpp>
|
| std::array< std::uint8_t, 4 > | rgba8_at (std::uint32_t x, std::uint32_t y) const |
| | The texel at (x, y) as RGBA bytes.
|
Tightly packed pixels read back from a target, rows top to bottom.
◆ rgba8_at()
| std::array< std::uint8_t, 4 > pulp::render::GpuPixels::rgba8_at |
( |
std::uint32_t | x, |
|
|
std::uint32_t | y ) const |
The texel at (x, y) as RGBA bytes.
Valid for rgba8_unorm, rgba8_unorm_srgb, bgra8_unorm and bgra8_unorm_srgb (BGRA is swizzled to RGBA); all zero otherwise or out of range.
◆ bytes
| std::vector<std::uint8_t> pulp::render::GpuPixels::bytes |
◆ bytes_per_pixel
| std::uint32_t pulp::render::GpuPixels::bytes_per_pixel = 0 |
◆ format
◆ height
| std::uint32_t pulp::render::GpuPixels::height = 0 |
◆ width
| std::uint32_t pulp::render::GpuPixels::width = 0 |
The documentation for this struct was generated from the following file:
- /home/runner/work/pulp/pulp/core/render/include/pulp/render/gpu_pass.hpp