Module re_viewer_context::gpu_bridge::image_to_gpu
source ยท Expand description
Upload images to re_renderer
.
Functionsยง
- cast_slice_to_cow ๐
- color_image_to_gpu ๐
- depth_image_to_gpu ๐
- Uploads the image to a texture in a format that closely resembled the input. Uses no
Unorm/Snorm
formats. - generate_texture_key ๐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.- narrow_f64_to_f32s ๐
- narrow_i64_to_f32s ๐
- narrow_u64_to_f32s ๐
- pad_and_cast ๐Pad an RGB image to RGBA and cast the results to bytes.
- pad_cast_img ๐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
.