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() { ...@@ -58,6 +58,7 @@ void main() {
} }
memoryBarrierShared(); memoryBarrierShared();
barrier();
// TODO: scaling support // TODO: scaling support
vec3 meshletPositionWorld = (vec4(meshlet.meanPosition, 1) * objectMatrices[matrixIndex].model).xyz; vec3 meshletPositionWorld = (vec4(meshlet.meanPosition, 1) * objectMatrices[matrixIndex].model).xyz;
...@@ -67,6 +68,7 @@ void main() { ...@@ -67,6 +68,7 @@ void main() {
} }
memoryBarrierShared(); memoryBarrierShared();
barrier();
OUT.mvp = objectMatrices[matrixIndex].mvp; OUT.mvp = objectMatrices[matrixIndex].mvp;
EmitMeshTasksEXT(taskCount, 1, 1); EmitMeshTasksEXT(taskCount, 1, 1);
......
...@@ -45,4 +45,4 @@ if [ "$RUN_WITH_HUD" = "yes" ]; then ...@@ -45,4 +45,4 @@ if [ "$RUN_WITH_HUD" = "yes" ]; then
MANGOHUD=1 ./"$PROJECT" "$@" MANGOHUD=1 ./"$PROJECT" "$@"
else else
./"$PROJECT" "$@" ./"$PROJECT" "$@"
fi fi
\ No newline at end of file
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