어트리뷰트
이름 9개
진입점을 표시하고 필드를 파이프라인에 연결하는 데코레이터입니다.
이름마다 붙은 시그니처와 설명은 커밋 26de7be8의 컴파일러 소스에서 그대로 가져온 영어 원문입니다.
@vertex- Marks a top-level exported function as the pipeline's vertex-stage entry point.
@fragment- Marks a top-level exported function as the pipeline's fragment-stage entry point.
@compute- Marks a top-level exported function as a compute-stage entry point, with an optional workgroup size:
@compute([64]). @builtin- Binds a field or parameter to a WebGPU builtin value, such as
@builtin("vertex_index"). @location- Binds a field to a numeric shader IO location, such as
@location(0). @interpolate- How a
@locationvarying is interpolated:@interpolate("flat"), or a type and a sampling as in@interpolate("linear", "centroid"). @invariant- On
@builtin("position"): WGSL's promise that this position is computed the same way in two pipelines, so a depth pre-pass matches the shading pass. @blend_src- Which of the two colours a dual-source blend mixes this fragment output is:
@blend_src(0)and@blend_src(1), both at@location(0). @diagnostic- Sets the severity of a WGSL diagnostic rule for the whole module, as in
@diagnostic("off", "derivative_uniformity")on an entry.
이 페이지의 항목은 모두 고정된 커밋의 컴파일러에서 읽어 왔고, 여기서 직접 입력한 것은 없습니다.