docs.unity.cn
    Show / Hide Table of Contents

    Struct BufferDesc

    Descriptor used to create graphics buffer resources

    Inherited Members
    ValueType.Equals(Object)
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Experimental.Rendering.RenderGraphModule
    Syntax
    public struct BufferDesc

    Constructors

    BufferDesc(Int32, Int32)

    BufferDesc constructor.

    Declaration
    public BufferDesc(int count, int stride)
    Parameters
    Type Name Description
    Int32 count

    Number of elements in the buffer.

    Int32 stride

    Size of one element in the buffer.

    BufferDesc(Int32, Int32, GraphicsBuffer.Target)

    BufferDesc constructor.

    Declaration
    public BufferDesc(int count, int stride, GraphicsBuffer.Target target)
    Parameters
    Type Name Description
    Int32 count

    Number of elements in the buffer.

    Int32 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 count
    Field Value
    Type Description
    Int32

    name

    Graphics 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
    Int32

    target

    The intended usage of a GraphicsBuffer.

    Declaration
    public GraphicsBuffer.Target target
    Field Value
    Type Description
    GraphicsBuffer.Target

    usageFlags

    The intended update mode of a GraphicsBuffer.

    Declaration
    public GraphicsBuffer.UsageFlags usageFlags
    Field Value
    Type Description
    GraphicsBuffer.UsageFlags

    Methods

    GetHashCode()

    Hash function

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The texture descriptor hash.

    Overrides
    ValueType.GetHashCode()

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023