Represents information about a resource produced by a renderer component.
Exemplo n.º 1
0
 public ResourceContext(ResourceInfo[] availableResources, ResourceInfo[] setRenderTargets)
 {
     AvailableResources = availableResources;
     SetRenderTargets = setRenderTargets;
     _inputs = new List<string>();
     _outputs = new List<Resource>();
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public ResourceContext(ResourceInfo[] availableResources, ResourceInfo[] setRenderTargets)
 {
     this.AvailableResources = availableResources;
     this.SetRenderTargets = setRenderTargets;
     this.inputs = new List<string>();
     this.outputs = new List<Resource>();
 }