Create Method (ClassInstance)
In This Topic
Initializes a class-instance object that represents an HLSL class instance.
Syntax
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