Module re_viewer_context::gpu_bridge::image_to_gpu
source · Expand description
Upload images to re_renderer
.
Functions§
- Uploads the image to a texture in a format that closely resembled the input. Uses no
Unorm/Snorm
formats. - Returns a texture key for the given image.
- Get a valid, finite range for the gpu to use.
- Return whether an image should be assumed to be encoded in sRGB color space (“gamma space”, no EOTF applied).
colormap
is currently only used for depth images.- Pad an RGB image to RGBA and cast the results to bytes.
- Pad an RGB image to RGBA and cast the results to bytes.
- Determines if and how the shader needs to decode the image.
- Creates a
ImageDataDesc
for creating a texture from anImageInfo
.