UnityEngine.ComputeBuffer.InitBuffer C# (CSharp) Method

InitBuffer() private method

private InitBuffer ( ComputeBuffer buf, int count, int stride, ComputeBufferType type ) : void
buf ComputeBuffer
count int
stride int
type ComputeBufferType
return void
        private static extern void InitBuffer(ComputeBuffer buf, int count, int stride, ComputeBufferType type);
        [MethodImpl(MethodImplOptions.InternalCall)]

Usage Example

コード例 #1
0
 public ComputeBuffer(int count, int stride, ComputeBufferType type)
 {
     if (count <= 0)
     {
         throw new ArgumentException("Attempting to create a zero length compute buffer", "count");
     }
     if (stride < 0)
     {
         throw new ArgumentException("Attempting to create a compute buffer with a negative stride", "stride");
     }
     this.m_Ptr = IntPtr.Zero;
     ComputeBuffer.InitBuffer(this, count, stride, type);
 }
All Usage Examples Of UnityEngine.ComputeBuffer::InitBuffer