|
@@ -250,6 +250,8 @@ namespace love {
|
|
currentViewportWidth = 0.0f;
|
|
currentViewportWidth = 0.0f;
|
|
currentViewportHeight = 0.0f;
|
|
currentViewportHeight = 0.0f;
|
|
|
|
|
|
|
|
+ Vulkan::resetShaderSwitches();
|
|
|
|
+
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -298,6 +300,10 @@ namespace love {
|
|
capabilities.textureTypes[TEXTURE_CUBE] = false;
|
|
capabilities.textureTypes[TEXTURE_CUBE] = false;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ void Graphics::getAPIStats(int& shaderswitches) const {
|
|
|
|
+ shaderswitches = Vulkan::getNumShaderSwitches();
|
|
|
|
+ }
|
|
|
|
+
|
|
void Graphics::unSetMode() {
|
|
void Graphics::unSetMode() {
|
|
created = false;
|
|
created = false;
|
|
vkDeviceWaitIdle(device);
|
|
vkDeviceWaitIdle(device);
|
|
@@ -498,6 +504,8 @@ namespace love {
|
|
Vulkan::cmdTransitionImageLayout(commandBuffers.at(imageIndex), swapChainImages[imageIndex], VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
|
|
Vulkan::cmdTransitionImageLayout(commandBuffers.at(imageIndex), swapChainImages[imageIndex], VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
|
|
|
|
|
|
startRenderPass(nullptr, swapChainExtent.width, swapChainExtent.height);
|
|
startRenderPass(nullptr, swapChainExtent.width, swapChainExtent.height);
|
|
|
|
+
|
|
|
|
+ Vulkan::resetShaderSwitches();
|
|
}
|
|
}
|
|
|
|
|
|
void Graphics::endRecordingGraphicsCommands() {
|
|
void Graphics::endRecordingGraphicsCommands() {
|