Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Get a shader-resource variable.
Syntax
ID3D10EffectShaderResourceVariable * AsShaderResource();
Return value
Type: ID3D10EffectShaderResourceVariable*
A pointer to a shader-resource variable. See ID3D10EffectShaderResourceVariable.
Remarks
AsShaderResource returns a version of the effect variable that has been specialized to a shader-resource variable. Similar to a cast, this specialization will return an invalid object if the effect variable does not contain shader-resource data.
Applications can test the returned object for validity by calling IsValid.
Requirements
| Requirement | Value |
|---|---|
| Target Platform | Windows |
| Header | d3d10effect.h |