Beispiel #1
0
 /// <summary>
 /// Sets the index buffer to use for drawing primitives.
 /// </summary>
 /// <param name="indexBuffer">The index buffer to set.</param>
 /// <param name="firstIndex">The first index in the buffer to use.</param>
 /// <param name="count">The number of indices to pull from the buffer.</param>
 public void SetIndexBuffer(DynamicIndexBuffer indexBuffer, int firstIndex, int count)
 {
     NativeMethods.bgfx_encoder_set_dynamic_index_buffer(ptr, indexBuffer.handle, firstIndex, count);
 }
Beispiel #2
0
 /// <summary>
 /// Sets a dynamic index buffer as a compute resource.
 /// </summary>
 /// <param name="stage">The resource stage to set.</param>
 /// <param name="buffer">The buffer to set.</param>
 /// <param name="access">Access control flags.</param>
 public void SetComputeBuffer(byte stage, DynamicIndexBuffer buffer, ComputeBufferAccess access)
 {
     NativeMethods.bgfx_encoder_set_compute_dynamic_index_buffer(ptr, stage, buffer.handle, access);
 }
Beispiel #3
0
 /// <summary>
 /// Sets the index buffer to use for drawing primitives.
 /// </summary>
 /// <param name="indexBuffer">The index buffer to set.</param>
 public void SetIndexBuffer(DynamicIndexBuffer indexBuffer)
 {
     NativeMethods.bgfx_encoder_set_dynamic_index_buffer(ptr, indexBuffer.handle, 0, -1);
 }