muffin v7.5.5
This commit is contained in:
parent
a8f2c1df37
commit
6266f9e6b7
110 changed files with 14907 additions and 6073 deletions
24
Auspex/Auspex.Rendering.Direct3D/HlslShaderBuilder.cs
Normal file
24
Auspex/Auspex.Rendering.Direct3D/HlslShaderBuilder.cs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
using System;
|
||||
|
||||
namespace Auspex.Rendering.Direct3D;
|
||||
|
||||
internal abstract class HlslShaderBuilder<TElement> : IDisposable where TElement : unmanaged
|
||||
{
|
||||
private protected readonly GpuBuffer<TElement>.Builder _inner;
|
||||
|
||||
protected HlslShaderBuilder(GpuBuffer<TElement>.Builder inner)
|
||||
{
|
||||
_inner = inner;
|
||||
}
|
||||
|
||||
public virtual void Dispose()
|
||||
{
|
||||
_inner.Dispose();
|
||||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
public void Add(ref TElement inst)
|
||||
{
|
||||
_inner.Add(ref inst);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue