Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

ComputeBufferType.Default

Description

Default ComputeBuffer type (structured buffer).

In HLSL shaders, this maps to StructuredBuffer<T> or RWStructuredBuffer<T>.

The stride passed when constructing the buffer must match structure size, be a multiple of 4 and less than 2048.

See Microsoft's HLSL documentation on StructuredBuffer and RWStructuredBuffer.

See Also: ComputeBuffer, ComputeShader, Material.SetBuffer.

Did you find this page useful? Please give it a rating: