Struct RasterConstantBorder
Constant border policy.
struct RasterConstantBorder(T)
if (isRasterSampleType!T);
Coordinates outside the valid source extent produce value.
Coordinates inside the source extent are read from the source unchanged.
The policy carries exactly one runtime sample value because the constant is ordinary caller data rather than compile-time semantics.
Example
Example carrying a constant border value.
import raster;
const border = RasterConstantBorder!ubyte(17);
assert(border .value == 17);
static assert(RasterConstantBorder!ubyte .kind == RasterBorderKind .constant);