C# 클래스 CSharpGL.UniformBuffer

Buffer object that not work as input variable in shader.
상속: Buffer
파일 보기 프로젝트 열기: bitzhuwei/CSharpGL 1 사용 예제들

공개 메소드들

메소드 설명
Binding ( ShaderProgram program, uint uniformBlockIndex, uint uniformBlockBindingPoint ) : void

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

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

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

비공개 메소드들

메소드 설명
UniformBuffer ( uint bufferId, int length, int byteLength ) : System

pixel unpack buffer's pointer.

메소드 상세

Binding() 공개 메소드

Bind this uniform buffer object and a uniform block to the same binding point.
public Binding ( ShaderProgram program, uint uniformBlockIndex, uint uniformBlockBindingPoint ) : void
program ShaderProgram shader program.
uniformBlockIndex uint index of uniform block got by (glGetUniformBlockIndex).
uniformBlockBindingPoint uint binding point maintained by OpenGL context.
리턴 void

Create() 공개 정적인 메소드

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