Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
VkCV Framework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Vulkan2021
VkCV Framework
Merge requests
!74
Resolve "Mesh Shader Implementation"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Mesh Shader Implementation"
87-mesh-shader-implementation
into
develop
Overview
1
Commits
47
Pipelines
39
Changes
3
Merged
Ghost User
requested to merge
87-mesh-shader-implementation
into
develop
3 years ago
Overview
1
Commits
47
Pipelines
39
Changes
3
Expand
Closes
#87 (closed)
Edited
3 years ago
by
Tobias Frisch
0
0
Merge request reports
Viewing commit
d7ea5c20
Prev
Next
Show latest version
3 files
+
28
−
10
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
d7ea5c20
[
#87
] add skippedIndice vector
· d7ea5c20
Sebastian Gaida
authored
3 years ago
modules/meshlet/include/vkcv/meshlet/Tipsify.hpp
+
18
−
2
Options
@@ -5,6 +5,19 @@
#include
<iostream>
namespace
vkcv
::
meshlet
{
struct
tipsifyResult
{
/**
*
* @param indexBuffer new indexBuffer
* @param skippedIndices indices that have a spacial break
*/
tipsifyResult
(
const
std
::
vector
<
uint32_t
>
indexBuffer
,
const
std
::
vector
<
uint32_t
>
skippedIndices
)
:
indexBuffer
(
indexBuffer
),
skippedIndices
(
skippedIndices
)
{}
std
::
vector
<
uint32_t
>
indexBuffer
;
std
::
vector
<
uint32_t
>
skippedIndices
;
};
/**
* reorders the IndexBuffer, so all usages of vertices to triangle are as close as possible
* @param indexBuffer32Bit current IndexBuffer
@@ -13,9 +26,12 @@ namespace vkcv::meshlet {
* Recommended: 20. Keep the value between 5 and 50 <br>
* low: more random and patchy<br>
* high: closer vertices have higher chance -> leads to sinuous lines
* @return new IndexBuffer that replaces the input IndexBuffer
* @return new IndexBuffer that replaces the input IndexBuffer, and the indices that are skipped
*
* https://gfx.cs.princeton.edu/pubs/Sander_2007_%3ETR/tipsy.pdf
* https://www.martin.st/thesis/efficient_triangle_reordering.pdf
*/
std
::
vector
<
uint32_t
>
tipsifyMesh
(
tipsifyResult
tipsifyMesh
(
const
std
::
vector
<
uint32_t
>
&
indexBuffer32Bit
,
const
int
vertexCount
,
const
unsigned
int
cacheSize
=
20
);
Loading