ConsoleEvent
이 페이지에서

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읽기 전용 ConsoleMethod
args읽기 전용 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선택 사항읽기 전용 SourceSpan
invocation선택 사항읽기 전용 readonly number[]

Which invocation made the call, as three numbers: global_invocation_id for 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 기준

이 페이지 편집 문제 보고