コード例 #1
0
            public PragmaDescriptor Build()
            {
                var descriptor = new PragmaDescriptorInternal();

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

                return(new PragmaDescriptor(container, resultHandle));
            }
コード例 #2
0
 // 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);