Пример #1
0
 public StagingBlock(byte[] array, uint sizeInBytes, StagingMemoryPool pool)
 {
     Debug.Assert(array != null);
     Debug.Assert(array.Length > 0);
     Debug.Assert(sizeInBytes > 0);
     Array       = array;
     SizeInBytes = sizeInBytes;
     Pool        = pool;
 }
Пример #2
0
 public FixedStagingBlock(byte[] array, uint sizeInBytes, StagingMemoryPool pool)
 {
     Debug.Assert(array != null);
     Debug.Assert(array.Length > 0);
     Debug.Assert(sizeInBytes > 0);
     Array       = array;
     SizeInBytes = sizeInBytes;
     Pool        = pool;
     GCHandle    = GCHandle.Alloc(array, GCHandleType.Pinned);
     Data        = (void *)GCHandle.AddrOfPinnedObject();
 }
Пример #3
0
 public unsafe OpenGLResourceFactory(OpenGLGraphicsDevice gd)
     : base(gd.Features)
 {
     _gd   = gd;
     _pool = gd.StagingMemoryPool;
 }
Пример #4
0
 public OpenGLCommandExecutor(OpenGLExtensions extensions, StagingMemoryPool stagingMemoryPool)
 {
     _extensions            = extensions;
     _textureSamplerManager = new OpenGLTextureSamplerManager(extensions);
     _stagingMemoryPool     = stagingMemoryPool;
 }