aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.Audio/Renderer/Parameter/MemoryPoolInParameter.cs
blob: 602508589606064a66cd55d51be454df166ad3c2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using Ryujinx.Audio.Renderer.Common;
using System.Runtime.InteropServices;
using CpuAddress = System.UInt64;

namespace Ryujinx.Audio.Renderer.Parameter
{
    /// <summary>
    /// Input information for a memory pool.
    /// </summary>
    [StructLayout(LayoutKind.Sequential, Pack = 1)]
    public struct MemoryPoolInParameter
    {
        /// <summary>
        /// The CPU address used by the memory pool.
        /// </summary>
        public CpuAddress CpuAddress;

        /// <summary>
        /// The size used by the memory pool.
        /// </summary>
        public ulong Size;

        /// <summary>
        /// The target state the user wants.
        /// </summary>
        public MemoryPoolUserState State;

        /// <summary>
        /// Reserved/unused.
        /// </summary>
        private unsafe fixed uint _reserved[3];
    }
}