struct property
Describes the raw memory layout, construction, and pointer representation of this struct type.
Implementation
static final StructType<ImageD> struct = .new(
factory: ImageD.new,
layout: .aligned<ImageField>({
.data: RPointer(RVoid()), // Image raw data
.width: RInt(), // Image base width
.height: RInt(), // Image base height
.mipmaps: RInt(), // Mipmap levels, 1 by default
.format: RInt(), // Data format (PixelFormat type)
}),
);