halide_type_t#

struct halide_type_t#

A runtime tag for an element type in the halide type system.

Can be ints, unsigned ints, or floats of various bit-widths (the ‘bits’ field), or an opaque handle.

This is the ABI/wire type. Unlike the compiler-side Halide::Type, it does NOT carry a vector width (‘lanes’): a value crossing the ABI boundary is always a single element.

Public Members

uint8_t code#

The basic type code: signed integer, unsigned integer, or floating point.

uint8_t bits#

The number of bits of precision of a single scalar value of this type.

uint16_t reserved#

Reserved for future element-kind payloads.