Enum bgfx.BufferFlags | Project Tiny | 0.31.0-preview.24
docs.unity.cn
    Show / Hide Table of Contents

    Enum bgfx.BufferFlags

    Namespace: Bgfx
    Syntax
    [Flags]
    public enum BufferFlags : ushort

    Fields

    Name Description Value
    ComputeFormatShift 0
    None 0
    ComputeFormat8x1

    1 8-bit value

    1
    ComputeFormat8x2

    2 8-bit values

    2
    ComputeFormat8x4

    4 8-bit values

    3
    ComputeFormat16x1

    1 16-bit value

    4
    ComputeTypeShift 4
    ComputeFormat16x2

    2 16-bit values

    5
    ComputeFormat16x4

    4 16-bit values

    6
    ComputeFormat32x1

    1 32-bit value

    7
    ComputeFormat32x2

    2 32-bit values

    8
    ComputeFormat32x4

    4 32-bit values

    9
    ComputeFormatMask 15
    ComputeTypeInt

    Type int.

    16
    ComputeTypeUint

    Type uint.

    32
    ComputeTypeFloat

    Type float.

    48
    ComputeTypeMask 48
    ComputeRead

    Buffer will be read by shader.

    256
    ComputeWrite

    Buffer will be used for writing.

    512
    ComputeReadWrite 768
    DrawIndirect

    Buffer will be used for storing draw indirect commands.

    1024
    AllowResize

    Allow dynamic index/vertex buffer resize during update.

    2048
    Index32

    Index buffer contains 32-bit indices.

    4096
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 06 November 2020