# C1.Util.DX.Direct2D.ComputeInformation

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_ComputeInformation" data-uid="C1.Util.DX.Direct2D.ComputeInformation" class="text-break">ComputeInformation Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1ComputeInfo</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">ComputeInformation</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_ComputeInformation_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;5598b14b-9fd7-48b7-9bdb-8f0964eb38bc&quot;)]
public class ComputeInformation : RenderInformation, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;5598b14b-9fd7-48b7-9bdb-8f0964eb38bc&quot;)&gt;
Public Class ComputeInformation
    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_ComputeInformation__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.ComputeInformation.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.-ctor.html#C1_Util_DX_Direct2D_ComputeInformation__ctor_System_IntPtr_">ComputeInformation(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.html">ComputeInformation</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_ComputeInformation_SetComputeShader_System_Guid_" data-uid="C1.Util.DX.Direct2D.ComputeInformation.SetComputeShader(System.Guid)">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.SetComputeShader.html#C1_Util_DX_Direct2D_ComputeInformation_SetComputeShader_System_Guid_">SetComputeShader(Guid)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1ComputeInfo::SetComputeShader([In] const GUID&amp; shaderId)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ComputeInformation_SetComputeShaderConstantBuffer_System_IntPtr_System_Int32_" data-uid="C1.Util.DX.Direct2D.ComputeInformation.SetComputeShaderConstantBuffer(System.IntPtr,System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.SetComputeShaderConstantBuffer.html#C1_Util_DX_Direct2D_ComputeInformation_SetComputeShaderConstantBuffer_System_IntPtr_System_Int32_">SetComputeShaderConstantBuffer(nint, int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1ComputeInfo::SetComputeShaderConstantBuffer([In, Buffer] const void* buffer,[In] unsigned int bufferCount)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ComputeInformation_SetConstantBuffer_C1_Util_DX_DataStream_" data-uid="C1.Util.DX.Direct2D.ComputeInformation.SetConstantBuffer(C1.Util.DX.DataStream)">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.SetConstantBuffer.html#C1_Util_DX_Direct2D_ComputeInformation_SetConstantBuffer_C1_Util_DX_DataStream_">SetConstantBuffer(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>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ComputeInformation_SetConstantBuffer__1___0_" data-uid="C1.Util.DX.Direct2D.ComputeInformation.SetConstantBuffer``1(``0)">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.SetConstantBuffer.html#C1_Util_DX_Direct2D_ComputeInformation_SetConstantBuffer__1___0_">SetConstantBuffer&lt;T&gt;(T)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the constant buffer data from a struct value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ComputeInformation_SetConstantBuffer__1___0__" data-uid="C1.Util.DX.Direct2D.ComputeInformation.SetConstantBuffer``1(``0@)">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.SetConstantBuffer.html#C1_Util_DX_Direct2D_ComputeInformation_SetConstantBuffer__1___0__">SetConstantBuffer&lt;T&gt;(ref T)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the constant buffer data from a struct value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_ComputeInformation_SetResourceTexture_System_Int32_C1_Util_DX_Direct2D_ResourceTexture_" data-uid="C1.Util.DX.Direct2D.ComputeInformation.SetResourceTexture(System.Int32,C1.Util.DX.Direct2D.ResourceTexture)">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.SetResourceTexture.html#C1_Util_DX_Direct2D_ComputeInformation_SetResourceTexture_System_Int32_C1_Util_DX_Direct2D_ResourceTexture_">SetResourceTexture(int, ResourceTexture)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1ComputeInfo::SetResourceTexture([In] unsigned int textureIndex,[In] ID2D1ResourceTexture* resourceTexture)</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_ComputeInformation_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_ComputeInformation" data-uid="C1.Util.DX.Direct2D.ComputeInformation.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.ComputeInformation">
          <a class="xref" href="C1.Util.DX.Direct2D.ComputeInformation.op_Explicit.html#C1_Util_DX_Direct2D_ComputeInformation_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_ComputeInformation">explicit operator ComputeInformation(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.ComputeInformation.html">ComputeInformation</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
