mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-07-04 05:46:26 +02:00
Move solution and projects to src
This commit is contained in:
parent
cd124bda58
commit
cee7121058
3466 changed files with 55 additions and 55 deletions
65
src/Ryujinx.Graphics.Gpu/Shader/GpuChannelComputeState.cs
Normal file
65
src/Ryujinx.Graphics.Gpu/Shader/GpuChannelComputeState.cs
Normal file
|
@ -0,0 +1,65 @@
|
|||
namespace Ryujinx.Graphics.Gpu.Shader
|
||||
{
|
||||
/// <summary>
|
||||
/// State used by the <see cref="GpuAccessor"/>.
|
||||
/// </summary>
|
||||
readonly struct GpuChannelComputeState
|
||||
{
|
||||
// New fields should be added to the end of the struct to keep disk shader cache compatibility.
|
||||
|
||||
/// <summary>
|
||||
/// Local group size X of the compute shader.
|
||||
/// </summary>
|
||||
public readonly int LocalSizeX;
|
||||
|
||||
/// <summary>
|
||||
/// Local group size Y of the compute shader.
|
||||
/// </summary>
|
||||
public readonly int LocalSizeY;
|
||||
|
||||
/// <summary>
|
||||
/// Local group size Z of the compute shader.
|
||||
/// </summary>
|
||||
public readonly int LocalSizeZ;
|
||||
|
||||
/// <summary>
|
||||
/// Local memory size of the compute shader.
|
||||
/// </summary>
|
||||
public readonly int LocalMemorySize;
|
||||
|
||||
/// <summary>
|
||||
/// Shared memory size of the compute shader.
|
||||
/// </summary>
|
||||
public readonly int SharedMemorySize;
|
||||
|
||||
/// <summary>
|
||||
/// Indicates that any storage buffer use is unaligned.
|
||||
/// </summary>
|
||||
public readonly bool HasUnalignedStorageBuffer;
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new GPU compute state.
|
||||
/// </summary>
|
||||
/// <param name="localSizeX">Local group size X of the compute shader</param>
|
||||
/// <param name="localSizeY">Local group size Y of the compute shader</param>
|
||||
/// <param name="localSizeZ">Local group size Z of the compute shader</param>
|
||||
/// <param name="localMemorySize">Local memory size of the compute shader</param>
|
||||
/// <param name="sharedMemorySize">Shared memory size of the compute shader</param>
|
||||
/// <param name="hasUnalignedStorageBuffer">Indicates that any storage buffer use is unaligned</param>
|
||||
public GpuChannelComputeState(
|
||||
int localSizeX,
|
||||
int localSizeY,
|
||||
int localSizeZ,
|
||||
int localMemorySize,
|
||||
int sharedMemorySize,
|
||||
bool hasUnalignedStorageBuffer)
|
||||
{
|
||||
LocalSizeX = localSizeX;
|
||||
LocalSizeY = localSizeY;
|
||||
LocalSizeZ = localSizeZ;
|
||||
LocalMemorySize = localMemorySize;
|
||||
SharedMemorySize = sharedMemorySize;
|
||||
HasUnalignedStorageBuffer = hasUnalignedStorageBuffer;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue