Question by
Ravart · Aug 28, 2016 at 01:29 AM ·
shadercompute shader
ComputeShader buffer, change count at runtime
Is it possible to change the buffer count, once it's been initialized? For example every update call (sometimes the point cloud is bigger or smaller than the init value)
buffer = new ComputeBuffer ( count, sizeof(float) * 7, ComputeBufferType.Default);
Comment
Answer by trapazza · Apr 17, 2020 at 10:03 AM
Never tried this, but I guess you can update the arguments buffer only, leaving the rest intact.