Expand description
Layout-only C ABI contract for the EdgeFirst tensor surface.
Plain #[repr(C)] values and the integer vocabularies, declared exactly
once. Every -capi crate imports these instead of carrying an “identical
copy” — r2’s duplication was safe but unverified-by-construction; a single
declaration makes divergence impossible instead of merely absent.
This crate has no dependencies and must never gain one. The vocabulary
values are asserted against edgefirst-tensor’s authority from the crates
that depend on both (see edgefirst-tensor-capi/src/codes.rs) — this
crate is emitted surface, never a second authority.
Structs§
- EfClient
State - Client-owned state a library entry point calls back into — frozen by value, forever, and reused verbatim by every domain that needs one (PBO today; CUDA-GL next).
- EfD3d11
Layout - The D3D11 texture behind a Windows texture tensor.
- EfImage
Desc View - Flattened,
#[repr(C)]view of an image-request descriptor’s fields. - EfQuantization
Info - Presence/shape summary of a tensor’s quantization metadata.
- EfTensor
Plane - One plane’s location, mirroring
TensorPlaneon the wire. - EfTensor
View - A mapped CPU window over a tensor’s bytes.
- EfView
Origin - Parent-region snapshot for a tensor that is a
view/batchsub-region.
Enums§
- EfCompression
- Vendor tile-compression scheme actually in force for a tensor’s allocation.
- EfCompression
Request - Compression request, as
ef_tensor_image_desc_set_compressiontakes it andEfImageDescView::compressionreports it. - EfContiguity
- Whether a tensor’s memory is known to be physically contiguous
(
ef_tensor_contiguity). - EfCpu
Access - CPU access: a tensor’s declaration, or the direction of a map window.
- EfDtype
- Element type of a tensor’s addressing grid.
- EfError
Class - Which kind of failure the calling thread’s last failing
ef_tensor_*call was. - EfStorage
Kind - Backing store for a tensor.
Type Aliases§
- EfClient
RefFn - A retain or release call on a client-owned callback context.
- EfCuda
MapFn - Map a CUDA graphics resource to a device pointer.
0on success. - EfCuda
MapFn Nullable - Map a CUDA graphics resource to a device pointer.
0on success. - EfCuda
Unmap Fn - Unmap a resource previously mapped by an
EfCudaMapFn. - EfCuda
Unmap FnNullable - Unmap a resource previously mapped by an
ef_cuda_map_fn. - EfCuda
Unregister Fn - Unregister a CUDA graphics resource.
- EfCuda
Unregister FnNullable - Unregister a CUDA graphics resource.
- EfPbo
MapFn - Map a PBO for CPU access.
0on success;-1when the GL context is gone; any other non-zero value a generic failure. - EfPbo
MapFn Nullable - Map a PBO for CPU access.
0on success;-1when the GL context is gone; any other non-zero value a generic failure. - EfPbo
Unmap Fn - Unmap a PBO previously mapped by an
EfPboMapFn. Same return codes. - EfPbo
Unmap FnNullable - Unmap a PBO previously mapped by an
ef_pbo_map_fn. Same return codes.