mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-15 11:25:13 +00:00
Handle RectList primitives in Geometry shaders (#1936)
This commit is contained in:
parent
668d5f65dc
commit
63d2d1ebe8
|
@ -28,6 +28,7 @@ static constexpr spv::ExecutionMode GetInputPrimitiveType(AmdGpu::PrimitiveType
|
||||||
return spv::ExecutionMode::InputLines;
|
return spv::ExecutionMode::InputLines;
|
||||||
case AmdGpu::PrimitiveType::TriangleList:
|
case AmdGpu::PrimitiveType::TriangleList:
|
||||||
case AmdGpu::PrimitiveType::TriangleStrip:
|
case AmdGpu::PrimitiveType::TriangleStrip:
|
||||||
|
case AmdGpu::PrimitiveType::RectList:
|
||||||
return spv::ExecutionMode::Triangles;
|
return spv::ExecutionMode::Triangles;
|
||||||
case AmdGpu::PrimitiveType::AdjTriangleList:
|
case AmdGpu::PrimitiveType::AdjTriangleList:
|
||||||
return spv::ExecutionMode::InputTrianglesAdjacency;
|
return spv::ExecutionMode::InputTrianglesAdjacency;
|
||||||
|
|
|
@ -47,6 +47,7 @@ static constexpr u32 NumVertices(AmdGpu::PrimitiveType type) {
|
||||||
return 2u;
|
return 2u;
|
||||||
case AmdGpu::PrimitiveType::TriangleList:
|
case AmdGpu::PrimitiveType::TriangleList:
|
||||||
case AmdGpu::PrimitiveType::TriangleStrip:
|
case AmdGpu::PrimitiveType::TriangleStrip:
|
||||||
|
case AmdGpu::PrimitiveType::RectList:
|
||||||
return 3u;
|
return 3u;
|
||||||
case AmdGpu::PrimitiveType::AdjTriangleList:
|
case AmdGpu::PrimitiveType::AdjTriangleList:
|
||||||
return 6u;
|
return 6u;
|
||||||
|
|
Loading…
Reference in a new issue