[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.Direct3D11.ClassInstance

Class ClassInstance

Namespace
GrapeCity.Documents.DX.Direct3D11
Assembly
GcDocs.DX.Windows.dll

ID3D11ClassInstance

[Guid("a6cd7faa-b0b7-4a2f-9436-8662a65797cb")]
public class ClassInstance : DeviceChild, IDisposable, IUnknown
Inheritance
object
ClassInstance
Implements
System.IDisposable
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Constructors

ClassInstance(IntPtr)

Initializes a new instance of the ClassInstance class.

public ClassInstance(IntPtr nativePtr)

Parameters

nativePtr System.IntPtr

The native pointer.

Properties

Description

GetDescription

public ClassInstanceDescription Description { get; }

Property Value

ClassInstanceDescription

InstanceName

Gets the instance name of the current HLSL class.

public string InstanceName { get; }

Property Value

string

TypeName

Gets the type of the current HLSL class.

public string TypeName { get; }

Property Value

string

Methods

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

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

public static ClassInstance Create(ClassLinkage linkage, string classTypeName, int constantBufferOffset, int constantVectorOffset, int textureOffset, int samplerOffset)

Parameters

linkage ClassLinkage

An instance of ClassLinkage.

classTypeName string

The type name of a class to initialize.

constantBufferOffset int

Identifies the constant buffer that contains the class data.

constantVectorOffset int

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.

textureOffset int

The texture slot for the first texture; there may be multiple textures following the offset.

samplerOffset int

The sampler slot for the first sampler; there may be multiple samplers following the offset.

Returns

ClassInstance

GetClassLinkage()

void ID3D11ClassInstance::GetClassLinkage([Out] ID3D11ClassLinkage** ppLinkage)

public ClassLinkage GetClassLinkage()

Returns

ClassLinkage

GetDescription(out ClassInstanceDescription)

void ID3D11ClassInstance::GetDesc([Out] D3D11_CLASS_INSTANCE_DESC* pDesc)

public void GetDescription(out ClassInstanceDescription descRef)

Parameters

descRef ClassInstanceDescription

GetInstanceName(IntPtr, ref PointerSize)

void ID3D11ClassInstance::GetInstanceName([Out, Buffer, Optional] char* pInstanceName,[InOut] SIZE_T* pBufferLength)

public void GetInstanceName(IntPtr instanceNameRef, ref PointerSize bufferLengthRef)

Parameters

instanceNameRef System.IntPtr
bufferLengthRef PointerSize

GetTypeName(IntPtr, ref PointerSize)

void ID3D11ClassInstance::GetTypeName([Out, Buffer, Optional] char* pTypeName,[InOut] SIZE_T* pBufferLength)

public void GetTypeName(IntPtr typeNameRef, ref PointerSize bufferLengthRef)

Parameters

typeNameRef System.IntPtr
bufferLengthRef PointerSize

Operators

explicit operator ClassInstance(IntPtr)

Performs an explicit conversion from System.IntPtr to ClassInstance.

public static explicit operator ClassInstance(IntPtr nativePointer)

Parameters

nativePointer System.IntPtr

Returns

ClassInstance