Struct Source

Struct Documentation

struct Source

Owned source snapshot; path identifies its origin, bytes supply the prepared contents.

Public Members

Stage stage = Stage::Vertex

Declared vertex or fragment role; duplicate roles reject validation.

std::filesystem::path path

Nonempty source identity/path retained for backend construction and diagnostics.

std::string bytes

Owned source text; preparation avoids reopening the source at upload.