Пример #1
0
            public DefineDescriptor Build()
            {
                var descriptor = new DefineDescriptorInternal();

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

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