class in UnityEngine/Inherits from: Object
Compute Shader asset.
计算着色器资源。
Compute shaders are programs that run on the GPU outside of the normal rendering pipeline. They correspond to compute shader assets in the project (.compute files).
Compute shaders运行于法线渲染通道的外部的GPU上。它们与工程中的计算着色器资源一致(计算文件)。
Compute shaders need a fairly modern GPU (with shader model 5.0 support) and are at the moment available on DirectX 11, PS4, XboxOne and OpenGL ES 3.1.
计算着色器需要一个先进的GPU(支持shader model 5.0)并且目前在DirectX 11、 XboxOne、 索尼 PS4 OpenGL ES 3.1 上可用。
See Also: SystemInfo.supportsComputeShaders, ComputeBuffer class, Compute Shaders.
Dispatch | Execute a compute shader. 执行计算着色器。 |
FindKernel | Find ComputeShader kernel index. 查找计算着色器的内核索引。 |
SetBuffer | Sets an input or output compute buffer. 设置输入/输出的计算缓存区。 |
SetFloat | Set a float parameter. 一次设置多个float参数 |
SetFloats | Set multiple consecutive float parameters at once. 一次设置多个连续的浮点参数。 |
SetInt | Set an integer parameter. 设置一个整型参数。 |
SetInts | Set multiple consecutive integer parameters at once. 一次设置多个连续的整型参数。 |
SetTexture | Set a texture parameter. 设置纹理参数。 |
SetVector | Set a vector parameter. 设置向量参数。 |