[]
ID2D1ComputeInfo
[Guid("5598b14b-9fd7-48b7-9bdb-8f0964eb38bc")]
public class ComputeInformation : RenderInformation, IDisposable, IUnknown
Initializes a new instance of the ComputeInformation class.
public ComputeInformation(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
HRESULT ID2D1ComputeInfo::SetComputeShader([In] const GUID& shaderId)
public void SetComputeShader(Guid shaderId)
shaderId
System.GuidHRESULT ID2D1ComputeInfo::SetComputeShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)
public void SetComputeShaderConstantBuffer(IntPtr buffer, int bufferCount)
buffer
System.IntPtrbufferCount
intSets the constant buffer data from a DataStream.
public void SetConstantBuffer(DataStream dataStream)
dataStream
DataStreamThe DataStream that contains the constant buffer data
Sets the constant buffer data from a struct value.
public void SetConstantBuffer<T>(T value) where T : struct
value
TValue of the constant buffer
T
Type of the constant buffer
Sets the constant buffer data from a struct value.
public void SetConstantBuffer<T>(ref T value) where T : struct
value
TValue of the constant buffer
T
Type of the constant buffer
HRESULT ID2D1ComputeInfo::SetResourceTexture([In] unsigned int textureIndex,[In] ID2D1ResourceTexture* resourceTexture)
public void SetResourceTexture(int textureIndex, ResourceTexture resourceTexture)
textureIndex
intresourceTexture
ResourceTexturePerforms an explicit conversion from System.IntPtr to ComputeInformation.
public static explicit operator ComputeInformation(IntPtr nativePointer)
nativePointer
System.IntPtr