Implement non-MS to MS copies with draws (#3958)
* Implement non-MS to MS copies with draws, simplify MS to non-MS copies and supports any host sample count * Remove unused program
This commit is contained in:
parent
9ac66336a2
commit
73aed239c3
15 changed files with 577 additions and 462 deletions
|
@ -190,6 +190,13 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
Api.GetPhysicalDeviceFeatures2(_physicalDevice, &features2);
|
||||
|
||||
ref var properties = ref properties2.Properties;
|
||||
|
||||
SampleCountFlags supportedSampleCounts =
|
||||
properties.Limits.FramebufferColorSampleCounts &
|
||||
properties.Limits.FramebufferDepthSampleCounts &
|
||||
properties.Limits.FramebufferStencilSampleCounts;
|
||||
|
||||
Capabilities = new HardwareCapabilities(
|
||||
supportedExtensions.Contains("VK_EXT_index_type_uint8"),
|
||||
supportedExtensions.Contains("VK_EXT_custom_border_color"),
|
||||
|
@ -208,9 +215,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
supportedFeatures.GeometryShader,
|
||||
propertiesSubgroupSizeControl.MinSubgroupSize,
|
||||
propertiesSubgroupSizeControl.MaxSubgroupSize,
|
||||
propertiesSubgroupSizeControl.RequiredSubgroupSizeStages);
|
||||
|
||||
ref var properties = ref properties2.Properties;
|
||||
propertiesSubgroupSizeControl.RequiredSubgroupSizeStages,
|
||||
supportedSampleCounts);
|
||||
|
||||
MemoryAllocator = new MemoryAllocator(Api, _device, properties.Limits.MaxMemoryAllocationCount);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue