Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    MappedResource Struct

    Namespace: Stride.Graphics
    Assembly: Stride.Graphics.dll

    A GPU resource mapped for CPU access. This is returned by using

    public struct MappedResource
    Name Description
    Fields
    DataBox

    The data box

    OffsetInBytes

    the offset of the mapped resource since the beginning of the buffer

    Resource

    The resource mapped.

    SizeInBytes

    the size of the mapped resource

    SubResourceIndex

    The subresource index.

    | Improve this Doc View Source

    Fields


    DataBox

    The data box

    public readonly DataBox DataBox
    Field Value
    Type Description
    DataBox

    OffsetInBytes

    the offset of the mapped resource since the beginning of the buffer

    public readonly int OffsetInBytes
    Field Value
    Type Description
    System.Int32

    Resource

    The resource mapped.

    public readonly GraphicsResource Resource
    Field Value
    Type Description
    GraphicsResource

    SizeInBytes

    the size of the mapped resource

    public readonly int SizeInBytes
    Field Value
    Type Description
    System.Int32

    SubResourceIndex

    The subresource index.

    public readonly int SubResourceIndex
    Field Value
    Type Description
    System.Int32

    Inherited Members

    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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