Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

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 aquired using ID3D11ClassLinkage::CreateClassInstance. The InstanceIndex member is only valid when the class instance is aquired using ID3D11ClassLinkage::GetClassInstance.

Requirements

Header

D3D11.h

See also

Shader Structures

 

 

Show:
© 2017 Microsoft