Class ComputeShader
Inheritance
ComputeShader
Assembly: UnityEngine.dll
Syntax
public sealed class ComputeShader : Object
Methods
Dispatch(Int32, Int32, Int32, Int32)
Declaration
public void Dispatch(int kernelIndex, int threadGroupsX, int threadGroupsY, int threadGroupsZ)
Parameters
|
Improve this Doc
View Source
DispatchIndirect(Int32, ComputeBuffer)
Declaration
[ExcludeFromDocs]
public void DispatchIndirect(int kernelIndex, ComputeBuffer argsBuffer)
Parameters
|
Improve this Doc
View Source
DispatchIndirect(Int32, ComputeBuffer, UInt32)
Declaration
public void DispatchIndirect(int kernelIndex, ComputeBuffer argsBuffer, [DefaultValue("0")] uint argsOffset)
Parameters
FindKernel(String)
Declaration
public int FindKernel(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
GetKernelThreadGroupSizes(Int32, out UInt32, out UInt32, out UInt32)
Declaration
public void GetKernelThreadGroupSizes(int kernelIndex, out uint x, out uint y, out uint z)
Parameters
HasKernel(String)
Declaration
public bool HasKernel(string name)
Parameters
Type |
Name |
Description |
String |
name |
|
Returns
|
Improve this Doc
View Source
SetBool(Int32, Boolean)
Declaration
public void SetBool(int nameID, bool val)
Parameters
|
Improve this Doc
View Source
SetBool(String, Boolean)
Declaration
public void SetBool(string name, bool val)
Parameters
SetBuffer(Int32, Int32, ComputeBuffer)
Declaration
public void SetBuffer(int kernelIndex, int nameID, ComputeBuffer buffer)
Parameters
|
Improve this Doc
View Source
SetBuffer(Int32, String, ComputeBuffer)
Declaration
public void SetBuffer(int kernelIndex, string name, ComputeBuffer buffer)
Parameters
SetFloat(Int32, Single)
Declaration
public void SetFloat(int nameID, float val)
Parameters
|
Improve this Doc
View Source
SetFloat(String, Single)
Declaration
public void SetFloat(string name, float val)
Parameters
|
Improve this Doc
View Source
SetFloats(Int32, Single[])
Declaration
public void SetFloats(int nameID, params float[] values)
Parameters
|
Improve this Doc
View Source
SetFloats(String, Single[])
Declaration
public void SetFloats(string name, params float[] values)
Parameters
SetInt(Int32, Int32)
Declaration
public void SetInt(int nameID, int val)
Parameters
|
Improve this Doc
View Source
SetInt(String, Int32)
Declaration
public void SetInt(string name, int val)
Parameters
|
Improve this Doc
View Source
SetInts(Int32, Int32[])
Declaration
public void SetInts(int nameID, params int[] values)
Parameters
|
Improve this Doc
View Source
SetInts(String, Int32[])
Declaration
public void SetInts(string name, params int[] values)
Parameters
SetMatrix(Int32, Matrix4x4)
Declaration
public void SetMatrix(int nameID, Matrix4x4 val)
Parameters
|
Improve this Doc
View Source
SetMatrix(String, Matrix4x4)
Declaration
public void SetMatrix(string name, Matrix4x4 val)
Parameters
SetMatrixArray(Int32, Matrix4x4[])
Declaration
public void SetMatrixArray(int nameID, Matrix4x4[] values)
Parameters
|
Improve this Doc
View Source
SetMatrixArray(String, Matrix4x4[])
Declaration
public void SetMatrixArray(string name, Matrix4x4[] values)
Parameters
|
Improve this Doc
View Source
SetTexture(Int32, Int32, Texture)
Declaration
public void SetTexture(int kernelIndex, int nameID, Texture texture)
Parameters
SetTexture(Int32, Int32, Texture, Int32)
Declaration
public void SetTexture(int kernelIndex, int nameID, Texture texture, int mipLevel)
Parameters
|
Improve this Doc
View Source
SetTexture(Int32, String, Texture)
Declaration
public void SetTexture(int kernelIndex, string name, Texture texture)
Parameters
|
Improve this Doc
View Source
SetTexture(Int32, String, Texture, Int32)
Declaration
public void SetTexture(int kernelIndex, string name, Texture texture, int mipLevel)
Parameters
SetTextureFromGlobal(Int32, Int32, Int32)
Declaration
public void SetTextureFromGlobal(int kernelIndex, int nameID, int globalTextureNameID)
Parameters
Type |
Name |
Description |
Int32 |
kernelIndex |
|
Int32 |
nameID |
|
Int32 |
globalTextureNameID |
|
|
Improve this Doc
View Source
SetTextureFromGlobal(Int32, String, String)
Declaration
public void SetTextureFromGlobal(int kernelIndex, string name, string globalTextureName)
Parameters
SetVector(Int32, Vector4)
Declaration
public void SetVector(int nameID, Vector4 val)
Parameters
|
Improve this Doc
View Source
SetVector(String, Vector4)
Declaration
public void SetVector(string name, Vector4 val)
Parameters
SetVectorArray(Int32, Vector4[])
Declaration
public void SetVectorArray(int nameID, Vector4[] values)
Parameters
|
Improve this Doc
View Source
SetVectorArray(String, Vector4[])
Declaration
public void SetVectorArray(string name, Vector4[] values)
Parameters
Extension Methods