pub unsafe extern "C" fn rpsGetFormatElementBytes(
    format: RpsFormat
) -> u32
Expand description

Returns the single element byte size for a format.

For most formats one element is one pixel. This is different for block compressed formats, e.g. RPS_FORMAT_BC1_UNORM. The byte size of one block will be returned for these instead.

@param format Format to check.

@returns 0 if the format does not support element wise usage, size of bytes of a single element otherwise.