# C1.Util.DX.Direct2D.VertexBuffer

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_VertexBuffer" data-uid="C1.Util.DX.Direct2D.VertexBuffer" class="text-break">VertexBuffer Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1VertexBuffer</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"><span class="xref">VertexBuffer</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_VertexBuffer_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;9b8b1336-00a5-4668-92b7-ced5d8bf9b7b&quot;)]
public class VertexBuffer : ComObject, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;9b8b1336-00a5-4668-92b7-ced5d8bf9b7b&quot;)&gt;
Public Class VertexBuffer
    Inherits ComObject
    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_VertexBuffer__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.VertexBuffer.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.-ctor.html#C1_Util_DX_Direct2D_VertexBuffer__ctor_System_IntPtr_">VertexBuffer(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.html">VertexBuffer</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_VertexBuffer_Create_C1_Util_DX_Direct2D_EffectContext_System_Guid_C1_Util_DX_Direct2D_VertexBufferProperties_C1_Util_DX_Direct2D_CustomVertexBufferProperties_" data-uid="C1.Util.DX.Direct2D.VertexBuffer.Create(C1.Util.DX.Direct2D.EffectContext,System.Guid,C1.Util.DX.Direct2D.VertexBufferProperties,C1.Util.DX.Direct2D.CustomVertexBufferProperties)">
          <a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.Create.html#C1_Util_DX_Direct2D_VertexBuffer_Create_C1_Util_DX_Direct2D_EffectContext_System_Guid_C1_Util_DX_Direct2D_VertexBufferProperties_C1_Util_DX_Direct2D_CustomVertexBufferProperties_">Create(EffectContext, Guid, VertexBufferProperties, CustomVertexBufferProperties)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.html">VertexBuffer</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_VertexBuffer_Map_System_Byte___System_Int32_" data-uid="C1.Util.DX.Direct2D.VertexBuffer.Map(System.Byte[],System.Int32)">
          <a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.Map.html#C1_Util_DX_Direct2D_VertexBuffer_Map_System_Byte___System_Int32_">Map(byte[], int)</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1VertexBuffer::Map([Out, Buffer] unsigned char** data,[In] unsigned int bufferSize)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_VertexBuffer_Unmap" data-uid="C1.Util.DX.Direct2D.VertexBuffer.Unmap">
          <a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.Unmap.html#C1_Util_DX_Direct2D_VertexBuffer_Unmap">Unmap()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1VertexBuffer::Unmap()</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_VertexBuffer_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_VertexBuffer" data-uid="C1.Util.DX.Direct2D.VertexBuffer.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.VertexBuffer">
          <a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.op_Explicit.html#C1_Util_DX_Direct2D_VertexBuffer_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_VertexBuffer">explicit operator VertexBuffer(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.VertexBuffer.html">VertexBuffer</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
