/// <summary> /// Submits the current batch of primitives for rendering. /// </summary> /// <param name="id">The index of the view to submit.</param> /// <param name="program">The program with which to render.</param> /// <param name="query">An occlusion query to use as a predicate during rendering.</param> /// <param name="depth">A depth value to use for sorting the batch.</param> /// <param name="preserveState"><c>true</c> to preserve internal draw state after the call.</param> /// <returns>The number of draw calls.</returns> public int Submit(ushort id, Program program, OcclusionQuery query, int depth = 0, bool preserveState = false) { return(NativeMethods.bgfx_encoder_submit_occlusion_query(ptr, id, program.handle, query.handle, depth, preserveState)); }
///// <summary> ///// Submits the current batch of primitives for rendering. ///// </summary> ///// <param name="id">The index of the view to submit.</param> ///// <param name="program">The program with which to render.</param> ///// <param name="depth">A depth value to use for sorting the batch.</param> ///// <param name="preserveState"><c>true</c> to preserve internal draw state after the call.</param> ///// <returns>The number of draw calls.</returns> //public int Submit (ushort id, Program program, int depth = 0, bool preserveState = false) { // return NativeMethods.bgfx_encoder_submit(ptr, id, program.handle, depth, preserveState); //} //!!!!betauser /// <summary> /// Submits the current batch of primitives for rendering. /// </summary> /// <param name="id">The index of the view to submit.</param> /// <param name="program">The program with which to render.</param> /// <param name="query">An occlusion query to use as a predicate during rendering.</param> /// <param name="depth">A depth value to use for sorting the batch.</param> /// <param name="preserveState"><c>true</c> to preserve internal draw state after the call.</param> /// <returns>The number of draw calls.</returns> public int Submit(ushort id, Program program, OcclusionQuery query, int depth, DiscardFlags flags) { return(NativeMethods.bgfx_encoder_submit_occlusion_query(ptr, id, program.handle, query.handle, depth, flags)); }
/// <summary> /// Submits the current batch of primitives for rendering. /// </summary> /// <param name="id">The index of the view to submit.</param> /// <param name="program">The program with which to render.</param> /// <param name="query">An occlusion query to use as a predicate during rendering.</param> /// <param name="depth">A depth value to use for sorting the batch.</param> /// <param name="preserveState"><c>true</c> to preserve internal draw state after the call.</param> /// <returns>The number of draw calls.</returns> public static int Submit(byte id, Program program, OcclusionQuery query, int depth = 0, bool preserveState = false) { return(NativeMethods.bgfx_submit_occlusion_query(id, program.handle, query.handle, depth, preserveState)); }
/// <summary> /// Submits the current batch of primitives for rendering. /// </summary> /// <param name="id">The index of the view to submit.</param> /// <param name="program">The program with which to render.</param> /// <param name="query">An occlusion query to use as a predicate during rendering.</param> /// <param name="depth">A depth value to use for sorting the batch.</param> /// <returns>The number of draw calls.</returns> public static int Submit(byte id, Program program, OcclusionQuery query, int depth = 0) { return(NativeMethods.bgfx_submit_occlusion_query(id, program.handle, query.handle, depth)); }