Struct D3D11ClassInstanceDesc
Describes an HLSL class instance.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11ClassInstanceDesc : IEquatable<D3D11ClassInstanceDesc>
Properties
| Edit this page View SourceBaseConstantBufferOffset
Gets the base constant buffer offset associated with an HLSL class; the default value is 0.
Declaration
public uint BaseConstantBufferOffset { get; }
Property Value
Type | Description |
---|---|
uint |
BaseSampler
Gets the base sampler associated with an HLSL class; the default value is 15.
Declaration
public uint BaseSampler { get; }
Property Value
Type | Description |
---|---|
uint |
BaseTexture
Gets the base texture associated with an HLSL class; the default value is 127.
Declaration
public uint BaseTexture { get; }
Property Value
Type | Description |
---|---|
uint |
ConstanceBuffer
Gets a value indicating the constant buffer associated with an HLSL class; the default value is 0.
Declaration
public uint ConstanceBuffer { get; }
Property Value
Type | Description |
---|---|
uint |
InstanceId
Gets the instance ID of an HLSL class; the default value is 0.
Declaration
public uint InstanceId { get; }
Property Value
Type | Description |
---|---|
uint |
InstanceIndex
Gets the instance index of an HLSL class; the default value is 0.
Declaration
public uint InstanceIndex { get; }
Property Value
Type | Description |
---|---|
uint |
IsCreated
Gets a value indicating whether the class was created; the default value is false.
Declaration
public bool IsCreated { get; }
Property Value
Type | Description |
---|---|
bool |
TypeId
Gets the type ID of an HLSL class; the default value is 0.
Declaration
public uint TypeId { get; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceEquals(D3D11ClassInstanceDesc)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11ClassInstanceDesc other)
Parameters
Type | Name | Description |
---|---|---|
D3D11ClassInstanceDesc | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11ClassInstanceDesc, D3D11ClassInstanceDesc)
Compares two D3D11ClassInstanceDesc objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11ClassInstanceDesc left, D3D11ClassInstanceDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11ClassInstanceDesc | left | The left D3D11ClassInstanceDesc to compare. |
D3D11ClassInstanceDesc | right | The right D3D11ClassInstanceDesc to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11ClassInstanceDesc, D3D11ClassInstanceDesc)
Compares two D3D11ClassInstanceDesc objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11ClassInstanceDesc left, D3D11ClassInstanceDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11ClassInstanceDesc | left | The left D3D11ClassInstanceDesc to compare. |
D3D11ClassInstanceDesc | right | The right D3D11ClassInstanceDesc to compare. |
Returns
Type | Description |
---|---|
bool |