-
Notifications
You must be signed in to change notification settings - Fork 858
[Universal] RenderPass merging #4099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 51 commits
ddbee5f
8f7db74
fe5cadb
e50c046
3ba7c7b
b66f183
422ed1b
9bdd3ef
7d3c5ba
6f5d3f0
7dc34fa
72d51d2
73d666d
d86b828
ac46e52
bc45166
7b828d8
44d350e
e57a3ed
432dc6b
bf030cb
f7d061a
1b0b6bf
6a6dd1f
f8a8e62
d84f779
ef3e215
eb3514d
b89f1e8
ebd2d04
82d7d6b
304a9ab
391784c
617322d
8a00998
a62901e
bc7a4b8
2ee17b8
073e77e
279d157
c5d86db
f1c6990
e2c0ebe
bcc0638
276e7d8
eb5be47
49506d5
6412f03
43fc427
a3c0d85
8357b72
8a17123
a4ada9d
c5c3bc0
00a359a
7350695
0e287cb
c606713
05a5fa0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.ComponentModel; | ||
| using Unity.Collections; | ||
| using UnityEngine.Scripting.APIUpdating; | ||
| using UnityEngine.Experimental.Rendering; | ||
|
|
||
|
|
@@ -178,7 +179,7 @@ public Color clearColor | |
| internal bool overrideCameraTarget { get; set; } | ||
| internal bool isBlitRenderPass { get; set; } | ||
|
|
||
| internal bool useNativeRenderPass { get; set; } | ||
| public bool useNativeRenderPass { get; set; } | ||
|
|
||
| internal int renderTargetWidth { get; set; } | ||
| internal int renderTargetHeight { get; set; } | ||
|
|
@@ -187,7 +188,10 @@ public Color clearColor | |
| internal bool depthOnly { get; set; } | ||
| // this flag is updated each frame to keep track of which pass is the last for the current camera | ||
| internal bool isLastPass { get; set; } | ||
| // index to track the position in the current frame | ||
| internal int renderPassQueueIndex { get; set; } | ||
|
|
||
| internal NativeArray<int> m_InputAttachmentIndices; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I dont see where it is used
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @lukaschod - yeah, it's not used yet. we can remove it for now, but it will still be added in next PR that will introduce input attachments/fb fetch and etc. |
||
|
|
||
| internal GraphicsFormat[] renderTargetFormat { get; set; } | ||
| RenderTargetIdentifier[] m_ColorAttachments = new RenderTargetIdentifier[] {BuiltinRenderTextureType.CameraTarget}; | ||
|
|
@@ -210,6 +214,7 @@ public ScriptableRenderPass() | |
| renderTargetWidth = -1; | ||
| renderTargetHeight = -1; | ||
| renderTargetSampleCount = -1; | ||
| renderPassQueueIndex = -1; | ||
| renderTargetFormat = new GraphicsFormat[] | ||
| { | ||
| GraphicsFormat.None, GraphicsFormat.None, GraphicsFormat.None, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.