Porytiles
Loading...
Searching...
No Matches
porytiles::InferredAttributeDeclaration Struct Reference

The declared element width of a project's metatile attribute arrays, and the declaration behind it. More...

#include <metatile_attribute_inference.hpp>

Collaboration diagram for porytiles::InferredAttributeDeclaration:
[legend]

Public Attributes

AttributeDeclarationScan scan
 
std::optional< std::size_t > size
 

Detailed Description

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.

Member Data Documentation

◆ scan

AttributeDeclarationScan porytiles::InferredAttributeDeclaration::scan

Definition at line 200 of file metatile_attribute_inference.hpp.

◆ size

std::optional<std::size_t> porytiles::InferredAttributeDeclaration::size

Definition at line 201 of file metatile_attribute_inference.hpp.


The documentation for this struct was generated from the following file: