summaryrefslogtreecommitdiff
path: root/indra/llmeshoptimizer/llmeshoptimizer.h
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-06-14 16:39:46 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-06-14 16:40:56 +0300
commit45bcefd981e268b158d11d59f2ba9063293986a6 (patch)
treeeefeda2338e1f7d15755214f075cbb3f18c0c0b8 /indra/llmeshoptimizer/llmeshoptimizer.h
parentb08340f1831005ae227577899a64408cc939a12d (diff)
SL-17475 fix remap causing an assert
Diffstat (limited to 'indra/llmeshoptimizer/llmeshoptimizer.h')
-rw-r--r--indra/llmeshoptimizer/llmeshoptimizer.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/indra/llmeshoptimizer/llmeshoptimizer.h b/indra/llmeshoptimizer/llmeshoptimizer.h
index c76f8a5a89..ea965d6b47 100644
--- a/indra/llmeshoptimizer/llmeshoptimizer.h
+++ b/indra/llmeshoptimizer/llmeshoptimizer.h
@@ -68,8 +68,10 @@ public:
U64 vertex_count);
// Remap functions
+ // Welds indentical vertexes together.
+ // Removes unused vertices if indices were provided.
- static size_t generateRemapMulti(
+ static size_t generateRemapMultiU32(
unsigned int* remap,
const U32 * indices,
U64 index_count,
@@ -78,6 +80,15 @@ public:
const LLVector2 * text_coords,
U64 vertex_count);
+ static size_t generateRemapMultiU16(
+ unsigned int* remap,
+ const U16 * indices,
+ U64 index_count,
+ const LLVector4a * vertex_positions,
+ const LLVector4a * normals,
+ const LLVector2 * text_coords,
+ U64 vertex_count);
+
static void remapIndexBufferU32(U32 * destination_indices,
const U32 * indices,
U64 index_count,