---
UID: NF:d3d10effect.ID3D10EffectPass.IsValid
title: ID3D10EffectPass::IsValid (d3d10effect.h)
description: Test a pass to see if it contains valid syntax.
old-location: direct3d10\id3d10effectpass_isvalid.htm
tech.root: direct3d10
ms.assetid: VS|directx_sdk|~\id3d10effectpass_isvalid.htm
ms.date: 12/05/2018
ms.keywords: 9122c231-edb3-12f1-7535-16f793aee59d, ID3D10EffectPass interface [Direct3D 10],IsValid method, ID3D10EffectPass.IsValid, ID3D10EffectPass::IsValid, IsValid, IsValid method [Direct3D 10], IsValid method [Direct3D 10],ID3D10EffectPass interface, d3d10effect/ID3D10EffectPass::IsValid, direct3d10.id3d10effectpass_isvalid
f1_keywords:
- d3d10effect/ID3D10EffectPass.IsValid
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:
- ID3D10EffectPass.IsValid
targetos: Windows
req.typenames: 
req.redist: 
ms.custom: 19H1
---

# ID3D10EffectPass::IsValid


## -description


Test a pass to see if it contains valid syntax.


## -parameters






## -returns



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

<b>TRUE</b> if the code syntax is valid; otherwise <b>FALSE</b>.




## -see-also




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



<a href="https://docs.microsoft.com/windows/desktop/api/d3d10effect/nn-d3d10effect-id3d10effectpass">ID3D10EffectPass</a>
 

 

