ComponentOne Bitmap for WPF
C1.WPF.DX.4.6.2 Assembly / C1.Util.DX.Direct3D11 Namespace / ClassInstance Class / Create Method
An instance of ClassLinkage.
The type name of a class to initialize.
Identifies the constant buffer that contains the class data.
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.
The texture slot for the first texture; there may be multiple textures following the offset.
The sampler slot for the first sampler; there may be multiple samplers following the offset.

In This Topic
    Create Method (ClassInstance)
    In This Topic
    Initializes a class-instance object that represents an HLSL class instance.
    Syntax
    'Declaration
     
    Public Shared Function Create( _
       ByVal linkage As ClassLinkage, _
       ByVal classTypeName As String, _
       ByVal constantBufferOffset As Integer, _
       ByVal constantVectorOffset As Integer, _
       ByVal textureOffset As Integer, _
       ByVal samplerOffset As Integer _
    ) As ClassInstance

    Parameters

    linkage
    An instance of ClassLinkage.
    classTypeName
    The type name of a class to initialize.
    constantBufferOffset
    Identifies the constant buffer that contains the class data.
    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.
    textureOffset
    The texture slot for the first texture; there may be multiple textures following the offset.
    samplerOffset
    The sampler slot for the first sampler; there may be multiple samplers following the offset.
    See Also