Create() public static method

Creates a sub-type of Buffer object directly in server side(GPU) without initializing its value.
public static Create ( IndependentBufferTarget target, Type elementType, int length, BufferUsage usage ) : Buffer
target IndependentBufferTarget
elementType System.Type
length int
usage BufferUsage
return Buffer
Exemplo n.º 1
0
 /// <summary>
 /// Creates a <see cref="UniformBuffer"/> object directly in server side(GPU) without initializing its value.
 /// </summary>
 /// <param name="elementType"></param>
 /// <param name="usage"></param>
 /// <param name="length"></param>
 /// <returns></returns>
 public static UniformBuffer Create(Type elementType, int length, BufferUsage usage)
 {
     return(Buffer.Create(IndependentBufferTarget.UniformBuffer, elementType, length, usage) as UniformBuffer);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Creates a <see cref="ShaderStorageBuffer"/> object directly in server side(GPU) without initializing its value.
 /// </summary>
 /// <param name="elementType"></param>
 /// <param name="usage"></param>
 /// <param name="length"></param>
 /// <returns></returns>
 public static ShaderStorageBuffer Create(Type elementType, int length, BufferUsage usage)
 {
     return(Buffer.Create(IndependentBufferTarget.ShaderStorageBuffer, elementType, length, usage) as ShaderStorageBuffer);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Creates a <see cref="AtomicCounterBuffer"/> object directly in server side(GPU) without initializing its value.
 /// </summary>
 /// <param name="elementType"></param>
 /// <param name="length"></param>
 /// <param name="usage"></param>
 /// <returns></returns>
 public static AtomicCounterBuffer Create(Type elementType, int length, BufferUsage usage)
 {
     return(Buffer.Create(IndependentBufferTarget.AtomicCounterBuffer, elementType, length, usage) as AtomicCounterBuffer);
 }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a <see cref="PixelPackBuffer"/> object directly in server side(GPU) without initializing its value.
 /// </summary>
 /// <param name="elementType"></param>
 /// <param name="length"></param>
 /// <param name="usage"></param>
 /// <returns></returns>
 public static PixelPackBuffer Create(Type elementType, int length, BufferUsage usage)
 {
     return(Buffer.Create(IndependentBufferTarget.PixelPackBuffer, elementType, length, usage) as PixelPackBuffer);
 }