PassTargets
이 페이지에서

PassTargets

인터페이스, 런타임 분류

A render pass's attachments: textures, or a canvas context the host configured, each with what it is cleared to.

import type { PassTargets } from 'typeshade/runtime'

시그니처, 설명, 예제는 커밋 c66579bf의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.

구문

interface PassTargets {
readonly color?: readonly ( | Texture | object | { readonly target: Texture | object; readonly clear?: readonly [number, number, number, number]; readonly load?: 'clear' | 'load'; } )[];
readonly depth?: | Texture | { readonly target: Texture; readonly clear?: number; readonly load?: 'clear' | 'load' };
}

설명

A colour target is a Texture, a context, or { target, clear, load }: load defaults to 'clear' and clear to transparent black, [0, 0, 0, 0]. The depth target is a Texture or { target, clear, load }: clear defaults to 1, which a reversed projection sets to 0, and load to 'clear'. Every attachment is stored.

인스턴스 속성

color선택 사항읽기 전용 readonly ( | Texture | object | { readonly target: Texture | object; readonly clear?: readonly [number, number, number, number]; readonly load?: 'clear' | 'load'; } )[]
depth선택 사항읽기 전용 | Texture | { readonly target: Texture; readonly clear?: number; readonly load?: 'clear' | 'load' }

소스

src/runtime/runtime.ts, 77행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고