void DispatchIndirect( GpuBuffer indirectBuffer, System.UInt32 indirectElementOffset )

Summary

Dispatch this compute shader by reading thread group counts (x, y, z) from an indirect buffer of type GpuBuffer.IndirectDispatchArguments.

Remarks

['paramref'] must be created with GpuBuffer.UsageFlags.IndirectDrawArguments and have an element size of 12 bytes.

['paramref'] is an element index into ['paramref'], not a byte offset.

When called outside a graphics context, the dispatch runs immediately. When called inside a graphics context, the dispatch runs async.

people
Log in to reply
You can't reply if you're not logged in. That would be crazy.