# C1.Util.DX.Direct2D.EffectContext.CreateVertexBuffer

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Direct2D_EffectContext_CreateVertexBuffer_" data-uid="C1.Util.DX.Direct2D.EffectContext.CreateVertexBuffer*">CreateVertexBuffer Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Direct2D_EffectContext_CreateVertexBuffer_" data-uid="C1.Util.DX.Direct2D.EffectContext.CreateVertexBuffer*"></a>
<h4 id="C1_Util_DX_Direct2D_EffectContext_CreateVertexBuffer_C1_Util_DX_Direct2D_VertexBufferProperties_System_Nullable_System_Guid__System_IntPtr_" data-uid="C1.Util.DX.Direct2D.EffectContext.CreateVertexBuffer(C1.Util.DX.Direct2D.VertexBufferProperties,System.Nullable{System.Guid},System.IntPtr)">CreateVertexBuffer(VertexBufferProperties, Guid?, IntPtr)</h4>
<div class="markdown level1 summary"><p>HRESULT ID2D1EffectContext::CreateVertexBuffer([In] const D2D1_VERTEX_BUFFER_PROPERTIES* vertexBufferProperties,[In, Optional] const GUID* resourceId,[In, Optional] const void* customVertexBufferProperties,[Out, Fast] ID2D1VertexBuffer** buffer)</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public VertexBuffer CreateVertexBuffer(VertexBufferProperties vertexBufferProperties, Guid? resourceId, IntPtr customVertexBufferProperties)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CreateVertexBuffer(vertexBufferProperties As VertexBufferProperties, resourceId As Guid?, customVertexBufferProperties As IntPtr) As VertexBuffer</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.VertexBufferProperties.html">VertexBufferProperties</a></td>
      <td><span class="parametername">vertexBufferProperties</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.guid">Guid</a>?</td>
      <td><span class="parametername">resourceId</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">IntPtr</a></td>
      <td><span class="parametername">customVertexBufferProperties</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Direct2D.VertexBuffer.html">VertexBuffer</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
