Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ComputeShader.SetBuffer

SetBuffer(kernelIndex: int, name: string, buffer: ComputeBuffer): void;
void SetBuffer(int kernelIndex, string name, ComputeBuffer buffer);
def SetBuffer(kernelIndex as int, name as string, buffer as ComputeBuffer) as void

Description

This function can either set an input or output compute buffer.