mirror of
https://github.com/redstrate/dxbc.git
synced 2025-04-20 03:37:47 +00:00
Fix compilation errors
This commit is contained in:
parent
9b90121660
commit
190c185d98
3 changed files with 6 additions and 3 deletions
|
@ -32,4 +32,5 @@ target_sources(dxbc PRIVATE
|
||||||
dxbc_util.h
|
dxbc_util.h
|
||||||
)
|
)
|
||||||
target_include_directories(dxbc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(dxbc PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
target_link_libraries(dxbc PUBLIC dxbc-util dxbc-spirv Vulkan::Vulkan)
|
target_link_libraries(dxbc PUBLIC dxbc-util dxbc-spirv Vulkan::Vulkan)
|
||||||
|
target_compile_options(dxbc PRIVATE -fexceptions)
|
|
@ -11,7 +11,7 @@ namespace dxvk {
|
||||||
case DxbcProgramType::DomainShader : return VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT;
|
case DxbcProgramType::DomainShader : return VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT;
|
||||||
case DxbcProgramType::ComputeShader : return VK_SHADER_STAGE_COMPUTE_BIT;
|
case DxbcProgramType::ComputeShader : return VK_SHADER_STAGE_COMPUTE_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw DxvkError("DxbcProgramInfo::shaderStage: Unsupported program type");
|
throw DxvkError("DxbcProgramInfo::shaderStage: Unsupported program type");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ namespace dxvk {
|
||||||
case DxbcProgramType::DomainShader : return spv::ExecutionModelTessellationEvaluation;
|
case DxbcProgramType::DomainShader : return spv::ExecutionModelTessellationEvaluation;
|
||||||
case DxbcProgramType::ComputeShader : return spv::ExecutionModelGLCompute;
|
case DxbcProgramType::ComputeShader : return spv::ExecutionModelGLCompute;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw DxvkError("DxbcProgramInfo::executionModel: Unsupported program type");
|
throw DxvkError("DxbcProgramInfo::executionModel: Unsupported program type");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1466,6 +1466,8 @@ namespace dxvk {
|
||||||
m_bindings.push_back(binding);
|
m_bindings.push_back(binding);
|
||||||
|
|
||||||
return varId;*/
|
return varId;*/
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue