Class D3D11ClassLinkage
This interface encapsulates an HLSL dynamic linkage.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
[SecurityCritical]
public class D3D11ClassLinkage : D3D11DeviceChild, IDisposable
Constructors
| Edit this page View SourceD3D11ClassLinkage(nint)
Initializes a new instance of the D3D11ClassLinkage class.
Declaration
public D3D11ClassLinkage(nint comPtr)
Parameters
| Type | Name | Description |
|---|---|---|
| nint | comPtr |
Fields
| Edit this page View SourceD3D11ClassLinkageGuid
The interface GUID.
Declaration
public static readonly Guid D3D11ClassLinkageGuid
Field Value
| Type | Description |
|---|---|
| Guid |
Methods
| Edit this page View SourceCreateClassInstance(ReadOnlySpan<byte>, uint, uint, uint, uint)
Initializes a class-instance object that represents an HLSL class instance.
Declaration
public D3D11ClassInstance CreateClassInstance(ReadOnlySpan<byte> classTypeName, uint constantBufferOffset, uint constantVectorOffset, uint textureOffset, uint samplerOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | 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. |
CreateClassInstance(ReadOnlySpan<char>, uint, uint, uint, uint)
Initializes a class-instance object that represents an HLSL class instance.
Declaration
public D3D11ClassInstance CreateClassInstance(ReadOnlySpan<char> classTypeName, uint constantBufferOffset, uint constantVectorOffset, uint textureOffset, uint samplerOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | 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. |
CreateClassInstance(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(ReadOnlySpan<byte>, uint)
Gets the class-instance object that represents the specified HLSL class.
Declaration
public D3D11ClassInstance GetClassInstance(ReadOnlySpan<byte> name, uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<byte> | 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. |
GetClassInstance(ReadOnlySpan<char>, uint)
Gets the class-instance object that represents the specified HLSL class.
Declaration
public D3D11ClassInstance GetClassInstance(ReadOnlySpan<char> name, uint index)
Parameters
| Type | Name | Description |
|---|---|---|
| ReadOnlySpan<char> | 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. |
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. |