Add a comment

This commit is contained in:
Henrik Rydgård 2024-07-17 12:27:41 +02:00
parent 5921b9d041
commit f6aa86dfee

View file

@ -391,6 +391,8 @@ void DrawEngineVulkan::DoFlush() {
gpuStats.numUncachedVertsDrawn += vertexCount; gpuStats.numUncachedVertsDrawn += vertexCount;
prim = IndexGenerator::GeneralPrim((GEPrimitiveType)drawInds_[0].prim); prim = IndexGenerator::GeneralPrim((GEPrimitiveType)drawInds_[0].prim);
// At this point, the output is always an index triangle/line/point list, no strips/fans.
u16 *inds = decIndex_; u16 *inds = decIndex_;
SoftwareTransformResult result{}; SoftwareTransformResult result{};
SoftwareTransformParams params{}; SoftwareTransformParams params{};
@ -403,10 +405,11 @@ void DrawEngineVulkan::DoFlush() {
// do not respect scissor rects. // do not respect scissor rects.
params.allowClear = framebufferManager_->UseBufferedRendering(); params.allowClear = framebufferManager_->UseBufferedRendering();
params.allowSeparateAlphaClear = false; params.allowSeparateAlphaClear = false;
params.provokeFlatFirst = true;
if (renderManager->GetVulkanContext()->GetDeviceFeatures().enabled.provokingVertex.provokingVertexLast) { if (renderManager->GetVulkanContext()->GetDeviceFeatures().enabled.provokingVertex.provokingVertexLast) {
// We can get the OpenGL behavior, no need for workarounds. // We can get the OpenGL behavior, no need for workarounds.
params.provokeFlatFirst = false; params.provokeFlatFirst = false;
} else {
params.provokeFlatFirst = true;
} }
params.flippedY = true; params.flippedY = true;
params.usesHalfZ = true; params.usesHalfZ = true;