|
tess 1.0.0
Performance-first tile and path simulation substrate
|
#include <tess/gpu/descriptors.h>
Public Member Functions | |
| constexpr auto | total_bytes_fits () const noexcept -> bool |
| constexpr auto | total_bytes () const noexcept -> std::uint64_t |
Friends | |
| constexpr auto | operator== (const FieldMirrorDesc &, const FieldMirrorDesc &) noexcept -> bool=default |
Byte layout of a dense, chunk-key-major field mirror.
A backend can size one buffer containing chunk_count contiguous slices of bytes_per_chunk. Selective sparse mirrors may reuse the layout metadata while choosing a different chunk set.
|
inlinenodiscardconstexprnoexcept |
Returns the dense byte count, saturating when a manual descriptor wraps.
Generated descriptors are compile-time checked and never saturate. The saturation keeps malformed consumer-created descriptors from appearing to request a small, valid buffer after unsigned multiplication wraps.
|
inlinenodiscardconstexprnoexcept |
Returns whether the dense mirror byte count is representable.