Method
execute(in:)
Executes the statement within the specified execution context.
@MainActor func execute(in context: MTLExecutionContext) async throws
Parameters
context-
The execution context providing access to variables, models, writers, and other execution state
Discussion
Statement execution may involve:
-
Writing text to the current writer
-
Evaluating expressions
-
Managing indentation levels
-
Creating or closing files
-
Manipulating variable scopes