- Usage Restrictions
- not published
- Description
- Specialized interface for bitmaps containing half floats as their
color components. Half floats are 16 bit wide, and some high-end
GPUs already have them as supported frame buffer format. In
contrast to XHalfFloatBitmap, this interface only
permits read-only access.
Use this interface for e.g. bitmaps that are calculated
on-the-fly, or that are pure functional, and thus cannot be
modified.
If you get passed an instance of
XHalfFloatReadOnlyBitmap that also supports the
XVolatileBitmap interface, things become a bit more
complicated. When reading data, one has to check for both
VolatileContentDestroyedException and mismatching
FloatingPointBitmapLayout return values. If either of them
occurs, the whole bitmap read operation should be repeated.
|