UnityEngine.Shader.SetGlobalBuffer C# (CSharp) Method

SetGlobalBuffer() public static method

public static SetGlobalBuffer ( string propertyName, ComputeBuffer buffer ) : void
propertyName string
buffer ComputeBuffer
return void
		public static void SetGlobalBuffer(string propertyName, ComputeBuffer buffer){}
		public static int PropertyToID(string name){}

Usage Example

コード例 #1
0
 public static void SetGlobalBuffer(string name, ComputeBuffer buffer)
 {
     Shader.SetGlobalBuffer(Shader.PropertyToID(name), buffer);
 }