Represents information about a resource produced by a renderer component.
Example #1
0
 public ResourceContext(ResourceInfo[] availableResources, ResourceInfo[] setRenderTargets)
 {
     AvailableResources = availableResources;
     SetRenderTargets = setRenderTargets;
     _inputs = new List<string>();
     _outputs = new List<Resource>();
 }
Example #2
0
        public void DefineOutput(ResourceInfo resourceInfo, bool isLeftSet = true)
        {
            var resource = new Resource()
            {
                Name = resourceInfo.Name,
                Finaliser = Resource.DefaultFinaliser,
                IsLeftSet = isLeftSet,
                Format = resourceInfo.Format
            };

            outputs.Add(resource);
        }
Example #3
0
 public ResourceContext(ResourceInfo[] availableResources, ResourceInfo[] setRenderTargets)
 {
     this.AvailableResources = availableResources;
     this.SetRenderTargets = setRenderTargets;
     this.inputs = new List<string>();
     this.outputs = new List<Resource>();
 }