コード例 #1
0
ファイル: Program.cs プロジェクト: videolan/libvlcsharp
 static void ReleaseTextures()
 {
     if (_sharedHandle != null)
     {
         CloseHandle(_sharedHandle);
         _sharedHandle = null;
     }
     if (_textureVLC != null)
     {
         var count = _textureVLC->Release();
         Debug.Assert(count == 0);
         _textureVLC = null;
     }
     if (_textureShaderInput != null)
     {
         var count = _textureShaderInput->Release();
         Debug.Assert(count == 0);
         _textureShaderInput = null;
     }
     if (_textureRenderTarget != null)
     {
         var count = _textureRenderTarget->Release();
         Debug.Assert(count == 0);
         _textureRenderTarget = null;
     }
     if (_texture != null)
     {
         var count = _texture->Release();
         Debug.Assert(count == 0);
         _texture = null;
     }
 }
コード例 #2
0
 public void GenerateMips([NativeTypeName("ID3D11ShaderResourceView *")] ID3D11ShaderResourceView *pShaderResourceView)
 {
     ((delegate * stdcall <ID3D11DeviceContext *, ID3D11ShaderResourceView *, void>)(lpVtbl[54]))((ID3D11DeviceContext *)Unsafe.AsPointer(ref this), pShaderResourceView);
 }