vulkan: fix scissor on android

This commit is contained in:
niki
2022-08-22 17:40:27 +02:00
parent 7cc6ed40be
commit 62148790a8
2 changed files with 74 additions and 21 deletions
+2 -1
View File
@@ -67,7 +67,6 @@ struct GraphicsPipelineConfiguration {
CullMode cullmode;
float viewportWidth;
float viewportHeight;
std::optional<Rect> scissorRect;
StencilState stencil;
DepthState depthState;
@@ -228,6 +227,7 @@ private:
void cleanup();
void cleanupSwapChain();
void recreateSwapChain();
void initDynamicState();
void startRecordingGraphicsCommands();
void endRecordingGraphicsCommands();
void ensureGraphicsPipelineConfiguration(GraphicsPipelineConfiguration);
@@ -250,6 +250,7 @@ private:
VkQueue presentQueue = VK_NULL_HANDLE;
VkSurfaceKHR surface = VK_NULL_HANDLE;
VkSwapchainKHR swapChain = VK_NULL_HANDLE;
VkSurfaceTransformFlagBitsKHR preTransform;
Matrix4 displayRotation;
std::vector<VkImage> swapChainImages;
VkFormat swapChainImageFormat = VK_FORMAT_UNDEFINED;