#Scheduling jobs inside Update and completing them in HDRP custom render pass

1 messages · Page 1 of 1 (latest)

cerulean flare
#

Is it safe to schedule jobs from a MonoBehaviour Update() and complete them in the Execute() method of a custom render pass in HDRP?

vocal island
#

as long as you store the dependency handle somewhere and complete it, it's fine

vocal island
#

i do stuff like that

        private void BuildFrame(Camera camera, ICommandBuffer buffer)
        {
            this.Dependency.Complete();```

called from ScriptableRenderPass
#

for custom render passes etc