/// <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); }
/// <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); }
/// <summary> /// Sets the index buffer to use for drawing primitives. /// </summary> /// <param name="indexBuffer">The index buffer to set.</param> public static void SetIndexBuffer(DynamicIndexBuffer indexBuffer) { NativeMethods.bgfx_set_dynamic_index_buffer(indexBuffer.handle, 0, -1); }
/// <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); }
/// <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 static void SetIndexBuffer(DynamicIndexBuffer indexBuffer, int firstIndex = 0, int count = -1) { NativeMethods.bgfx_set_dynamic_index_buffer(indexBuffer.handle, firstIndex, count); }