Class Buffer
Namespace: ValveResourceFormat.Renderer.Buffers
Assembly: Renderer.dll
Base class for OpenGL buffer objects with automatic binding management.
csharp
public abstract class BufferInheritance
Derived
StorageBuffer, UniformBuffer<T>
Constructors
Buffer(BufferTarget, int, string)
Initializes a new buffer with the given target, binding point, and debug name.
csharp
protected Buffer(BufferTarget target, int bindingPoint, string name)Parameters
target BufferTarget
bindingPoint int
name string
Properties
BindingPoint
Gets the shader binding point index.
csharp
public int BindingPoint { get; }Property Value
Handle
Gets the OpenGL buffer object handle.
csharp
public int Handle { get; }Property Value
Name
Gets the debug name for this buffer.
csharp
public string Name { get; }Property Value
Size
Gets or sets the current size of the buffer in bytes.
csharp
public virtual int Size { get; set; }Property Value
Target
Gets the OpenGL buffer target type.
csharp
public BufferTarget Target { get; }Property Value
BufferTarget
Methods
BindBufferBase()
Binds this buffer to its binding point using glBindBufferBase.
csharp
public void BindBufferBase()Delete()
Deletes the underlying OpenGL buffer object.
csharp
public virtual void Delete()SetBlockBinding(Shader)
Sets the uniform block binding in the given shader to match this buffer's binding point.
csharp
public void SetBlockBinding(Shader shader)Parameters
shader Shader

