Struct ComputeBufferDesc
Descriptor used to create compute buffer resources
Inherited Members
Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct ComputeBufferDesc
  Constructors
ComputeBufferDesc(int, int)
ComputeBufferDesc constructor.
Declaration
public ComputeBufferDesc(int count, int stride)
  Parameters
| Type | Name | Description | 
|---|---|---|
| int | count | Number of elements in the buffer.  | 
      
| int | stride | Size of one element in the buffer.  | 
      
ComputeBufferDesc(int, int, ComputeBufferType)
ComputeBufferDesc constructor.
Declaration
public ComputeBufferDesc(int count, int stride, ComputeBufferType type)
  Parameters
| Type | Name | Description | 
|---|---|---|
| int | count | Number of elements in the buffer.  | 
      
| int | stride | Size of one element in the buffer.  | 
      
| ComputeBufferType | type | Type of the buffer.  | 
      
Fields
count
Number of elements in the buffer..
Declaration
public int count
  Field Value
| Type | Description | 
|---|---|
| int | 
name
Compute Buffer name.
Declaration
public string name
  Field Value
| Type | Description | 
|---|---|
| string | 
stride
Size of one element in the buffer. Has to match size of buffer type in the shader.
Declaration
public int stride
  Field Value
| Type | Description | 
|---|---|
| int | 
type
Type of the buffer, default is ComputeBufferType.Default (structured buffer).
Declaration
public ComputeBufferType type
  Field Value
| Type | Description | 
|---|---|
| ComputeBufferType | 
Methods
GetHashCode()
Hash function
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| int | The texture descriptor hash.  |