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

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

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