Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::render::GpuPixels Struct Reference

Tightly packed pixels read back from a target, rows top to bottom. More...

#include <gpu_pass.hpp>

Public Member Functions

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.

Public Attributes

std::vector< std::uint8_t > bytes
std::uint32_t width = 0
std::uint32_t height = 0
std::uint32_t bytes_per_pixel = 0
GpuFormat format = GpuFormat::undefined

Detailed Description

Tightly packed pixels read back from a target, rows top to bottom.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ bytes

std::vector<std::uint8_t> pulp::render::GpuPixels::bytes

◆ bytes_per_pixel

std::uint32_t pulp::render::GpuPixels::bytes_per_pixel = 0

◆ format

GpuFormat pulp::render::GpuPixels::format = GpuFormat::undefined

◆ 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