mirror of
https://github.com/GayPizzaSpecifications/voxelotl-engine.git
synced 2025-08-03 13:11:33 +00:00
use arc4random to seed non-csprng, fleshes out random subsystem
This commit is contained in:
@ -358,7 +358,7 @@ public class Renderer {
|
||||
let instancesBytes = numInstances * MemoryLayout<VertexShaderInstance>.stride
|
||||
|
||||
// (Re)create instance buffer if needed
|
||||
if self._instances[self.currentFrame] == nil || numInstances > self._instances[self.currentFrame]!.length {
|
||||
if self._instances[self.currentFrame] == nil || instancesBytes > self._instances[self.currentFrame]!.length {
|
||||
guard let instanceBuffer = self.device.makeBuffer(
|
||||
length: instancesBytes,
|
||||
options: .storageModeManaged)
|
||||
|
Reference in New Issue
Block a user