mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-12-26 10:33:05 +00:00
Adapt changes from #7102 for dynamic states
This commit is contained in:
parent
7b480edf86
commit
3f7a3ac558
2 changed files with 3 additions and 1 deletions
|
@ -1063,6 +1063,8 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
|
||||
public void SetPrimitiveTopology(PrimitiveTopology topology)
|
||||
{
|
||||
topology = _newState.HasTessellationControlShader ? PrimitiveTopology.Patches : topology;
|
||||
|
||||
_topology = topology;
|
||||
|
||||
var vkTopology = Gd.TopologyRemap(topology).Convert();
|
||||
|
|
|
@ -424,7 +424,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
var inputAssemblyState = new PipelineInputAssemblyStateCreateInfo
|
||||
{
|
||||
SType = StructureType.PipelineInputAssemblyStateCreateInfo,
|
||||
Topology = supportsExtDynamicState ? TopologyClass : HasTessellationControlShader ? PrimitiveTopology.PatchList : Topology,
|
||||
Topology = supportsExtDynamicState ? TopologyClass : Topology,
|
||||
};
|
||||
|
||||
PipelineTessellationStateCreateInfo tessellationState;
|
||||
|
|
Loading…
Reference in a new issue