Beispiel #1
0
        /// <summary> Make a new entry of this type with an optional name </summary>
        public GLStorageBlock NewStorageBlock(int bindingindex, bool std430 = false, string name = null)
        {
            GLStorageBlock sb = new GLStorageBlock(bindingindex, std430);

            items[EnsureName(name)] = sb;
            return(sb);
        }
Beispiel #2
0
 /// <summary> Add this type with an optional name </summary>
 public GLStorageBlock Add(GLStorageBlock disp, string name = null)
 {
     System.Diagnostics.Debug.Assert(!items.ContainsValue(disp));
     items.Add(EnsureName(name), disp);
     return(disp);
 }