Revision 175:f9f5640c2a3a Assets/Standard Assets/Effects/ImageEffects/Scripts/DepthOfField.cs
b/Assets/Standard Assets/Effects/ImageEffects/Scripts/DepthOfField.cs | ||
---|---|---|
91 | 91 |
void CreateComputeResources () { |
92 | 92 |
if (cbDrawArgs == null) |
93 | 93 |
{ |
94 |
cbDrawArgs = new ComputeBuffer (1, 16, ComputeBufferType.DrawIndirect);
|
|
94 |
cbDrawArgs = new ComputeBuffer (1, 16, ComputeBufferType.IndirectArguments);
|
|
95 | 95 |
var args= new int[4]; |
96 | 96 |
args[0] = 0; args[1] = 1; args[2] = 0; args[3] = 0; |
97 | 97 |
cbDrawArgs.SetData (args); |
Also available in: Unified diff