Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,13 @@ static RenderTextureDescriptor CreateRenderTextureDescriptor(Camera camera, floa
desc.bindMS = false;
desc.useDynamicScale = camera.allowDynamicResolution;

if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.Vulkan)
{
int requestedMsaaSamples = desc.msaaSamples;
if (requestedMsaaSamples == 2 && SystemInfo.GetRenderTextureSupportedMSAASampleCount(desc) == 1)
desc.msaaSamples = 4;
}

// check that the requested MSAA samples count is supported by the current platform. If it's not supported,
// replace the requested desc.msaaSamples value with the actual value the engine falls back to
desc.msaaSamples = SystemInfo.GetRenderTextureSupportedMSAASampleCount(desc);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ bool CanCopyDepth(ref CameraData cameraData)

// copying depth on GLES3 is giving invalid results. Needs investigation (Fogbugz issue 1339401)
if (SystemInfo.graphicsDeviceType == GraphicsDeviceType.OpenGLES3)
msaaDepthResolve = false;
return false;

return supportsDepthCopy || msaaDepthResolve;
}
Expand Down