mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-03-13 00:10:17 +00:00
* Ensure descriptor sets are only re-used when all command buffers using it have completed * Fix some SPIR-V capabilities * Set update after bind flag if we exceed limits * Simpler fix for Intel * Format whitespace * Make struct readonly * Add barriers for extra set arrays too
37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
namespace Ryujinx.Graphics.Shader.Translation
|
|
{
|
|
class HostCapabilities
|
|
{
|
|
public readonly bool ReducedPrecision;
|
|
public readonly bool SupportsFragmentShaderInterlock;
|
|
public readonly bool SupportsFragmentShaderOrderingIntel;
|
|
public readonly bool SupportsGeometryShaderPassthrough;
|
|
public readonly bool SupportsShaderBallot;
|
|
public readonly bool SupportsShaderBarrierDivergence;
|
|
public readonly bool SupportsShaderFloat64;
|
|
public readonly bool SupportsTextureShadowLod;
|
|
public readonly bool SupportsViewportMask;
|
|
|
|
public HostCapabilities(
|
|
bool reducedPrecision,
|
|
bool supportsFragmentShaderInterlock,
|
|
bool supportsFragmentShaderOrderingIntel,
|
|
bool supportsGeometryShaderPassthrough,
|
|
bool supportsShaderBallot,
|
|
bool supportsShaderBarrierDivergence,
|
|
bool supportsShaderFloat64,
|
|
bool supportsTextureShadowLod,
|
|
bool supportsViewportMask)
|
|
{
|
|
ReducedPrecision = reducedPrecision;
|
|
SupportsFragmentShaderInterlock = supportsFragmentShaderInterlock;
|
|
SupportsFragmentShaderOrderingIntel = supportsFragmentShaderOrderingIntel;
|
|
SupportsGeometryShaderPassthrough = supportsGeometryShaderPassthrough;
|
|
SupportsShaderBallot = supportsShaderBallot;
|
|
SupportsShaderBarrierDivergence = supportsShaderBarrierDivergence;
|
|
SupportsShaderFloat64 = supportsShaderFloat64;
|
|
SupportsTextureShadowLod = supportsTextureShadowLod;
|
|
SupportsViewportMask = supportsViewportMask;
|
|
}
|
|
}
|
|
}
|