|
Porytiles
|
The declared element width of a project's metatile attribute arrays, and the declaration behind it. More...
#include <metatile_attribute_inference.hpp>
Public Attributes | |
| AttributeDeclarationScan | scan |
| std::optional< std::size_t > | size |
The declared element width of a project's metatile attribute arrays, and the declaration behind it.
scan is the declaration the project wrote, carried through so a diagnostic can quote it. size is the width it maps to, set only for a single-pointer u8, u16, or u32 element. Every other declarator, and every source with no declaration at all, leaves it unset. Unset is not a default: the declaration width has no second witness (unlike the attribute width, which the masks independently bound), so resolution is fatal unless the user pins the width with the declaration-size knob.
Definition at line 199 of file metatile_attribute_inference.hpp.
| AttributeDeclarationScan porytiles::InferredAttributeDeclaration::scan |
Definition at line 200 of file metatile_attribute_inference.hpp.
| std::optional<std::size_t> porytiles::InferredAttributeDeclaration::size |
Definition at line 201 of file metatile_attribute_inference.hpp.