Writing HLSL shader programs
Resources for writing HLSL shader programs inside a Pass block in a custom ShaderLab shader.
読み終わるまでの所要時間 1 分最終更新 22日前
Write High-Level Shader Language (HLSL) vertex and fragment shader programs inside a block in a custom ShaderLab shader.
PassPage | Description |
|---|---|
| Introduction to HLSL shader programs | Learn about writing shader programs in HLSL in Unity, and vertex and fragment shaders. |
| Add an HLSL shader program | Use the |
| Reuse HLSL code | Include or duplicate HLSL in different places, or share |
| Input data into HLSL | Create a |
| Sample a texture in HLSL | Declare and sample a texture in HLSL using a sampler. |
| Writing HLSL for different graphics APIs | Write HLSL to take into account how graphics rendering differs between different graphics APIs. |
| Use 16-bit precision in shaders | Use 16-bit precision in GPU calculations, so shaders use less memory, bandwidth, and power, and calculations are faster. |
| Pass information to the shader compiler | Use the |