Class UniformBuffer<T>
- Namespace
- ValveResourceFormat.Renderer.Buffers
- Assembly
- Renderer.dll
Uniform buffer object that stores shader-accessible structured data on the GPU.
public class UniformBuffer<T> : Buffer, IDisposable where T : notnull, new()Type Parameters
T-
The struct type to store in the buffer.
Inheritance
Implements
Inherited Members
Constructors
UniformBuffer(int)
public UniformBuffer(int bindingPoint)Parameters
bindingPointint
UniformBuffer(ReservedBufferSlots)
public UniformBuffer(ReservedBufferSlots slot)Parameters
slotReservedBufferSlots
Properties
Data
public T Data { get; set; }Property Value
- T
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()Dispose(bool)
protected virtual void Dispose(bool disposing)Parameters
disposingbool
Update()
public void Update()