35 lines
871 B
C++
35 lines
871 B
C++
/* SPDX-FileCopyrightText: 2016 Blender Authors
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
/** \file
|
|
* \ingroup draw
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BLI_compiler_attrs.h"
|
|
#include "BLI_sys_types.h"
|
|
|
|
#include "GPU_batch.hh"
|
|
|
|
#define MAX_INSTANCE_DATA_SIZE 64 /* Can be adjusted for more */
|
|
|
|
#define DRW_BUFFER_VERTS_CHUNK 128
|
|
|
|
struct GHash;
|
|
struct GPUUniformAttrList;
|
|
struct DRWInstanceData;
|
|
struct DRWInstanceDataList;
|
|
struct DRWSparseUniformBuf;
|
|
|
|
/**
|
|
* Return a pointer to the next instance data space.
|
|
*/
|
|
void *DRW_instance_data_next(DRWInstanceData *idata);
|
|
DRWInstanceData *DRW_instance_data_request(DRWInstanceDataList *idatalist, uint attr_size);
|
|
|
|
void DRW_instance_data_list_reset(DRWInstanceDataList *idatalist);
|
|
void DRW_instance_data_list_free_unused(DRWInstanceDataList *idatalist);
|
|
void DRW_instance_data_list_resize(DRWInstanceDataList *idatalist);
|