# C1.Util.DX.Direct2D.DrawInformation

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_DrawInformation" data-uid="C1.Util.DX.Direct2D.DrawInformation" class="text-break">DrawInformation Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1DrawInfo</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.Direct2D.RenderInformation.html">RenderInformation</a></div>
    <div class="level5"><span class="xref">DrawInformation</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_DrawInformation_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;693ce632-7f2f-45de-93fe-18d88b37aa21&quot;)]
public class DrawInformation : RenderInformation, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;693ce632-7f2f-45de-93fe-18d88b37aa21&quot;)&gt;
Public Class DrawInformation
    Inherits RenderInformation
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.DrawInformation.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.-ctor.html#C1_Util_DX_Direct2D_DrawInformation__ctor_System_IntPtr_">DrawInformation(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.html">DrawInformation</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetPixelConstantBuffer_C1_Util_DX_DataStream_" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetPixelConstantBuffer(C1.Util.DX.DataStream)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetPixelConstantBuffer.html#C1_Util_DX_Direct2D_DrawInformation_SetPixelConstantBuffer_C1_Util_DX_DataStream_">SetPixelConstantBuffer(DataStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the constant buffer data from a <a class="xref" href="C1.Util.DX.DataStream.html">DataStream</a> for the Pixel stage.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetPixelConstantBuffer__1___0__" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetPixelConstantBuffer``1(``0@)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetPixelConstantBuffer.html#C1_Util_DX_Direct2D_DrawInformation_SetPixelConstantBuffer__1___0__">SetPixelConstantBuffer&lt;T&gt;(ref T)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the constant buffer data from a struct value for the Pixel Stage.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetPixelShader_System_Guid_C1_Util_DX_Direct2D_PixelOptions_" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetPixelShader(System.Guid,C1.Util.DX.Direct2D.PixelOptions)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetPixelShader.html#C1_Util_DX_Direct2D_DrawInformation_SetPixelShader_System_Guid_C1_Util_DX_Direct2D_PixelOptions_">SetPixelShader(Guid, PixelOptions)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1DrawInfo::SetPixelShader([In] const GUID&amp; shaderId,[In] D2D1_PIXEL_OPTIONS pixelOptions)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetPixelShaderConstantBuffer_System_IntPtr_System_Int32_" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetPixelShaderConstantBuffer(System.IntPtr,System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetPixelShaderConstantBuffer.html#C1_Util_DX_Direct2D_DrawInformation_SetPixelShaderConstantBuffer_System_IntPtr_System_Int32_">SetPixelShaderConstantBuffer(nint, int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1DrawInfo::SetPixelShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetResourceTexture_System_Int32_C1_Util_DX_Direct2D_ResourceTexture_" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetResourceTexture(System.Int32,C1.Util.DX.Direct2D.ResourceTexture)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetResourceTexture.html#C1_Util_DX_Direct2D_DrawInformation_SetResourceTexture_System_Int32_C1_Util_DX_Direct2D_ResourceTexture_">SetResourceTexture(int, ResourceTexture)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1DrawInfo::SetResourceTexture([In] unsigned int textureIndex,[In] ID2D1ResourceTexture* resourceTexture)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetVertexConstantBuffer_C1_Util_DX_DataStream_" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetVertexConstantBuffer(C1.Util.DX.DataStream)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetVertexConstantBuffer.html#C1_Util_DX_Direct2D_DrawInformation_SetVertexConstantBuffer_C1_Util_DX_DataStream_">SetVertexConstantBuffer(DataStream)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the constant buffer data from a <a class="xref" href="C1.Util.DX.DataStream.html">DataStream</a> for the Vertex stage.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetVertexConstantBuffer__1___0__" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetVertexConstantBuffer``1(``0@)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetVertexConstantBuffer.html#C1_Util_DX_Direct2D_DrawInformation_SetVertexConstantBuffer__1___0__">SetVertexConstantBuffer&lt;T&gt;(ref T)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the constant buffer data from a struct value for the Vertex Stage.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetVertexProcessing_C1_Util_DX_Direct2D_VertexBuffer_C1_Util_DX_Direct2D_VertexOptions_System_Nullable_C1_Util_DX_Direct2D_BlendDescription__System_Nullable_C1_Util_DX_Direct2D_VertexRange__System_Nullable_System_Guid__" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetVertexProcessing(C1.Util.DX.Direct2D.VertexBuffer,C1.Util.DX.Direct2D.VertexOptions,System.Nullable{C1.Util.DX.Direct2D.BlendDescription},System.Nullable{C1.Util.DX.Direct2D.VertexRange},System.Nullable{System.Guid})">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetVertexProcessing.html#C1_Util_DX_Direct2D_DrawInformation_SetVertexProcessing_C1_Util_DX_Direct2D_VertexBuffer_C1_Util_DX_Direct2D_VertexOptions_System_Nullable_C1_Util_DX_Direct2D_BlendDescription__System_Nullable_C1_Util_DX_Direct2D_VertexRange__System_Nullable_System_Guid__">SetVertexProcessing(VertexBuffer, VertexOptions, BlendDescription?, VertexRange?, Guid?)</a>
        </td>
        <td class="markdown level1 summary"><p>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)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_SetVertexShaderConstantBuffer_System_IntPtr_System_Int32_" data-uid="C1.Util.DX.Direct2D.DrawInformation.SetVertexShaderConstantBuffer(System.IntPtr,System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.SetVertexShaderConstantBuffer.html#C1_Util_DX_Direct2D_DrawInformation_SetVertexShaderConstantBuffer_System_IntPtr_System_Int32_">SetVertexShaderConstantBuffer(nint, int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1DrawInfo::SetVertexShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_DrawInformation_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_DrawInformation" data-uid="C1.Util.DX.Direct2D.DrawInformation.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.DrawInformation">
          <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.op_Explicit.html#C1_Util_DX_Direct2D_DrawInformation_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_DrawInformation">explicit operator DrawInformation(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a> to <a class="xref" href="C1.Util.DX.Direct2D.DrawInformation.html">DrawInformation</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
