[]
ID3D11ClassInstance
[Guid("a6cd7faa-b0b7-4a2f-9436-8662a65797cb")]
public class ClassInstance : DeviceChild, IDisposable, IUnknown
Initializes a new instance of the ClassInstance class.
public ClassInstance(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
GetDescription
public ClassInstanceDescription Description { get; }
Gets the instance name of the current HLSL class.
public string InstanceName { get; }
Gets the type of the current HLSL class.
public string TypeName { get; }
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)
linkage
ClassLinkageAn instance of ClassLinkage.
classTypeName
stringThe type name of a class to initialize.
constantBufferOffset
intIdentifies the constant buffer that contains the class data.
constantVectorOffset
intThe 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
intThe texture slot for the first texture; there may be multiple textures following the offset.
samplerOffset
intThe sampler slot for the first sampler; there may be multiple samplers following the offset.
void ID3D11ClassInstance::GetClassLinkage([Out] ID3D11ClassLinkage** ppLinkage)
public ClassLinkage GetClassLinkage()
void ID3D11ClassInstance::GetDesc([Out] D3D11_CLASS_INSTANCE_DESC* pDesc)
public void GetDescription(out ClassInstanceDescription descRef)
descRef
ClassInstanceDescriptionvoid ID3D11ClassInstance::GetInstanceName([Out, Buffer, Optional] char* pInstanceName,[InOut] SIZE_T* pBufferLength)
public void GetInstanceName(IntPtr instanceNameRef, ref PointerSize bufferLengthRef)
instanceNameRef
System.IntPtrbufferLengthRef
PointerSizevoid ID3D11ClassInstance::GetTypeName([Out, Buffer, Optional] char* pTypeName,[InOut] SIZE_T* pBufferLength)
public void GetTypeName(IntPtr typeNameRef, ref PointerSize bufferLengthRef)
typeNameRef
System.IntPtrbufferLengthRef
PointerSizePerforms an explicit conversion from System.IntPtr to ClassInstance.
public static explicit operator ClassInstance(IntPtr nativePointer)
nativePointer
System.IntPtr