mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Add a comment
This commit is contained in:
parent
5921b9d041
commit
f6aa86dfee
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue