D3D11_CLASS_INSTANCE_DESC Structure

Describes an HLSL class instance.

Syntax

typedef struct D3D11_CLASS_INSTANCE_DESC {
    UINT InstanceId;
    UINT InstanceIndex;
    UINT TypeId;
    UINT ConstantBuffer;
    UINT BaseConstantBufferOffset;
    UINT BaseTexture;
    UINT BaseSampler;
    BOOL Created;
} D3D11_CLASS_INSTANCE_DESC;  

Members

InstanceId
The instance ID of an HLSL class; the default value is 0.

InstanceIndex
The instance index of an HLSL class; the default value is 0.

TypeId
The type ID of an HLSL class; the default value is 0.

ConstantBuffer
Describes the constant buffer associated with an HLSL class; the default value is 0.

BaseConstantBufferOffset
The base constant buffer offset associated with an HLSL class; the default value is 0.

BaseTexture
The base texture associated with an HLSL class; the default value is 127.

BaseSampler
The base sampler associated with an HLSL class; the default value is 15.

Created
True if the class was created; the default value is false.

Remarks

The D3D11_CLASS_INSTANCE_DESC structure is returned by the ID3D11ClassInstance::GetDesc method.

The members of this structure except InstanceIndex are valid (non default values) if they describe a class instance acquired using ID3D11ClassLinkage::CreateClassInstance. The InstanceIndex member is only valid when the class instance is acquired using ID3D11ClassLinkage::GetClassInstance.

Requirements

Header: Declared in d3d11_x.h (d3d11.h on other Windows platforms).