[]
ID2D1DrawInfo
[Guid("693ce632-7f2f-45de-93fe-18d88b37aa21")]
public class DrawInformation : RenderInformation, IDisposable, IUnknown
Initializes a new instance of the DrawInformation class.
public DrawInformation(IntPtr nativePtr)
nativePtr
System.IntPtrThe native pointer.
Sets the constant buffer data from a DataStream for the Pixel stage.
public void SetPixelConstantBuffer(DataStream dataStream)
dataStream
DataStreamThe DataStream that contains the constant buffer data
Sets the constant buffer data from a struct value for the Pixel Stage.
public void SetPixelConstantBuffer<T>(ref T value) where T : struct
value
TValue of the constant buffer
T
Type of the constant buffer
HRESULT ID2D1DrawInfo::SetPixelShader([In] const GUID& shaderId,[In] D2D1_PIXEL_OPTIONS pixelOptions)
public void SetPixelShader(Guid shaderId, PixelOptions pixelOptions)
shaderId
System.GuidpixelOptions
PixelOptionsHRESULT ID2D1DrawInfo::SetPixelShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)
public void SetPixelShaderConstantBuffer(IntPtr buffer, int bufferCount)
buffer
System.IntPtrbufferCount
intHRESULT ID2D1DrawInfo::SetResourceTexture([In] unsigned int textureIndex,[In] ID2D1ResourceTexture* resourceTexture)
public void SetResourceTexture(int textureIndex, ResourceTexture resourceTexture)
textureIndex
intresourceTexture
ResourceTextureSets the constant buffer data from a DataStream for the Vertex stage.
public void SetVertexConstantBuffer(DataStream dataStream)
dataStream
DataStreamThe DataStream that contains the constant buffer data
Sets the constant buffer data from a struct value for the Vertex Stage.
public void SetVertexConstantBuffer<T>(ref T value) where T : struct
value
TValue of the constant buffer
T
Type of the constant buffer
HRESULT ID2D1DrawInfo::SetVertexProcessing([In, Optional] ID2D1VertexBuffer* vertexBuffer,[In] D2D1_VERTEX_OPTIONS vertexOptions,[In, Optional] const D2D1_BLEND_DESCRIPTION* blendDescription,[In, Optional] const D2D1_VERTEX_RANGE* vertexRange,[In, Optional] const GUID* vertexShader)
public void SetVertexProcessing(VertexBuffer vertexBuffer, VertexOptions vertexOptions, BlendDescription? blendDescription = null, VertexRange? vertexRange = null, Guid? vertexShader = null)
vertexBuffer
VertexBuffervertexOptions
VertexOptionsblendDescription
BlendDescription?vertexRange
VertexRange?vertexShader
System.Guid?HRESULT ID2D1DrawInfo::SetVertexShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)
public void SetVertexShaderConstantBuffer(IntPtr buffer, int bufferCount)
buffer
System.IntPtrbufferCount
intPerforms an explicit conversion from System.IntPtr to DrawInformation.
public static explicit operator DrawInformation(IntPtr nativePointer)
nativePointer
System.IntPtr