Minor improvements

This commit is contained in:
Wojciech Figat
2022-07-07 15:34:15 +02:00
parent 02dbd07506
commit f221bc6361
4 changed files with 9 additions and 3 deletions

BIN
Content/Shaders/GI/DDGI.flax (Stored with Git LFS)

Binary file not shown.

View File

@@ -347,6 +347,8 @@ namespace FlaxEditor.Windows.Assets
Before = !isOverride,
});
}
if (undoActions.Count == 0)
return;
proxy.Window._undo.AddAction(new MultiUndoAction(undoActions));
proxy.Window.MarkAsEdited();
Presenter.BuildLayoutOnUpdate();

View File

@@ -362,6 +362,11 @@ bool GPUSwapChainVulkan::CreateSwapChain(int32 width, int32 height)
VALIDATE_VULKAN_RESULT(vkGetPhysicalDeviceSurfaceCapabilitiesKHR(gpu, _surface, &surfProperties));
width = Math::Clamp<int32>(width, surfProperties.minImageExtent.width, surfProperties.maxImageExtent.width);
height = Math::Clamp<int32>(height, surfProperties.minImageExtent.height, surfProperties.maxImageExtent.height);
if (width <= 0 || height <= 0)
{
LOG(Error, "Vulkan SwapChain dimensions are invalid {}x{} (minImageExtent={}x{}, maxImageExtent={}x{})", width, height, surfProperties.minImageExtent.width, surfProperties.minImageExtent.height, surfProperties.maxImageExtent.width, surfProperties.maxImageExtent.height);
return true;
}
VkSwapchainCreateInfoKHR swapChainInfo;
RenderToolsVulkan::ZeroStruct(swapChainInfo, VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR);
swapChainInfo.surface = _surface;

View File

@@ -402,7 +402,6 @@ void GBufferPass::DrawDecals(RenderContext& renderContext, GPUTextureView* light
// Cache data
auto device = GPUDevice::Instance;
auto context = device->GetMainContext();
auto& view = renderContext.View;
auto model = _boxModel.Get();
auto buffers = renderContext.Buffers;