예제 #1
0
            public BlockInstance Build()
            {
                var blockInstanceInternal = new BlockInstanceInternal();

                blockInstanceInternal.m_BlockHandle = block.handle;
                var returnTypeHandle = container.AddBlockInstanceInternal(blockInstanceInternal);

                return(new BlockInstance(container, returnTypeHandle));
            }
예제 #2
0
 internal extern FoundryHandle AddBlockInstanceInternal(BlockInstanceInternal blockInstance);
예제 #3
0
 // private
 internal BlockInstance(ShaderContainer container, FoundryHandle handle)
 {
     this.container     = container;
     this.handle        = handle;
     this.blockInstance = container?.GetBlockInstance(handle) ?? BlockInstanceInternal.Invalid();
 }