Add an HLSL shader program
Use the HLSLPROGRAM directive to add a shader program to a shader pass.
읽는 시간 1분최근 업데이트: 한 달 전
To add a High-Level Shader Language (HLSL) program to a shader file, add the code to the block. Wrap the code in and macros. For example:
PassHLSLPROGRAMENDHLSLShader "Examples/ExampleShader"{ SubShader { Pass { Name "ExamplePassName" HLSLPROGRAM // Add HLSL shader program code here ENDHLSL } }}