Skip to content
Snippets Groups Projects
Verified Commit 93e8854b authored by Tobias Frisch's avatar Tobias Frisch
Browse files

Add barriers to task shader

parent bfc679d0
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,7 @@ void main() {
}
memoryBarrierShared();
barrier();
// TODO: scaling support
vec3 meshletPositionWorld = (vec4(meshlet.meanPosition, 1) * objectMatrices[matrixIndex].model).xyz;
......@@ -67,6 +68,7 @@ void main() {
}
memoryBarrierShared();
barrier();
OUT.mvp = objectMatrices[matrixIndex].mvp;
EmitMeshTasksEXT(taskCount, 1, 1);
......
......@@ -45,4 +45,4 @@ if [ "$RUN_WITH_HUD" = "yes" ]; then
MANGOHUD=1 ./"$PROJECT" "$@"
else
./"$PROJECT" "$@"
fi
\ No newline at end of file
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment