|
|
|
|
|
|
bool requiresDepthAttachment = requiresCameraDepth && !requiresDepthPrepass; |
|
|
|
bool requiresColorAttachment = RequiresIntermediateColorTexture(ref renderingData.cameraData, baseDescriptor, requiresDepthAttachment); |
|
|
|
int[] colorHandles = (requiresColorAttachment) ? new[] {RenderTargetHandles.Color} : null; |
|
|
|
int depthHandle = (requiresColorAttachment) ? RenderTargetHandles.DepthAttachment : -1; |
|
|
|
int depthHandle = (requiresDepthAttachment) ? RenderTargetHandles.DepthAttachment : -1; |
|
|
|
EnqueuePass(cmd, RenderPassHandles.ForwardLit, baseDescriptor, colorHandles, depthHandle, renderingData.cameraData.msaaSamples); |
|
|
|
|
|
|
|
context.ExecuteCommandBuffer(cmd); |
|
|
|