mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 09:08:22 -05:00
18 lines
No EOL
653 B
C
18 lines
No EOL
653 B
C
#ifndef INDEX_BUFFER_COMPRESSION_FORMAT_H__
|
|
#define INDEX_BUFFER_COMPRESSION_FORMAT_H__
|
|
#pragma once
|
|
|
|
enum IndexBufferCompressionFormat
|
|
{
|
|
// Per indice encoding - handles degenerates, but has worse compression/decompression speed and compression.
|
|
IBCF_PER_INDICE_1 = 0,
|
|
|
|
// Per triangle encoding - better compression/speed, does not handle degenerates.
|
|
IBCF_PER_TRIANGLE_1 = 1,
|
|
|
|
// Automatically pick the best encoding dependent on whether degenerate triangles are detected in the mesh.
|
|
// Will take longer to compress (due to the degenerate triangle check).
|
|
ICBF_AUTO = 2
|
|
};
|
|
|
|
#endif // -- INDEX_BUFFER_COMPRESSION_FORMAT_H__
|