[]
        
(Showing Draft Content)

C1.Util.DX.Direct3D11.ClassInstance.Create

Create Method

Create(ClassLinkage, string, int, int, int, int)

Initializes a class-instance object that represents an HLSL class instance.

Declaration
public static ClassInstance Create(ClassLinkage linkage, string classTypeName, int constantBufferOffset, int constantVectorOffset, int textureOffset, int samplerOffset)
Parameters
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.

Returns
Type Description
ClassInstance