flip the viewport in vulkan so that top is on the top

This commit is contained in:
Greg Wells
2025-05-30 13:41:11 -04:00
parent 7ebb109c44
commit eb244447cc
7 changed files with 14 additions and 9 deletions

View File

@@ -113,7 +113,7 @@ gnReturnCode gnCreateGraphicsPipelineFn(struct gnGraphicsPipeline_t* graphicsPip
.sType = VK_STRUCTURE_TYPE_PIPELINE_RASTERIZATION_STATE_CREATE_INFO,
.polygonMode = vkGryphnPolygonMode(info.fillMode),
.lineWidth = 1.0f,
.frontFace = ( info.cullMode.direction == GN_DIRECTION_CLOCK_WISE ) ? VK_FRONT_FACE_CLOCKWISE : VK_FRONT_FACE_COUNTER_CLOCKWISE,
.frontFace = ( info.cullMode.direction == GN_DIRECTION_CLOCK_WISE ) ? VK_FRONT_FACE_COUNTER_CLOCKWISE : VK_FRONT_FACE_CLOCKWISE,
.cullMode = vkGryphnCullMode(info.cullMode.face),
.depthBiasEnable = VK_FALSE,
.depthBiasConstantFactor = 0.0f,