Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Type: UINT
The instance ID of an HLSL class; the default value is 0.
InstanceIndex
Type: UINT
The instance index of an HLSL class; the default value is 0.
TypeId
Type: UINT
The type ID of an HLSL class; the default value is 0.
ConstantBuffer
Type: UINT
Describes the constant buffer associated with an HLSL class; the default value is 0.
BaseConstantBufferOffset
Type: UINT
The base constant buffer offset associated with an HLSL class; the default value is 0.
BaseTexture
Type: UINT
The base texture associated with an HLSL class; the default value is 127.
BaseSampler
Type: UINT
The base sampler associated with an HLSL class; the default value is 15.
Created
Type: BOOL
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 aquired using ID3D11ClassLinkage::GetClassInstance.
Requirements
Requirement | Value |
---|---|
Header | d3d11.h |