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 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.
See Also: SystemInfo.supportsComputeShaders, ComputeBuffer class, Compute Shaders.
Dispatch | Execute a compute shader. |
DispatchIndirect | Execute a compute shader. |
FindKernel | Find ComputeShader kernel index. |
GetKernelThreadGroupSizes | Get kernel thread group sizes. |
HasKernel | Checks whether a shader contains a given kernel. |
SetBuffer | Sets an input or output compute buffer. |
SetFloat | Set a float parameter. |
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. |
SetTextureFromGlobal | Set a texture parameter from a global texture property. |
SetVector | Set a vector parameter. |
hideFlags | ¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario? |
name | El nombre del objeto. |
GetInstanceID | Devuelve el id de la instancia del objeto. |
ToString | Devuelve el nombre del objeto. |
Destroy | Elimina un gameobject, componente o asset. |
DestroyImmediate | Destruye el objeto obj inmediatamente. |
DontDestroyOnLoad | Hace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena. |
FindObjectOfType | Devuelve el primer objeto activo cargado de tipo type. |
FindObjectsOfType | Devuelve una lista de todos los objetos activos cargados de tipo type. |
Instantiate | Devuelve una copia del objeto original. |
bool | ¿Existe el objeto? |
operator != | Compare si dos objetos se refieren a un objeto diferente. |
operator == | Compara dos referencias de objeto para ver si se refieren al mismo objeto. |