mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
Added IndexSize to IndexFormat
This commit is contained in:
@@ -2,8 +2,13 @@ namespace GlitchyEngine.Renderer
|
|||||||
{
|
{
|
||||||
public enum IndexFormat
|
public enum IndexFormat
|
||||||
{
|
{
|
||||||
Index16Bit,
|
case Index16Bit;
|
||||||
Index32Bit,
|
case Index32Bit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the size in bytes of an index of the IndexFormat.
|
||||||
|
*/
|
||||||
|
public int IndexSize => this == Index16Bit ? 2 : 4
|
||||||
}
|
}
|
||||||
|
|
||||||
public class IndexBuffer : Buffer
|
public class IndexBuffer : Buffer
|
||||||
|
|||||||
Reference in New Issue
Block a user