Vulkan: Skip draws when patches topology is used without a tessellation shader (#6508)
This commit is contained in:
parent
66b1d59c66
commit
791bf22109
3 changed files with 14 additions and 0 deletions
|
@ -21,6 +21,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
public bool HasMinimalLayout { get; }
|
||||
public bool UsePushDescriptors { get; }
|
||||
public bool IsCompute { get; }
|
||||
public bool HasTessellationControlShader => (Stages & (1u << 3)) != 0;
|
||||
|
||||
public uint Stages { get; }
|
||||
|
||||
|
@ -461,6 +462,7 @@ namespace Ryujinx.Graphics.Vulkan
|
|||
stages[i] = _shaders[i].GetInfo();
|
||||
}
|
||||
|
||||
pipeline.HasTessellationControlShader = HasTessellationControlShader;
|
||||
pipeline.StagesCount = (uint)_shaders.Length;
|
||||
pipeline.PipelineLayout = PipelineLayout;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue