ohmygod gpu sorting bug was just faulty constant buffer binding lol

This commit is contained in:
turanszkij
2018-05-11 15:00:27 +01:00
parent 8e337db00f
commit 68fdd15764
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -598,6 +598,7 @@ void wiEmittedParticle::UpdateRenderData(GRAPHICSTHREAD threadID)
sc.job_params.w = 0;
device->UpdateBuffer(sortCB, &sc, threadID);
device->BindConstantBuffer(CS, sortCB, 0, threadID);
device->Dispatch(numThreadGroups, 1, 1, threadID);
device->UAVBarrier(uavs, ARRAYSIZE(uavs), threadID);
@@ -728,10 +729,13 @@ void wiEmittedParticle::CleanUp()
SAFE_DELETE(aliveList[1]);
SAFE_DELETE(deadList);
SAFE_DELETE(distanceBuffer);
SAFE_DELETE(densityBuffer);
SAFE_DELETE(counterBuffer);
SAFE_DELETE(indirectBuffers);
SAFE_DELETE(constantBuffer);
SAFE_DELETE(debugDataReadbackBuffer);
SAFE_DELETE(debugDataReadbackIndexBuffer);
SAFE_DELETE(debugDataReadbackDistanceBuffer);
}
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wiVersion
// minor features, major updates
const int minor = 17;
// minor bug fixes, alterations, refactors, updates
const int revision = 16;
const int revision = 17;
long GetVersion()