Demo entry 6785126

1

   

Submitted by anonymous on Mar 13, 2019 at 08:48
Language: C. Code size: 871 Bytes.

static INLINE void gles_draw_call_init(gles_draw_call *call)
{
	/* Preconditions */
	CDBG_ASSERT_POINTER(call);

	/* Note: 0 is not a valid enum value for the gpu data structure,
	 * so we need to sneak it in as default value w/o causing compiler warnings.
	 */
	call->primitive_type = GLES_DRAW_PRIMITIVE_INVALID;

	/* Zero everything */
	call->num_read_dependencies = 0;
	call->num_write_dependencies = 0;
	call->num_refcounts = 0;
	call->requested_program_variant_mask = 0;

#if GLES_VERTEXP_ENABLE_SCAN_RANGES
	/* Initialize the pointer to the storage for the initial vertex range */
	call->num_vertex_ranges = 1;
	call->ptr_vertex_ranges = call->default_vertex_ranges;
#endif
	call->num_views = 1;

	/* Initialize the job collection */
	call->jobs = cstate_job_collection_init_from_buffer(call->jobs_buffer, sizeof(call->jobs_buffer));

}

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).