---
UID: NF:d3d10effect.ID3D10EffectScalarVariable.GetInt
title: ID3D10EffectScalarVariable::GetInt (d3d10effect.h)
description: Get an integer variable.
old-location: direct3d10\id3d10effectscalarvariable_getint.htm
tech.root: direct3d10
ms.assetid: VS|directx_sdk|~\id3d10effectscalarvariable_getint.htm
ms.date: 12/05/2018
ms.keywords: 6002611c-c95a-9bf0-071c-c2d577cfdc80, GetInt, GetInt method [Direct3D 10], GetInt method [Direct3D 10],ID3D10EffectScalarVariable interface, ID3D10EffectScalarVariable interface [Direct3D 10],GetInt method, ID3D10EffectScalarVariable.GetInt, ID3D10EffectScalarVariable::GetInt, d3d10effect/ID3D10EffectScalarVariable::GetInt, direct3d10.id3d10effectscalarvariable_getint
f1_keywords:
- d3d10effect/ID3D10EffectScalarVariable.GetInt
dev_langs:
- c++
req.header: d3d10effect.h
req.include-header: 
req.target-type: Windows
req.target-min-winverclnt: 
req.target-min-winversvr: 
req.kmdf-ver: 
req.umdf-ver: 
req.ddi-compliance: 
req.unicode-ansi: 
req.idl: 
req.max-support: 
req.namespace: 
req.assembly: 
req.type-library: 
req.lib: 
req.dll: 
req.irql: 
topic_type:
- APIRef
- kbSyntax
api_type:
- COM
api_location:
- D3D10Effect.h
api_name:
- ID3D10EffectScalarVariable.GetInt
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID3D10EffectScalarVariable::GetInt


## -description


Get an integer variable.


## -parameters




### -param pValue [out]

Type: <b><a href="https://docs.microsoft.com/windows/desktop/WinProg/windows-data-types">int</a>*</b>

A pointer to the variable.


## -returns



Type: <b><a href="/windows/win32/com/structure-of-com-error-codes">HRESULT</a></b>

Returns one of the following <a href="https://docs.microsoft.com/windows/desktop/direct3d10/d3d10-graphics-reference-returnvalues">Direct3D 10 Return Codes</a>.




## -see-also




<a href="https://docs.microsoft.com/windows/desktop/api/d3d10effect/nn-d3d10effect-id3d10effectscalarvariable">ID3D10EffectScalarVariable Interface</a>
 

 

