Beispiel #1
0
 /// <summary>Add a AOV request.</summary>
 /// <param name="settings">Settings to use for this frame pass.</param>
 /// <param name="bufferAllocator">An allocator for each buffer.</param>
 /// <param name="includedLightList">If non null, only these lights will be rendered, if none, all lights will be rendered.</param>
 /// <param name="aovBuffers">A list of buffers to use.</param>
 /// <param name="customPassAovBuffers">A list of custom passes to captured.</param>
 /// <param name="customPassbufferAllocator">An allocator for each custom pass buffer.</param>
 /// <param name="callback">A callback that can use the requested buffers once the rendering has completed.</param>
 /// <returns></returns>
 public AOVRequestBuilder Add(
     AOVRequest settings,
     AOVRequestBufferAllocator bufferAllocator,
     List <GameObject> includedLightList,
     AOVBuffers[] aovBuffers,
     CustomPassAOVBuffers[] customPassAovBuffers,
     AOVRequestCustomPassBufferAllocator customPassbufferAllocator,
     FramePassCallbackEx callback
     )
 {
     (m_AOVRequestDataData ?? (m_AOVRequestDataData = ListPool <AOVRequestData> .Get())).Add(
         new AOVRequestData(settings, bufferAllocator, includedLightList, aovBuffers, customPassAovBuffers, customPassbufferAllocator, callback));
     return(this);
 }
Beispiel #2
0
        /// <summary>Create a new frame pass.</summary>
        /// <param name="settings">Settings to use.</param>
        /// <param name="bufferAllocator">Buffer allocators to use.</param>
        /// <param name="lightFilter">If null, all light will be rendered, if not, only those light will be rendered.</param>
        /// <param name="requestedAOVBuffers">The requested buffers for the callback.</param>
        /// <param name="callback">The callback to execute.</param>
        public AOVRequestData(
            AOVRequest settings,
            AOVRequestBufferAllocator bufferAllocator,
            List <GameObject> lightFilter,
            AOVBuffers[] requestedAOVBuffers,
            FramePassCallback callback
            )
        {
            m_Settings            = settings;
            m_BufferAllocator     = bufferAllocator;
            m_RequestedAOVBuffers = requestedAOVBuffers;
            m_LightFilter         = lightFilter;
            m_Callback            = callback;

            m_CallbackEx                = null;
            m_CustomPassAOVBuffers      = null;
            m_CustomPassBufferAllocator = null;
        }