Show / Hide Table of Contents

Class ComputeShader

Inheritance
Object
Object
ComputeShader
Inherited Members
Object.GetInstanceID()
Object.GetHashCode()
Object.Equals(Object)
Object.name
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate(Object, Transform, Boolean)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Instantiate<T>(T, Transform, Boolean)
Object.Destroy(Object, Single)
Object.Destroy(Object)
Object.DestroyImmediate(Object, Boolean)
Object.DestroyImmediate(Object)
Object.FindObjectsOfType(Type)
Object.DontDestroyOnLoad(Object)
Object.hideFlags
Object.DestroyObject(Object, Single)
Object.DestroyObject(Object)
Object.FindSceneObjectsOfType(Type)
Object.FindObjectsOfTypeIncludingAssets(Type)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.FindObjectsOfTypeAll(Type)
Object.FindObjectOfType(Type)
Object.ToString()
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEngine
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
Type Name Description
Int32 kernelIndex
Int32 threadGroupsX
Int32 threadGroupsY
Int32 threadGroupsZ
| Improve this Doc View Source

DispatchIndirect(Int32, ComputeBuffer)

Declaration
[ExcludeFromDocs]
public void DispatchIndirect(int kernelIndex, ComputeBuffer argsBuffer)
Parameters
Type Name Description
Int32 kernelIndex
ComputeBuffer argsBuffer
| Improve this Doc View Source

DispatchIndirect(Int32, ComputeBuffer, UInt32)

Declaration
public void DispatchIndirect(int kernelIndex, ComputeBuffer argsBuffer, [DefaultValue("0")] uint argsOffset)
Parameters
Type Name Description
Int32 kernelIndex
ComputeBuffer argsBuffer
UInt32 argsOffset

FindKernel(String)

Declaration
public int FindKernel(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Int32

GetKernelThreadGroupSizes(Int32, out UInt32, out UInt32, out UInt32)

Declaration
public void GetKernelThreadGroupSizes(int kernelIndex, out uint x, out uint y, out uint z)
Parameters
Type Name Description
Int32 kernelIndex
UInt32 x
UInt32 y
UInt32 z

HasKernel(String)

Declaration
public bool HasKernel(string name)
Parameters
Type Name Description
String name
Returns
Type Description
Boolean
| Improve this Doc View Source

SetBool(Int32, Boolean)

Declaration
public void SetBool(int nameID, bool val)
Parameters
Type Name Description
Int32 nameID
Boolean val
| Improve this Doc View Source

SetBool(String, Boolean)

Declaration
public void SetBool(string name, bool val)
Parameters
Type Name Description
String name
Boolean val

SetBuffer(Int32, Int32, ComputeBuffer)

Declaration
public void SetBuffer(int kernelIndex, int nameID, ComputeBuffer buffer)
Parameters
Type Name Description
Int32 kernelIndex
Int32 nameID
ComputeBuffer buffer
| Improve this Doc View Source

SetBuffer(Int32, String, ComputeBuffer)

Declaration
public void SetBuffer(int kernelIndex, string name, ComputeBuffer buffer)
Parameters
Type Name Description
Int32 kernelIndex
String name
ComputeBuffer buffer

SetFloat(Int32, Single)

Declaration
public void SetFloat(int nameID, float val)
Parameters
Type Name Description
Int32 nameID
Single val
| Improve this Doc View Source

SetFloat(String, Single)

Declaration
public void SetFloat(string name, float val)
Parameters
Type Name Description
String name
Single val
| Improve this Doc View Source

SetFloats(Int32, Single[])

Declaration
public void SetFloats(int nameID, params float[] values)
Parameters
Type Name Description
Int32 nameID
Single[] values
| Improve this Doc View Source

SetFloats(String, Single[])

Declaration
public void SetFloats(string name, params float[] values)
Parameters
Type Name Description
String name
Single[] values

SetInt(Int32, Int32)

Declaration
public void SetInt(int nameID, int val)
Parameters
Type Name Description
Int32 nameID
Int32 val
| Improve this Doc View Source

SetInt(String, Int32)

Declaration
public void SetInt(string name, int val)
Parameters
Type Name Description
String name
Int32 val
| Improve this Doc View Source

SetInts(Int32, Int32[])

Declaration
public void SetInts(int nameID, params int[] values)
Parameters
Type Name Description
Int32 nameID
Int32[] values
| Improve this Doc View Source

SetInts(String, Int32[])

Declaration
public void SetInts(string name, params int[] values)
Parameters
Type Name Description
String name
Int32[] values

SetMatrix(Int32, Matrix4x4)

Declaration
public void SetMatrix(int nameID, Matrix4x4 val)
Parameters
Type Name Description
Int32 nameID
Matrix4x4 val
| Improve this Doc View Source

SetMatrix(String, Matrix4x4)

Declaration
public void SetMatrix(string name, Matrix4x4 val)
Parameters
Type Name Description
String name
Matrix4x4 val

SetMatrixArray(Int32, Matrix4x4[])

Declaration
public void SetMatrixArray(int nameID, Matrix4x4[] values)
Parameters
Type Name Description
Int32 nameID
Matrix4x4[] values
| Improve this Doc View Source

SetMatrixArray(String, Matrix4x4[])

Declaration
public void SetMatrixArray(string name, Matrix4x4[] values)
Parameters
Type Name Description
String name
Matrix4x4[] values
| Improve this Doc View Source

SetTexture(Int32, Int32, Texture)

Declaration
public void SetTexture(int kernelIndex, int nameID, Texture texture)
Parameters
Type Name Description
Int32 kernelIndex
Int32 nameID
Texture texture

SetTexture(Int32, Int32, Texture, Int32)

Declaration
public void SetTexture(int kernelIndex, int nameID, Texture texture, int mipLevel)
Parameters
Type Name Description
Int32 kernelIndex
Int32 nameID
Texture texture
Int32 mipLevel
| Improve this Doc View Source

SetTexture(Int32, String, Texture)

Declaration
public void SetTexture(int kernelIndex, string name, Texture texture)
Parameters
Type Name Description
Int32 kernelIndex
String name
Texture texture
| Improve this Doc View Source

SetTexture(Int32, String, Texture, Int32)

Declaration
public void SetTexture(int kernelIndex, string name, Texture texture, int mipLevel)
Parameters
Type Name Description
Int32 kernelIndex
String name
Texture texture
Int32 mipLevel

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
Type Name Description
Int32 kernelIndex
String name
String globalTextureName

SetVector(Int32, Vector4)

Declaration
public void SetVector(int nameID, Vector4 val)
Parameters
Type Name Description
Int32 nameID
Vector4 val
| Improve this Doc View Source

SetVector(String, Vector4)

Declaration
public void SetVector(string name, Vector4 val)
Parameters
Type Name Description
String name
Vector4 val

SetVectorArray(Int32, Vector4[])

Declaration
public void SetVectorArray(int nameID, Vector4[] values)
Parameters
Type Name Description
Int32 nameID
Vector4[] values
| Improve this Doc View Source

SetVectorArray(String, Vector4[])

Declaration
public void SetVectorArray(string name, Vector4[] values)
Parameters
Type Name Description
String name
Vector4[] values

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX