Added RefCounting, added ConstantBuffers

This commit is contained in:
Simon Lübeß
2021-02-06 19:37:07 +01:00
parent a2e4b5563e
commit 9ea56d6786
17 changed files with 759 additions and 293 deletions
+29
View File
@@ -0,0 +1,29 @@
using System;
using GlitchyEngine.Math;
namespace GlitchyEngine.Renderer
{
public class Material : RefCounted
{
private Effect _effect ~ _?.ReleaseRef();
public this(Effect effect)
{
_effect = effect;
}
// public void Set(String name, VALUE)...
// Float, Float2, Float3, Float4
// Color, ColorRGB, ColorRGBA
// Matrix3x3, Matrix4x3, Matrix
// Int, Int2, Int3, Int4
// UInt, UInt2, UInt3, UInt4
// Bool, Bool2, Bool3, Bool4
// Half, Half2, Half3, Half4
// Byte, Byte2, Byte3, Byte4
// Texture
// Sampler
}
}