C# Class CSharpGL.ShaderStorageBuffer

Buffer object that not work as input variable in shader.
Inheritance: Buffer
ファイルを表示 Open project: bitzhuwei/CSharpGL Class Usage Examples

Public Methods

Method Description
Binding ( ShaderProgram program, string storageBlockName, uint storageBlockBindingPoint ) : void

Bind this uniform buffer object and a uniform block to the same binding point.

Create ( Type elementType, int length, BufferUsage usage ) : ShaderStorageBuffer

Creates a ShaderStorageBuffer object directly in server side(GPU) without initializing its value.

Private Methods

Method Description
ShaderStorageBuffer ( uint bufferId, int length, int byteLength ) : System

pixel unpack buffer's pointer.

Method Details

Binding() public method

Bind this uniform buffer object and a uniform block to the same binding point.
public Binding ( ShaderProgram program, string storageBlockName, uint storageBlockBindingPoint ) : void
program ShaderProgram shader program.
storageBlockName string name of buffer block in shader.
storageBlockBindingPoint uint binding point maintained by OpenGL context.
return void

Create() public static method

Creates a ShaderStorageBuffer object directly in server side(GPU) without initializing its value.
public static Create ( Type elementType, int length, BufferUsage usage ) : ShaderStorageBuffer
elementType System.Type
length int
usage BufferUsage
return ShaderStorageBuffer