Struct BufferDesc
Descriptor used to create graphics buffer resources
Inherited Members
Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct BufferDescConstructors
BufferDesc(int, int)
BufferDesc constructor.
Declaration
public BufferDesc(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. | 
BufferDesc(int, int, Target)
BufferDesc constructor.
Declaration
public BufferDesc(int count, int stride, GraphicsBuffer.Target target)Parameters
| Type | Name | Description | 
|---|---|---|
| int | count | Number of elements in the buffer. | 
| int | stride | Size of one element in the buffer. | 
| GraphicsBuffer.Target | target | Type of the buffer. | 
Fields
count
Number of elements in the buffer..
Declaration
public int countField Value
| Type | Description | 
|---|---|
| int | 
name
Graphics Buffer name.
Declaration
public string nameField 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 strideField Value
| Type | Description | 
|---|---|
| int | 
target
The intended usage of a GraphicsBuffer.
Declaration
public GraphicsBuffer.Target targetField Value
| Type | Description | 
|---|---|
| GraphicsBuffer.Target | 
usageFlags
The intended update mode of a GraphicsBuffer.
Declaration
public GraphicsBuffer.UsageFlags usageFlagsField Value
| Type | Description | 
|---|---|
| GraphicsBuffer.UsageFlags | 
Methods
GetHashCode()
Hash function
Declaration
public override int GetHashCode()Returns
| Type | Description | 
|---|---|
| int | The texture descriptor hash. |