[GPU] Shader::HostVertexShaderType enum for domain shader types

This commit is contained in:
Triang3l
2020-04-06 00:03:23 +03:00
parent 8da8044771
commit 4b9f63cdf1
12 changed files with 492 additions and 443 deletions

View File

@@ -1657,11 +1657,11 @@ class DxbcShaderTranslator : public ShaderTranslator {
}
inline bool IsDxbcVertexShader() const {
return IsDxbcVertexOrDomainShader() &&
patch_primitive_type() == PrimitiveType::kNone;
host_vertex_shader_type() == Shader::HostVertexShaderType::kVertex;
}
inline bool IsDxbcDomainShader() const {
return IsDxbcVertexOrDomainShader() &&
patch_primitive_type() != PrimitiveType::kNone;
host_vertex_shader_type() != Shader::HostVertexShaderType::kVertex;
}
inline bool IsDxbcPixelShader() const {
return is_depth_only_pixel_shader_ || is_pixel_shader();