ConsoleEvent
인터페이스, 콘솔 분류
A console event produced by a TypeShade CPU/debug invocation.
import type { ConsoleEvent } from 'typeshade'
시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
구문
interface ConsoleEvent { readonly method: ConsoleMethod; readonly args: readonly (CpuValue | string)[]; readonly span?: SourceSpan; readonly invocation?: readonly number[];}인스턴스 속성
method읽기 전용ConsoleMethodargs읽기 전용readonly (CpuValue | string)[]The arguments as the author wrote them: a value for each value, and the text of each string literal, which is a label the host keeps (surface §66).
span선택 사항읽기 전용SourceSpaninvocation선택 사항읽기 전용readonly number[]Which invocation made the call, as three numbers:
global_invocation_idfor a compute entry, the pixel for a fragment entry ([x, y, 0]). Present on an event decoded from the GPU, on one the CPU delivers while running an entry that takes that builtin, as a parameter or as a field of a struct parameter, and on every one the call layer’s CPU tier delivers while it dispatches an entry or draws one.
소스
src/core/console.ts, 16행, 커밋 c66579bf 기준