Search code examples
texturesdirect3dsharpdxdirect3d9

SharpDX: How to map Texture or Surface (D3D9)?


Good day!

DirectX 11 support this method: http://sharpdx.org/documentation/api/m-sharpdx-dxgi-surface-map

How do I get access to the color buffer of texture or surface using Direct3D9?

Thx!


Resolved: Discovered by accident, going through all the available methods. I never thought that this is what I need. :) Thank you for your attention.

Texture.LockRectangle

SlimDX/DirectX9/C# - How to access pixel-data in a Texture


Solution

  • Discovered by accident, going through all the available methods. I never thought that this is what I need. :) Thank you for your attention.

    Texture.LockRectangle

    SlimDX/DirectX9/C# - How to access pixel-data in a Texture