mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-05-23 20:05:01 +00:00
fixes to get in game (#2583)
This commit is contained in:
parent
7a4244ac8b
commit
a583a9abe0
2 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue