SetDXGITexture Method

Summary

Writes a Direct3D 11 2D Texture to the media sample data.

Syntax
C#
C++/CLI
public void SetDXGITexture( 
   object pContext, 
   object pTexture 
) 
public:  
   void SetDXGITexture( 
      Object^ pContext, 
      Object^ pTexture 
   ) 

Parameters

pContext

A System.Object value representing the Device Context object, the device represents the display adapter and used for rendering commands.

pTexture

A System.Object value representing the 2D Texture object.

Return Value

Remarks

Use this method to assign a COM object of type (ID3D11DeviceContext) as the Device Context object, to assign a COM object of type (ID3D11Texture2D) as the 2D Texture object, and to directly write a Direct3D 11 2D Texture to the stream.

The texture must be of a resource type D3D11_RESOURCE_DIMENSION_TEXTURE2D and the texture resource must have one of the following format (DXGI_FORMAT) values:

  • DXGI_FORMAT_B5G6R5_UNORM
  • DXGI_FORMAT_B5G5R5A1_UNORM
  • DXGI_FORMAT_B8G8R8X8_UNORM
  • DXGI_FORMAT_B8G8R8A8_UNORM

If the supplied texure is already a staging texture, it will be used directly; otherwise, a staging texture will be created out of it. If the supplied texture had MSAA (Multisample anti-aliasing) content, it will be resolved before copying the data into the staging texture.

Requirements

Target Platforms

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Multimedia Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.