Beispiel #1
0
            public DefineDescriptor Build()
            {
                var descriptor = new DefineDescriptorInternal();

                descriptor.Setup(container, name, value);
                var resultHandle = container.AddDefineDescriptorInternal(descriptor);

                return(new DefineDescriptor(container, resultHandle));
            }
Beispiel #2
0
 internal extern FoundryHandle AddDefineDescriptorInternal(DefineDescriptorInternal defineDescriptorInternal);
Beispiel #3
0
 // private
 internal DefineDescriptor(ShaderContainer container, FoundryHandle handle)
 {
     this.container  = container;
     this.handle     = handle;
     this.descriptor = container?.GetDefineDescriptor(handle) ?? DefineDescriptorInternal.Invalid();
 }