blob: 0709fa2204b744dfa2fc093c15d9f8cb2286047a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#include "dxso_common.h"
namespace dxvk {
VkShaderStageFlagBits DxsoProgramInfo::shaderStage() const {
switch (m_type) {
case DxsoProgramTypes::PixelShader: return VK_SHADER_STAGE_FRAGMENT_BIT;
case DxsoProgramTypes::VertexShader: return VK_SHADER_STAGE_VERTEX_BIT;
default: break;
}
throw DxvkError("DxsoProgramInfo::shaderStage: Unsupported program type");
}
spv::ExecutionModel DxsoProgramInfo::executionModel() const {
switch (m_type) {
case DxsoProgramTypes::PixelShader: return spv::ExecutionModelFragment;
case DxsoProgramTypes::VertexShader: return spv::ExecutionModelVertex;
default: break;
}
throw DxvkError("DxsoProgramInfo::executionModel: Unsupported program type");
}
}
|