mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-01-24 11:20:33 +00:00
5626f2ca1c
* Introduce ResourceLayout * Part 1: Use new ResourceSegments array on UpdateAndBind * Part 2: Use ResourceLayout to build PipelineLayout * Delete old code * XML docs * Fix shader cache load NRE * Fix typo
26 lines
No EOL
864 B
C#
26 lines
No EOL
864 B
C#
namespace Ryujinx.Graphics.GAL
|
|
{
|
|
public struct ShaderInfo
|
|
{
|
|
public int FragmentOutputMap { get; }
|
|
public ResourceLayout ResourceLayout { get; }
|
|
public ProgramPipelineState? State { get; }
|
|
public bool FromCache { get; set; }
|
|
|
|
public ShaderInfo(int fragmentOutputMap, ResourceLayout resourceLayout, ProgramPipelineState state, bool fromCache = false)
|
|
{
|
|
FragmentOutputMap = fragmentOutputMap;
|
|
ResourceLayout = resourceLayout;
|
|
State = state;
|
|
FromCache = fromCache;
|
|
}
|
|
|
|
public ShaderInfo(int fragmentOutputMap, ResourceLayout resourceLayout, bool fromCache = false)
|
|
{
|
|
FragmentOutputMap = fragmentOutputMap;
|
|
ResourceLayout = resourceLayout;
|
|
State = null;
|
|
FromCache = fromCache;
|
|
}
|
|
}
|
|
} |