mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-12-09 21:31:04 +00:00
fixes to get in game (#2583)
This commit is contained in:
@@ -32,6 +32,8 @@ static constexpr spv::ExecutionMode GetInputPrimitiveType(AmdGpu::PrimitiveType
|
||||
return spv::ExecutionMode::Triangles;
|
||||
case AmdGpu::PrimitiveType::AdjTriangleList:
|
||||
return spv::ExecutionMode::InputTrianglesAdjacency;
|
||||
case AmdGpu::PrimitiveType::AdjLineList:
|
||||
return spv::ExecutionMode::InputLinesAdjacency;
|
||||
default:
|
||||
UNREACHABLE_MSG("Unknown input primitive type {}", u32(type));
|
||||
}
|
||||
|
||||
@@ -50,6 +50,8 @@ static constexpr u32 NumVertices(AmdGpu::PrimitiveType type) {
|
||||
return 3u;
|
||||
case AmdGpu::PrimitiveType::AdjTriangleList:
|
||||
return 6u;
|
||||
case AmdGpu::PrimitiveType::AdjLineList:
|
||||
return 4u;
|
||||
default:
|
||||
UNREACHABLE();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user