mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-23 10:35:03 +00:00
fixes to get in game (#2583)
This commit is contained in:
parent
7a4244ac8b
commit
a583a9abe0
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user