Пример #1
0
 public SemanticSegmentationPass(Camera targetCamera, RenderTexture targetTexture, LabelingConfiguration labelingConfiguration)
 {
     this.targetTexture         = targetTexture;
     this.labelingConfiguration = labelingConfiguration;
     this.targetCamera          = targetCamera;
     EnsureInit();
 }
Пример #2
0
        // ReSharper disable once InvalidXmlDocComment

        /// <summary>
        /// Create a new CpuRenderedObjectInfoPass with the given LabelingConfiguration.
        /// </summary>
        /// <param name="labelingConfiguration">The LabelingConfiguration to use to determine labelId. Should match the
        /// one used by the <seealso cref="InstanceSegmentationUrpPass"/> generating the input image. See <see cref="Compute"/></param>
        public RenderedObjectInfoGenerator(LabelingConfiguration labelingConfiguration)
        {
            m_LabelingConfiguration             = labelingConfiguration;
            m_InstanceIdToLabelEntryIndexLookup = new NativeList <int>(k_StartingObjectCount, Allocator.Persistent);
        }
 public SemanticSegmentationUrpPass(Camera camera, RenderTexture targetTexture, LabelingConfiguration labelingConfiguration)
 {
     m_SemanticSegmentationCrossPipelinePass = new SemanticSegmentationCrossPipelinePass(camera, labelingConfiguration);
     ConfigureTarget(targetTexture, targetTexture.depthBuffer);
     m_SemanticSegmentationCrossPipelinePass.Setup();
 }
Пример #4
0
 public SemanticSegmentationCrossPipelinePass(Camera targetCamera, LabelingConfiguration labelingConfiguration) : base(targetCamera)
 {
     this.m_LabelingConfiguration = labelingConfiguration;
 }