내부적으로 셰이더 컴파일에는 여러 단계가 있습니다. 첫 단계는 프리 프로세싱입니다. 이 단계에서는 프리 프로세서라는 프로그램이 컴파일할 코드를 준비합니다. 프리 프로세서 지시문은 프리 프로세서용 명령입니다.
이 매뉴얼 섹션에는 HLSL 프리 프로세서 지시문을 사용하여 작업하는 Unity의 방식 및 Unity 고유의 프리 프로세서 지시문에 대한 정보가 포함되어 있습니다. 이 매뉴얼 섹션에는 HLSL이 지원하는 모든 프리 프로세서 지시문을 모두 포함하는 문서가 없으며, HLSL에서 프리 프로세서 지시문을 사용하여 작업하는 방법에 대한 일반 정보도 없습니다. 해당 정보는 HLSL 문서 프리 프로세서 지시문(HLSL)을 참조하십시오.
페이지 | 설명 |
---|---|
HLSL의 include 및 include_with_pragmas 지시문 | Unity의 HLSL에서 #include 및 Unity 전용 #include_with_pragmas 지시문을 사용하여 작업하는 방법입니다. |
HLSL의 pragma 지시문 | Unity의 HLSL에서 #pragma 지시문을 사용하여 작업하는 방법입니다. |
HLSL의 셰이더 모델 타게팅 및 GPU 기능 |
#pragma 지시문을 사용하여 셰이더가 특정 GPU 기능을 필요로 한다는 사실을 나타내는 방법입니다. |
HLSL에서 그래픽스 API 및 플랫폼 타게팅 |
#pragma 지시문을 사용하여 특정 그래픽스 API 및 플랫폼을 타게팅하는 방법입니다. |
HLSL에서 셰이더 키워드 선언 및 사용 |
#pragma 지시문을 사용하여 셰이더 키워드 및 #if 지시문을 선언해 코드가 셰이더 키워드의 상태에 종속된다는 사실을 나타내는 방법입니다. |
Did you find this page useful? Please give it a rating:
Thanks for rating this page!
What kind of problem would you like to report?
Thanks for letting us know! This page has been marked for review based on your feedback.
If you have time, you can provide more information to help us fix the problem faster.
Provide more information
You've told us this page needs code samples. If you'd like to help us further, you could provide a code sample, or tell us about what kind of code sample you'd like to see:
You've told us there are code samples on this page which don't work. If you know how to fix it, or have something better we could use instead, please let us know:
You've told us there is information missing from this page. Please tell us more about what's missing:
You've told us there is incorrect information on this page. If you know what we should change to make it correct, please tell us:
You've told us this page has unclear or confusing information. Please tell us more about what you found unclear or confusing, or let us know how we could make it clearer:
You've told us there is a spelling or grammar error on this page. Please tell us what's wrong:
You've told us this page has a problem. Please tell us more about what's wrong:
Thank you for helping to make the Unity documentation better!
Your feedback has been submitted as a ticket for our documentation team to review.
We are not able to reply to every ticket submitted.