Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    Buffer.Structured Class

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll
    System.Object → Buffer.Structured
    Derived from Buffer.Structured:

    public static class Structured
    Name Description
    Methods
    New(GraphicsDevice, DataPointer, Int32, Boolean)

    Creates a new Structured buffer Default uasge.

    New(GraphicsDevice, Int32, Int32, Boolean)

    Creates a new Structured buffer accessible as a and optionaly as a .

    New<T>(GraphicsDevice, T[], Boolean)

    Creates a new Structured buffer Default uasge.

    New<T>(GraphicsDevice, Int32, Boolean)

    Creates a new Structured buffer accessible as a and optionaly as a .

    | Improve this Doc View Source

    Methods


    New(GraphicsDevice, DataPointer, Int32, Boolean)

    Creates a new Structured buffer Default uasge.

    public static Buffer New(GraphicsDevice device, DataPointer value, int elementSize, bool isUnorderedAccess = false)
    Parameters
    Type Name Description
    GraphicsDevice device

    The GraphicsDevice.

    DataPointer value

    The value to initialize the Structured buffer.

    System.Int32 elementSize

    Size of the element.

    System.Boolean isUnorderedAccess

    if set to true this buffer supports unordered access (RW in HLSL).

    Returns
    Type Description
    Buffer

    A Structured buffer


    New(GraphicsDevice, Int32, Int32, Boolean)

    Creates a new Structured buffer accessible as a and optionaly as a .

    public static Buffer New(GraphicsDevice device, int count, int elementSize, bool isUnorderedAccess = false)
    Parameters
    Type Name Description
    GraphicsDevice device

    The GraphicsDevice.

    System.Int32 count

    The number of element in this buffer.

    System.Int32 elementSize

    Size of the struct.

    System.Boolean isUnorderedAccess

    if set to true this buffer supports unordered access (RW in HLSL).

    Returns
    Type Description
    Buffer

    A Structured buffer


    New<T>(GraphicsDevice, T[], Boolean)

    Creates a new Structured buffer Default uasge.

    public static Buffer<T> New<T>(GraphicsDevice device, T[] value, bool isUnorderedAccess = false)
        where T : struct
    Parameters
    Type Name Description
    GraphicsDevice device

    The GraphicsDevice.

    T[] value

    The value to initialize the Structured buffer.

    System.Boolean isUnorderedAccess

    if set to true this buffer supports unordered access (RW in HLSL).

    Returns
    Type Description
    Buffer<T>

    A Structured buffer

    Type Parameters
    Name Description
    T

    Type of the Structured buffer to get the sizeof from


    New<T>(GraphicsDevice, Int32, Boolean)

    Creates a new Structured buffer accessible as a and optionaly as a .

    public static Buffer<T> New<T>(GraphicsDevice device, int count, bool isUnorderedAccess = false)
        where T : struct
    Parameters
    Type Name Description
    GraphicsDevice device

    The GraphicsDevice.

    System.Int32 count

    The number of element in this buffer.

    System.Boolean isUnorderedAccess

    if set to true this buffer supports unordered access (RW in HLSL).

    Returns
    Type Description
    Buffer<T>

    A Structured buffer

    Type Parameters
    Name Description
    T

    Type of the element in the structured buffer


    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation