TS8070
이 페이지에서

TS8070

프런트엔드 코드 KERNEL_LOOP_ON_CPU

독립성 증명이 거부한 커널 함수의 루프에 대한 경고입니다. 이 루프는 CPU에서 실행됩니다(규칙 8.22). 메시지가 막는 줄과 이름, 그리고 고칠 방법을 알려 줍니다. 어느 쪽이든 프로그램은 올바릅니다.

레지스트리에는 이 상수에 대한 문서 주석이 없습니다. 그래서 위 설명은 컴파일러가 이 코드와 함께 내는 메시지를 보고 이 사이트가 쓴 것입니다.

이 커밋에는 아직 이 코드의 예제가 없습니다.

레지스트리 설명과 컴파일러 메시지는 컴파일러 원문이라 한국어 페이지에서도 영어로 둡니다.

이 코드가 적용하는 규칙

규칙 8.22 테스트
A kernel function is an exported function that is not an entry point, a function declaration, and takes at least one array with no size (array<T>) or one 2D storage texture (texture_storage_2d<F, A>, change 0077), or returns an array with no size that its body makes (Rule 8.23, change 0114, S5); a sampled texture alone does not make one, so an exported helper that reads one stays a helper an entry calls; its candidate loops are the for and for…of statements at the top level of its body, and no other loop is ever a candidate.
규칙 8.23 테스트
A kernel function’s parameter of an array with no size is the caller’s array (change 0142): the body reads its elements and its .length, writes its elements in place, and cannot assign it whole (TS8018).

함께 보기

소스

커밋 af54ddad5에서 컴파일러가 이 코드를 내는 곳입니다. 파일마다 한 줄씩 적었습니다.

이 페이지 편집 문제 보고