Skip to content

Latest commit

 

History

History
91 lines (54 loc) · 1.6 KB

id3dxtextureshader--setmatrix.md

File metadata and controls

91 lines (54 loc) · 1.6 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location
ID3DXTextureShader::SetMatrix method - Sets a non-transposed matrix.
891441ea-09d5-43b6-a080-578d7f8e4586
ID3DXTextureShader::SetMatrix method (D3DX9Shader.h)
reference
05/31/2018
APIRef
kbSyntax
ID3DXTextureShader.SetMatrix
COM
d3dx9.lib
d3dx9.dll

ID3DXTextureShader::SetMatrix method

Sets a non-transposed matrix.

Syntax

HRESULT SetMatrix(
  [in]       D3DXHANDLE hConstant,
  [in] const D3DXMATRIX *pMatrix
);

Parameters

hConstant [in]

Type: D3DXHANDLE

Unique identifier to the matrix of constants. See D3DXHANDLE.

pMatrix [in]

Type: const D3DXMATRIX*

Pointer to a non-transposed matrix. See D3DXMATRIX.

Return value

Type: HRESULT

If the method succeeds, the return value is D3D_OK. If the method fails, the return value can be D3DERR_INVALIDCALL.

Remarks

A non-transposed matrix contains row-major data; that is, each vector is contained in a row.

Requirements

Requirement Value
Header
D3DX9Shader.h
Library
D3dx9.lib

See also

ID3DXTextureShader