Added basic support for instanced rendering

This commit is contained in:
Simon Lübeß
2021-05-30 19:37:23 +02:00
parent 0f2c481616
commit ae290936b9
6 changed files with 29 additions and 3 deletions
+2 -2
View File
@@ -30,14 +30,14 @@ namespace GlitchyEngine.Renderer
_vertexType = vertexType;
_description = .(){
Size = ((uint32)_vertexType.Size * vertexCount),
Size = ((uint32)_vertexType.Stride * vertexCount),
Usage = usage,
CPUAccess = cpuAccess,
BindFlags = .Vertex,
MiscFlags = .None
};
_defaultBinding = .(this, (.)_vertexType.Size, 0);
_defaultBinding = .(this, (.)_vertexType.Stride, 0);
}
[Inline]