ID2D1DrawInfo

<summary> A transform uses this interface to specify how to render a particular pass using pixel and vertex shaders. </summary>

Members

Functions

SetPixelShader
HRESULT SetPixelShader(REFGUID shaderId, D2D1_PIXEL_OPTIONS pixelOptions = D2D1_PIXEL_OPTIONS_NONE)

<summary> Set the shader instructions for this transform. </summary>

SetPixelShaderConstantBuffer
HRESULT SetPixelShaderConstantBuffer(const(BYTE)* buffer, UINT32 bufferCount)

<summary> Set the constant buffer for this transform's pixel shader. </summary>

SetResourceTexture
HRESULT SetResourceTexture(UINT32 textureIndex, ID2D1ResourceTexture resourceTexture)

<summary> Sets the resource texture corresponding to the given shader texture index. </summary>

SetVertexProcessing
HRESULT SetVertexProcessing(ID2D1VertexBuffer vertexBuffer, D2D1_VERTEX_OPTIONS vertexOptions, const(D2D1_BLEND_DESCRIPTION)* blendDescription = null, const(D2D1_VERTEX_RANGE)* vertexRange = null, const(GUID)* vertexShader = null)

<summary> Set custom vertices for the associated transform. A blend mode if foreground-over will be used if blendDescription is null. </summary>

SetVertexShaderConstantBuffer
HRESULT SetVertexShaderConstantBuffer(const(BYTE)* buffer, UINT32 bufferCount)

<summary> Set the constant buffer for this transform's vertex shader. </summary>

Inherited Members

From ID2D1RenderInfo

SetInputDescription
HRESULT SetInputDescription(UINT32 inputIndex, D2D1_INPUT_DESCRIPTION inputDescription)

<summary> Sets options for sampling the specified image input </summary>

SetOutputBuffer
HRESULT SetOutputBuffer(D2D1_BUFFER_PRECISION bufferPrecision, D2D1_CHANNEL_DEPTH channelDepth)

<summary> Controls the output precision and channel-depth for the associated transform. </summary>

SetCached
void SetCached(BOOL isCached)

<summary> Controls whether the output of the associated transform is cached. </summary>

SetInstructionCountHint
void SetInstructionCountHint(UINT32 instructionCount)

<summary> Provides a hint of the approximate shader instruction count per pixel. If provided, it may improve performance when processing large images. Instructions should be counted multiple times if occurring within loops. </summary>

Meta