Class Buffer
Namespace: ValveResourceFormat.Renderer.Buffers
Assembly: Renderer.dll
Base class for OpenGL buffer objects with automatic binding management.
public abstract class BufferInheritance
Derived
Globals, StorageBuffer, UniformBuffer<T>
Constructors
Buffer(BufferTarget, int, string)
Initializes a new buffer with the given target, binding point, and debug name.
protected Buffer(BufferTarget target, int bindingPoint, string name)Parameters
target BufferTarget
bindingPoint int
name string
Properties
BindingPoint
Gets the shader binding point index.
public int BindingPoint { get; }Property Value
Handle
Gets the OpenGL buffer object handle.
public int Handle { get; }Property Value
Name
Gets the debug name for this buffer.
public string Name { get; }Property Value
Size
Gets or sets the current size of the buffer in bytes.
public virtual int Size { get; set; }Property Value
Target
Gets the OpenGL buffer target type.
public BufferTarget Target { get; }Property Value
BufferTarget
Methods
BindBufferBase()
Binds this buffer to its binding point using glBindBufferBase.
public void BindBufferBase()BindBufferBase(ReservedBufferSlots)
Binds this buffer to a binding point other than its own. Binding one buffer to several points at once is allowed; all of the blocks reading it are declared readonly.
public void BindBufferBase(ReservedBufferSlots bindingPoint)Parameters
bindingPoint ReservedBufferSlots
The slot to bind to instead of .
Delete()
Deletes the underlying OpenGL buffer object.
public virtual void Delete()
