mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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 DxvkDevice::options() const {
|
||||||
DxvkDeviceOptions options;
|
DxvkDeviceOptions options;
|
||||||
options.maxNumDynamicUniformBuffers = m_properties.limits.maxDescriptorSetUniformBuffersDynamic;
|
options.maxNumDynamicUniformBuffers = m_properties.limits.maxDescriptorSetUniformBuffersDynamic;
|
||||||
|
@ -141,6 +141,12 @@ namespace dxvk {
|
|||||||
const DxvkDeviceFeatures& features() const {
|
const DxvkDeviceFeatures& features() const {
|
||||||
return m_features;
|
return m_features;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* \brief Queries supported shader stages
|
||||||
|
* \returns Supported shader pipeline stages
|
||||||
|
*/
|
||||||
|
VkPipelineStageFlags getShaderPipelineStages() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \brief Retrieves device options
|
* \brief Retrieves device options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user