The sample was designed to support multiple BLASes, but it had a bug which probably prevented it from working. All BLAS builds were assigned the same scratch buffer memory, but without a UAV barrier between builds, memory corruption could occur. This was probably avoided by only creating one BLAS. I updated the sample to create a BLAS per mesh and assign each build its own scratch buffer. The alternative was to issue UAV barriers, but this prevents the driver from batching (simultaneous) builds.
The sample was designed to support multiple BLASes, but it had a bug which probably prevented it from working. All BLAS builds were assigned the same scratch buffer memory, but without a UAV barrier between builds, memory corruption could occur. This was probably avoided by only creating one BLAS. I updated the sample to create a BLAS per mesh and assign each build its own scratch buffer. The alternative was to issue UAV barriers, but this prevents the driver from batching (simultaneous) builds.