Skip to content

Latest commit

 

History

History
81 lines (45 loc) · 1.99 KB

id3dx11effectvariable-asmatrix.md

File metadata and controls

81 lines (45 loc) · 1.99 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
ID3DX11EffectVariable AsMatrix method (D3dx11effect.h)
Get a matrix variable.
5d2baf65-ab0d-44df-bc6f-6ffae16cbb01
AsMatrix method Direct3D 11
AsMatrix method Direct3D 11 , ID3DX11EffectVariable interface
ID3DX11EffectVariable interface Direct3D 11 , AsMatrix method
apiref
ID3DX11EffectVariable.AsMatrix
N/A
N/A.dll
COM
reference
05/31/2018

ID3DX11EffectVariable::AsMatrix method

Get a matrix variable.

Syntax

ID3DX11EffectMatrixVariable* AsMatrix();

Parameters

This method has no parameters.

Return value

Type: ID3DX11EffectMatrixVariable*

A pointer to a matrix variable. See ID3DX11EffectMatrixVariable.

Remarks

AsMatrix returns a version of the effect variable that has been specialized to a matrix variable. Similar to a cast, this specialization will return an invalid object if the effect variable does not contain matrix data.

Applications can test the returned object for validity by calling IsValid.

Note

The DirectX SDK does not supply any compiled binaries for effects. You must use Effects 11 source to build your effects-type application. For more information about using Effects 11 source, see Differences Between Effects 10 and Effects 11.

Requirements

Requirement Value
Header
D3dx11effect.h
Library
N/A (An Effects 11 library is available online as shared source.)

See also

ID3DX11EffectVariable