Class D3D11ClassLinkage
This interface encapsulates an HLSL dynamic linkage.
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public sealed class D3D11ClassLinkage : D3D11DeviceChild, IDisposable, ID3D11Releasable
Properties
| Edit this page View SourceHandle
Gets an handle representing the D3D11 object interface.
Declaration
public override object Handle { get; }
Property Value
Type | Description |
---|---|
object |
Overrides
Methods
| Edit this page View SourceCreateClassInstance(string, uint, uint, uint, uint)
Initializes a class-instance object that represents an HLSL class instance.
Declaration
public D3D11ClassInstance CreateClassInstance(string classTypeName, uint constantBufferOffset, uint constantVectorOffset, uint textureOffset, uint samplerOffset)
Parameters
Type | Name | Description |
---|---|---|
string | classTypeName | The type name of a class to initialize. |
uint | constantBufferOffset | Identifies the constant buffer that contains the class data. |
uint | constantVectorOffset | The four-component vector offset from the start of the constant buffer where the class data will begin. Consequently, this is not a byte offset. |
uint | textureOffset | The texture slot for the first texture; there may be multiple textures following the offset. |
uint | samplerOffset | The sampler slot for the first sampler; there may be multiple samplers following the offset. |
Returns
Type | Description |
---|---|
D3D11ClassInstance | A class instance interface. |
GetClassInstance(string, uint)
Gets the class-instance object that represents the specified HLSL class.
Declaration
public D3D11ClassInstance GetClassInstance(string name, uint index)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of a class for which to get the class instance. |
uint | index | The index of the class instance. |
Returns
Type | Description |
---|---|
D3D11ClassInstance | A class instance interface. |