mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added basic support for instanced rendering
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user