This commit is contained in:
2026-02-21 18:55:27 +08:00
parent 006a5b7e21
commit aa83bad928
3 changed files with 4 additions and 4 deletions

View File

@@ -1,4 +1,4 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using UltimateWater; using UltimateWater;
using UnityEngine; using UnityEngine;

View File

@@ -547,7 +547,7 @@ namespace UltimateWater
} }
if (_ParticlesInfo == null) if (_ParticlesInfo == null)
{ {
_ParticlesInfo = new ComputeBuffer(1, 16, ComputeBufferType.DrawIndirect); _ParticlesInfo = new ComputeBuffer(1, 16, ComputeBufferType.IndirectArguments);
_ParticlesInfo.SetData(new int[4] { 0, 1, 0, 0 }); _ParticlesInfo.SetData(new int[4] { 0, 1, 0, 0 });
} }
_ResourcesReady = true; _ResourcesReady = true;

View File

@@ -259,12 +259,12 @@ namespace UltimateWater
} }
if (_ParticlesRenderInfo == null) if (_ParticlesRenderInfo == null)
{ {
_ParticlesRenderInfo = new ComputeBuffer(1, 16, ComputeBufferType.DrawIndirect); _ParticlesRenderInfo = new ComputeBuffer(1, 16, ComputeBufferType.IndirectArguments);
_ParticlesRenderInfo.SetData(new int[4] { 0, 1, 0, 0 }); _ParticlesRenderInfo.SetData(new int[4] { 0, 1, 0, 0 });
} }
if (_ParticlesUpdateInfo == null) if (_ParticlesUpdateInfo == null)
{ {
_ParticlesUpdateInfo = new ComputeBuffer(1, 12, ComputeBufferType.DrawIndirect); _ParticlesUpdateInfo = new ComputeBuffer(1, 12, ComputeBufferType.IndirectArguments);
_ParticlesUpdateInfo.SetData(new int[3] { 0, 1, 1 }); _ParticlesUpdateInfo.SetData(new int[3] { 0, 1, 1 });
} }
} }