규칙 7.6
7장, 표현식과 문 적용 전
A read of a local before its first assignment is zero on WGSL and on the CPU, and undefined on GLSL ES 3.00; the divergence is recorded and the author should assign before reading.
규칙 본문과 그 아래 항목은 설계 문서에 적힌 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.
근거
the two targets differ here, and the oracle follows WGSL by Rule 1.3.
출처
var Declarations (zero-initialization); surface §14.
검증 방식
아직 적용하지 않은 규칙입니다. 설계 문서 부록 B에 올라 있고, 확인하는 파일은 없습니다.
컴파일러가 이 규칙을 적용하는 곳을 규칙이 직접 적은 내용입니다.
not enforced as a diagnostic; recorded in surface §14 (Appendix B).
설명하는 절
커밋 c66579bf의 표면 문서에서 이 규칙을 설명하는 절입니다.
함께 보기
소스
커밋 c66579bf의 규칙 원문:
docs/language-design.md:571(설계 문서)reqs/rules/RULE-0706.md(추적 항목)