Files
test/source/blender/gpu/intern/gpu_drawlist.cc
Sergey Sharybin c1bc70b711 Cleanup: Add a copyright notice to files and use SPDX format
A lot of files were missing copyright field in the header and
the Blender Foundation contributed to them in a sense of bug
fixing and general maintenance.

This change makes it explicit that those files are at least
partially copyrighted by the Blender Foundation.

Note that this does not make it so the Blender Foundation is
the only holder of the copyright in those files, and developers
who do not have a signed contract with the foundation still
hold the copyright as well.

Another aspect of this change is using SPDX format for the
header. We already used it for the license specification,
and now we state it for the copyright as well, following the
FAQ:

    https://reuse.software/faq/
2023-05-31 16:19:06 +02:00

42 lines
859 B
C++

/* SPDX-FileCopyrightText: 2016 by Mike Erwin. All rights reserved.
*
* SPDX-License-Identifier: GPL-2.0-or-later */
/** \file
* \ingroup gpu
*
* Implementation of Multi Draw Indirect.
*/
#include "GPU_drawlist.h"
#include "gpu_backend.hh"
#include "gpu_drawlist_private.hh"
using namespace blender::gpu;
GPUDrawList *GPU_draw_list_create(int list_length)
{
DrawList *list_ptr = GPUBackend::get()->drawlist_alloc(list_length);
return wrap(list_ptr);
}
void GPU_draw_list_discard(GPUDrawList *list)
{
DrawList *list_ptr = unwrap(list);
delete list_ptr;
}
void GPU_draw_list_append(GPUDrawList *list, GPUBatch *batch, int i_first, int i_count)
{
DrawList *list_ptr = unwrap(list);
list_ptr->append(batch, i_first, i_count);
}
void GPU_draw_list_submit(GPUDrawList *list)
{
DrawList *list_ptr = unwrap(list);
list_ptr->submit();
}