public CommandDescriptor Build()
            {
                var descriptor = new CommandDescriptorInternal();

                descriptor.Setup(container, name, ops.ToArray());
                var resultHandle = container.AddCommandDescriptorInternal(descriptor);

                return(new CommandDescriptor(container, resultHandle));
            }
Beispiel #2
0
 internal extern FoundryHandle AddCommandDescriptorInternal(CommandDescriptorInternal commandDescriptorInternal);
 // private
 internal CommandDescriptor(ShaderContainer container, FoundryHandle handle)
 {
     this.container  = container;
     this.handle     = handle;
     this.descriptor = container?.GetCommandDescriptor(handle) ?? CommandDescriptorInternal.Invalid();
 }