Esempio n. 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;
 }
Esempio n. 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();
 }
Esempio n. 3
0
 public unsafe OpenGLResourceFactory(OpenGLGraphicsDevice gd)
     : base(gd.Features)
 {
     _gd   = gd;
     _pool = gd.StagingMemoryPool;
 }
Esempio n. 4
0
 public OpenGLCommandExecutor(OpenGLExtensions extensions, StagingMemoryPool stagingMemoryPool)
 {
     _extensions            = extensions;
     _textureSamplerManager = new OpenGLTextureSamplerManager(extensions);
     _stagingMemoryPool     = stagingMemoryPool;
 }