mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 04:58:58 +08:00
Spec: Add some named constants
- Addresses a comment in KhronosGroup/glTF#1114
This commit is contained in:
parent
f5e4c0a128
commit
24b91359da
@ -6,9 +6,9 @@
|
||||
~~~~~
|
||||
void DecodeSymbols(num_symbols, num_components, out_values) {
|
||||
scheme UI8
|
||||
if (scheme == 0) {
|
||||
if (scheme == TAGGED_SYMBOLS) {
|
||||
DecodeTaggedSymbols(num_symbols, num_components, out_values);
|
||||
} else if (scheme == 1) {
|
||||
} else if (scheme == RAW_SYMBOLS) {
|
||||
DecodeRawSymbols(num_symbols, out_values);
|
||||
}
|
||||
}
|
||||
|
@ -114,9 +114,9 @@ void DecodeSequentialCompressedIndices() {
|
||||
~~~~~
|
||||
void DecodeSequentialConnectivityData() {
|
||||
ParseSequentialConnectivityData();
|
||||
if (connectivity_method == 0) {
|
||||
if (connectivity_method == SEQUENTIAL_COMPRESSED_INDICES) {
|
||||
DecodeSequentialCompressedIndices();
|
||||
} else if (connectivity_method == 1) {
|
||||
} else if (connectivity_method == SEQUENTIAL_UNCOMPRESSED_INDICES) {
|
||||
DecodeSequentialIndices();
|
||||
}
|
||||
}
|
||||
|
@ -15,6 +15,10 @@
|
||||
* 2: SEQUENTIAL_ATTRIBUTE_ENCODER_QUANTIZATION
|
||||
* 3: SEQUENTIAL_ATTRIBUTE_ENCODER_NORMALS
|
||||
|
||||
* Sequential indices encoding methods
|
||||
* 0: SEQUENTIAL_COMPRESSED_INDICES
|
||||
* 1: SEQUENTIAL_UNCOMPRESSED_INDICES
|
||||
|
||||
* Prediction encoding methods
|
||||
* -2: PREDICTION_NONE
|
||||
* 0: PREDICTION_DIFFERENCE
|
||||
@ -66,6 +70,9 @@
|
||||
* 256: IO_BASE
|
||||
* 4096: L_RANS_BASE
|
||||
|
||||
* Symbol encoding methods
|
||||
* 0: TAGGED_SYMBOLS
|
||||
* 1: RAW_SYMBOLS
|
||||
|
||||
|
||||
### Variables
|
||||
|
Loading…
x
Reference in New Issue
Block a user