Enum member isRasterSampleType

Whether T is supported as a raw raster sample representation.

enum isRasterSampleType(T) = false;

Supported sample types are:

- unqualified value types; - POD; - free of pointer/reference-like indirections.

This intentionally permits plain numeric types, static arrays of such types, and POD pixel structs without indirections.

It intentionally rejects:

- void; - const/immutable/shared-qualified sample types; - pointers; - dynamic arrays; - classes/references; - structs containing indirections; - structs with elaborate copy/destruction semantics.

This trait describes representation safety. It does not imply any particular radiometric or pixel-format semantics.

Example

Example checking raw raster sample representations.

import raster;

static assert(isRasterSampleType!ubyte);
static assert(isRasterSampleType!(ubyte[4]));
static assert(!isRasterSampleType!(ubyte*));