Add HasTypedUAVLoad to GPULimits (use for GPU lightmaps support baking detection)

#526
This commit is contained in:
Wojtek Figat
2021-06-08 16:11:27 +02:00
parent 39f50726a6
commit 2bc6ca089f
8 changed files with 29 additions and 31 deletions

View File

@@ -1684,6 +1684,7 @@ bool GPUDeviceVulkan::Init()
limits.HasDepthAsSRV = true;
limits.HasReadOnlyDepth = true;
limits.HasMultisampleDepthAsSRV = !!PhysicalDeviceFeatures.sampleRateShading;
limits.HasTypedUAVLoad = true;
limits.MaximumMipLevelsCount = Math::Min(static_cast<int32>(log2(PhysicalDeviceLimits.maxImageDimension2D)), GPU_MAX_TEXTURE_MIP_LEVELS);
limits.MaximumTexture1DSize = PhysicalDeviceLimits.maxImageDimension1D;
limits.MaximumTexture1DArraySize = PhysicalDeviceLimits.maxImageArrayLayers;