mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-21 00:23:36 +00:00
45 lines
1.9 KiB
C#
45 lines
1.9 KiB
C#
using Silk.NET.Vulkan;
|
|
|
|
namespace Ryujinx.Graphics.Vulkan
|
|
{
|
|
struct HardwareCapabilities
|
|
{
|
|
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 HardwareCapabilities(
|
|
bool supportsConditionalRendering,
|
|
bool supportsExtendedDynamicState,
|
|
bool supportsMultiView,
|
|
bool supportsNullDescriptors,
|
|
bool supportsPushDescriptors,
|
|
bool supportsTransformFeedback,
|
|
bool supportsTransformFeedbackQueries,
|
|
bool supportsGeometryShader,
|
|
uint minSubgroupSize,
|
|
uint maxSubgroupSize,
|
|
ShaderStageFlags requiredSubgroupSizeStages)
|
|
{
|
|
SupportsConditionalRendering = supportsConditionalRendering;
|
|
SupportsExtendedDynamicState = supportsExtendedDynamicState;
|
|
SupportsMultiView = supportsMultiView;
|
|
SupportsNullDescriptors = supportsNullDescriptors;
|
|
SupportsPushDescriptors = supportsPushDescriptors;
|
|
SupportsTransformFeedback = supportsTransformFeedback;
|
|
SupportsTransformFeedbackQueries = supportsTransformFeedbackQueries;
|
|
SupportsGeometryShader = supportsGeometryShader;
|
|
MinSubgroupSize = minSubgroupSize;
|
|
MaxSubgroupSize = maxSubgroupSize;
|
|
RequiredSubgroupSizeStages = requiredSubgroupSizeStages;
|
|
}
|
|
}
|
|
}
|