Skip to main content

Module buffer

Module buffer 

Source
Expand description

GPU buffer management for OxiGDAL.

This module provides efficient GPU buffer management for raster data, including upload, download, and memory mapping operations.

Structs§

GpuBuffer
GPU buffer wrapper with type safety.
GpuRasterBuffer
GPU raster buffer for multi-band raster data.

Enums§

BufferElementType
Describes the scalar element type stored in a GPU buffer.

Functions§

f16_to_f32_slice
Convert a slice of half::f16 values to a Vec<f32> by widening.
f32_to_f16_slice
Convert a slice of f32 values to a Vec<half::f16> by narrowing.
from_f16_slice_native
Upload a half::f16 slice to the GPU as raw bytes (u8 buffer).
from_f16_slice_widening
Upload a half::f16 slice to the GPU by widening each element to f32.
read_f16_from_f32_buffer
Read back a GpuBuffer<f32> and narrow each element to half::f16.