[]
Initializes a class-instance object that represents an HLSL class instance.
public static ClassInstance Create(ClassLinkage linkage, string classTypeName, int constantBufferOffset, int constantVectorOffset, int textureOffset, int samplerOffset)
| Type | Name | Description |
|---|---|---|
| ClassLinkage | linkage | An instance of ClassLinkage. |
| string | classTypeName | The type name of a class to initialize. |
| int | constantBufferOffset | Identifies the constant buffer that contains the class data. |
| int | 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. |
| int | textureOffset | The texture slot for the first texture; there may be multiple textures following the offset. |
| int | samplerOffset | The sampler slot for the first sampler; there may be multiple samplers following the offset. |
| Type | Description |
|---|---|
| ClassInstance |