[Vulkan] Use Shader::IsHostVertexShaderTypeDomain
This commit is contained in:
@@ -249,13 +249,13 @@ class SpirvShaderTranslator : public ShaderTranslator {
|
|||||||
|
|
||||||
bool IsSpirvVertexShader() const {
|
bool IsSpirvVertexShader() const {
|
||||||
return is_vertex_shader() &&
|
return is_vertex_shader() &&
|
||||||
GetSpirvShaderModification().vertex.host_vertex_shader_type ==
|
!Shader::IsHostVertexShaderTypeDomain(
|
||||||
Shader::HostVertexShaderType::kVertex;
|
GetSpirvShaderModification().vertex.host_vertex_shader_type);
|
||||||
}
|
}
|
||||||
bool IsSpirvTessEvalShader() const {
|
bool IsSpirvTessEvalShader() const {
|
||||||
return is_vertex_shader() &&
|
return is_vertex_shader() &&
|
||||||
GetSpirvShaderModification().vertex.host_vertex_shader_type !=
|
Shader::IsHostVertexShaderTypeDomain(
|
||||||
Shader::HostVertexShaderType::kVertex;
|
GetSpirvShaderModification().vertex.host_vertex_shader_type);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Must be called before emitting any SPIR-V operations that must be in a
|
// Must be called before emitting any SPIR-V operations that must be in a
|
||||||
|
|||||||
@@ -1379,7 +1379,8 @@ bool VulkanCommandProcessor::IssueDraw(xenos::PrimitiveType prim_type,
|
|||||||
// Nothing to draw.
|
// Nothing to draw.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// TODO(Triang3l): Tessellation.
|
// TODO(Triang3l): Tessellation, geometry-type-specific vertex shader, vertex
|
||||||
|
// shader as compute.
|
||||||
if (primitive_processing_result.host_vertex_shader_type !=
|
if (primitive_processing_result.host_vertex_shader_type !=
|
||||||
Shader::HostVertexShaderType::kVertex) {
|
Shader::HostVertexShaderType::kVertex) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user