Skip to content

ludus::tooling::shader_language::PreprocessRequest

Ludus Wiki · API overview · Browse API

Struct

An immutable source snapshot and the root file to preprocess.
Every view is borrowed for the duration of Preprocess. The file texts must also outlive the result's tokens, whose spellings refer to them. No filesystem access occurs.

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/preprocessor.hpp

#include <ludus/tooling/shader_language/preprocessor.hpp>
struct ludus::tooling::shader_language::PreprocessRequest final

Fields

Files

foundation::BorrowedView<const shader_compiler::SourceFile> ludus::tooling::shader_language::PreprocessRequest::Files
The whole snapshot, which may also contain Slang files. Paths follow the shader compiler's rules: unique, relative, /-separated, without empty, . or .. components. At most shader_compiler::MAX_SOURCE_FILES files and shader_compiler::MAX_SOURCE_BYTES bytes.

Related types: foundation::BorrowedView · shader_compiler::SourceFile

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/preprocessor.hpp

Source

foundation::BorrowedView<const char> ludus::tooling::shader_language::PreprocessRequest::Source
Path of the root file in Files; it must end in .lusl.

Related types: foundation::BorrowedView

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/preprocessor.hpp

Configuration

foundation::BorrowedView<const ConfigurationValue> ludus::tooling::shader_language::PreprocessRequest::Configuration
Selected configuration values; at most MAX_CONFIGURATION_VALUES.

Related types: foundation::BorrowedView · ConfigurationValue

Declared in modules/tooling/shader_language/include/ludus/tooling/shader_language/preprocessor.hpp