public PragmaDescriptor Build()
            {
                var descriptor = new PragmaDescriptorInternal();

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

                return(new PragmaDescriptor(container, resultHandle));
            }
 // private
 internal PragmaDescriptor(ShaderContainer container, FoundryHandle handle)
 {
     this.container  = container;
     this.handle     = handle;
     this.descriptor = container?.GetPragmaDescriptor(handle) ?? PragmaDescriptorInternal.Invalid();
 }
示例#3
0
 internal extern FoundryHandle AddPragmaDescriptorInternal(PragmaDescriptorInternal pragmaDescriptorInternal);