Create Method (ClassInstance)
In This Topic
Initializes a class-instance object that represents an HLSL class instance.
Syntax
'Declaration
Public Shared Function Create( _
ByVal As ClassLinkage, _
ByVal As System.String, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Integer, _
ByVal As System.Integer _
) As ClassInstance
public static ClassInstance Create(
ClassLinkage ,
System.string ,
System.int ,
System.int ,
System.int ,
System.int
)
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