Internal_SetRandomWriteTargetBuffer() private method

private Internal_SetRandomWriteTargetBuffer ( int index, ComputeBuffer uav, bool preserveCounterValue ) : void
index int
uav ComputeBuffer
preserveCounterValue bool
return void
Esempio n. 1
0
 public static void SetRandomWriteTarget(int index, ComputeBuffer uav, [UnityEngine.Internal.DefaultValue("false")] bool preserveCounterValue)
 {
     if (uav == null)
     {
         throw new ArgumentNullException("uav");
     }
     if (uav.m_Ptr == IntPtr.Zero)
     {
         throw new ObjectDisposedException("uav");
     }
     Graphics.Internal_SetRandomWriteTargetBuffer(index, uav, preserveCounterValue);
 }
Esempio n. 2
0
 public static void SetRandomWriteTarget(int index, ComputeBuffer uav)
 {
     Graphics.Internal_SetRandomWriteTargetBuffer(index, uav);
 }