mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[dxvk] Implement DxvkDevice::getShaderPipelineStages
This commit is contained in:
parent
d01110259c
commit
2a6d4fa2ba
@ -46,6 +46,23 @@ namespace dxvk {
|
||||
}
|
||||
|
||||
|
||||
VkPipelineStageFlags DxvkDevice::getShaderPipelineStages() const {
|
||||
VkPipelineStageFlags result = VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT
|
||||
| VK_PIPELINE_STAGE_VERTEX_SHADER_BIT
|
||||
| VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
|
||||
|
||||
if (m_features.core.features.geometryShader)
|
||||
result |= VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT;
|
||||
|
||||
if (m_features.core.features.tessellationShader) {
|
||||
result |= VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT
|
||||
| VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT;
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
DxvkDeviceOptions DxvkDevice::options() const {
|
||||
DxvkDeviceOptions options;
|
||||
options.maxNumDynamicUniformBuffers = m_properties.limits.maxDescriptorSetUniformBuffersDynamic;
|
||||
|
@ -141,6 +141,12 @@ namespace dxvk {
|
||||
const DxvkDeviceFeatures& features() const {
|
||||
return m_features;
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Queries supported shader stages
|
||||
* \returns Supported shader pipeline stages
|
||||
*/
|
||||
VkPipelineStageFlags getShaderPipelineStages() const;
|
||||
|
||||
/**
|
||||
* \brief Retrieves device options
|
||||
|
Loading…
Reference in New Issue
Block a user