Freigeben über


ID3D11ClassLinkage Interface

This interface encapsulates an HLSL dynamic linkage.

Mitglieder

ID3D11ClassLinkageSchnittstelle erbt von ID3D11DeviceChild. ID3D11ClassLinkage umfasst auch die folgenden Typen von Mitgliedern:

  • Methoden

Methoden

ID3D11ClassLinkageSchnittstelle umfasst die folgenden Methoden.

Methode Beschreibung
CreateClassInstance

Initializes a class-instance object that represents an HLSL class instance.

GetClassInstance

Gets the class-instance object that represents the specified HLSL class.

 

Hinweise

A class linkage object can hold up to 64K gotten instances. A gotten instance is a handle that references a variable name in any shader that is created with that linkage object. When you create a shader with a class linkage object, the runtime gathers these instances and stores them in the class linkage object. For more information about how a class linkage object is used, see Storing Variables and Types for Shaders to Share.

An ID3D11ClassLinkage object is created using the ID3D11Device::CreateClassLinkage method.

Siehe auch

Core Interfaces