mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-30 23:10:16 +00:00
4da44e09cb
* Make all structs readonly when applicable. It should reduce amount of needless defensive copies * Make structs with trivial boilerplate equality code record structs * Remove unnecessary readonly modifiers from TextureCreateInfo * Make BitMap structs readonly too
69 lines
3.2 KiB
C#
69 lines
3.2 KiB
C#
using Silk.NET.Vulkan;
|
|
|
|
namespace Ryujinx.Graphics.Vulkan
|
|
{
|
|
readonly struct HardwareCapabilities
|
|
{
|
|
public readonly bool SupportsIndexTypeUint8;
|
|
public readonly bool SupportsCustomBorderColor;
|
|
public readonly bool SupportsIndirectParameters;
|
|
public readonly bool SupportsFragmentShaderInterlock;
|
|
public readonly bool SupportsGeometryShaderPassthrough;
|
|
public readonly bool SupportsSubgroupSizeControl;
|
|
public readonly bool SupportsShaderInt8;
|
|
public readonly bool SupportsConditionalRendering;
|
|
public readonly bool SupportsExtendedDynamicState;
|
|
public readonly bool SupportsMultiView;
|
|
public readonly bool SupportsNullDescriptors;
|
|
public readonly bool SupportsPushDescriptors;
|
|
public readonly bool SupportsTransformFeedback;
|
|
public readonly bool SupportsTransformFeedbackQueries;
|
|
public readonly bool SupportsGeometryShader;
|
|
public readonly uint MinSubgroupSize;
|
|
public readonly uint MaxSubgroupSize;
|
|
public readonly ShaderStageFlags RequiredSubgroupSizeStages;
|
|
public readonly SampleCountFlags SupportedSampleCounts;
|
|
|
|
public HardwareCapabilities(
|
|
bool supportsIndexTypeUint8,
|
|
bool supportsCustomBorderColor,
|
|
bool supportsIndirectParameters,
|
|
bool supportsFragmentShaderInterlock,
|
|
bool supportsGeometryShaderPassthrough,
|
|
bool supportsSubgroupSizeControl,
|
|
bool supportsShaderInt8,
|
|
bool supportsConditionalRendering,
|
|
bool supportsExtendedDynamicState,
|
|
bool supportsMultiView,
|
|
bool supportsNullDescriptors,
|
|
bool supportsPushDescriptors,
|
|
bool supportsTransformFeedback,
|
|
bool supportsTransformFeedbackQueries,
|
|
bool supportsGeometryShader,
|
|
uint minSubgroupSize,
|
|
uint maxSubgroupSize,
|
|
ShaderStageFlags requiredSubgroupSizeStages,
|
|
SampleCountFlags supportedSampleCounts)
|
|
{
|
|
SupportsIndexTypeUint8 = supportsIndexTypeUint8;
|
|
SupportsCustomBorderColor = supportsCustomBorderColor;
|
|
SupportsIndirectParameters = supportsIndirectParameters;
|
|
SupportsFragmentShaderInterlock = supportsFragmentShaderInterlock;
|
|
SupportsGeometryShaderPassthrough = supportsGeometryShaderPassthrough;
|
|
SupportsSubgroupSizeControl = supportsSubgroupSizeControl;
|
|
SupportsShaderInt8 = supportsShaderInt8;
|
|
SupportsConditionalRendering = supportsConditionalRendering;
|
|
SupportsExtendedDynamicState = supportsExtendedDynamicState;
|
|
SupportsMultiView = supportsMultiView;
|
|
SupportsNullDescriptors = supportsNullDescriptors;
|
|
SupportsPushDescriptors = supportsPushDescriptors;
|
|
SupportsTransformFeedback = supportsTransformFeedback;
|
|
SupportsTransformFeedbackQueries = supportsTransformFeedbackQueries;
|
|
SupportsGeometryShader = supportsGeometryShader;
|
|
MinSubgroupSize = minSubgroupSize;
|
|
MaxSubgroupSize = maxSubgroupSize;
|
|
RequiredSubgroupSizeStages = requiredSubgroupSizeStages;
|
|
SupportedSampleCounts = supportedSampleCounts;
|
|
}
|
|
}
|
|
}
|