1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 14:52:10 +01:00

[d3d11] Reimplment GetEnabledShaderStages using getShaderPipelineStages

They do the same thing anyway.
This commit is contained in:
Philip Rebohle 2019-03-02 09:05:32 +01:00
parent d9edb16b75
commit 4fc96e60c5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 3 additions and 19 deletions

View File

@ -1331,24 +1331,6 @@ namespace dxvk {
}
VkPipelineStageFlags D3D11Device::GetEnabledShaderStages() const {
VkPipelineStageFlags enabledShaderPipelineStages
= VK_PIPELINE_STAGE_VERTEX_SHADER_BIT
| VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT
| VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT;
if (m_dxvkDevice->features().core.features.geometryShader)
enabledShaderPipelineStages |= VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT;
if (m_dxvkDevice->features().core.features.tessellationShader) {
enabledShaderPipelineStages |= VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT
| VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT;
}
return enabledShaderPipelineStages;
}
bool D3D11Device::CheckFeatureLevelSupport(
const Rc<DxvkAdapter>& adapter,
D3D_FEATURE_LEVEL featureLevel) {

View File

@ -295,7 +295,9 @@ namespace dxvk {
void FlushInitContext();
VkPipelineStageFlags GetEnabledShaderStages() const;
VkPipelineStageFlags GetEnabledShaderStages() const {
return m_dxvkDevice->getShaderPipelineStages();
}
DXGI_VK_FORMAT_INFO LookupFormat(
DXGI_FORMAT Format,