1
Fork 0
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:
Joshua Goins 2023-10-13 14:58:46 -04:00
parent 9b90121660
commit 190c185d98
3 changed files with 6 additions and 3 deletions

View file

@ -32,4 +32,5 @@ target_sources(dxbc PRIVATE
dxbc_util.h
)
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)

View file

@ -11,7 +11,7 @@ namespace dxvk {
case DxbcProgramType::DomainShader : return VK_SHADER_STAGE_TESSELLATION_EVALUATION_BIT;
case DxbcProgramType::ComputeShader : return VK_SHADER_STAGE_COMPUTE_BIT;
}
throw DxvkError("DxbcProgramInfo::shaderStage: Unsupported program type");
}
@ -25,7 +25,7 @@ namespace dxvk {
case DxbcProgramType::DomainShader : return spv::ExecutionModelTessellationEvaluation;
case DxbcProgramType::ComputeShader : return spv::ExecutionModelGLCompute;
}
throw DxvkError("DxbcProgramInfo::executionModel: Unsupported program type");
}

View file

@ -1466,6 +1466,8 @@ namespace dxvk {
m_bindings.push_back(binding);
return varId;*/
return 0;
}