dpdy
이 페이지에서

dpdy()

함수, 내장 함수 분류

dpdy(x): the screen-space partial derivative of x along the Y axis, component-wise; the partner of dpdx, with the same GPU-only and fragment-only constraints.

import { dpdy } from 'typeshade'

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

구문

const dpdy: <K extends FloatKey>(x: ReadonlyNode<K>) => Node<K>

매개변수

x ReadonlyNode<K>

반환값

Node<K>

설명

Spelled dpdy on WGSL and dFdy on GLSL ES 3.00.

예제

예제

import { fn, dpdy, f32T } from 'typeshade'
const dv = fn('dv', { v: f32T }, ({ v }) => dpdy(v))

대상별 지원

대상지원비고
WGSL (WebGPU) 지원

dpdy(x).

GLSL ES 3.00 (WebGL2) 지원

dFdy(x).

CPU 오라클 스텁

The oracle has no texture memory and no neighbouring fragments. The call throws unless the module was compiled with { gpuStubs: true }, which returns a placeholder.

관련 가이드

함께 보기

소스

src/core/ir/node.ts, 2257행, 커밋 c66579bf 기준

이 페이지 편집 문제 보고