Handle RectList primitives in Geometry shaders (#1936)

This commit is contained in:
jas0n098 2024-12-28 11:19:41 +00:00 committed by GitHub
parent 668d5f65dc
commit 63d2d1ebe8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -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;

View file

@ -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;