Blender V4.3
draw_texture_pool.hh
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2021 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
14#pragma once
15
16#include "GPU_texture.hh"
17
18struct DRWTexturePool;
19
22
29 int width,
30 int height,
32 eGPUTextureUsage usage,
33 void *user);
34
39 DRWTexturePool *pool, int width, int height, eGPUTextureFormat format, eGPUTextureUsage usage);
43void DRW_texture_pool_texture_release(DRWTexturePool *pool, GPUTexture *tmp_tex);
44
59
eGPUTextureUsage
eGPUTextureFormat
void DRW_texture_pool_free(DRWTexturePool *pool)
GPUTexture * DRW_texture_pool_texture_acquire(DRWTexturePool *pool, int width, int height, eGPUTextureFormat format, eGPUTextureUsage usage)
DRWTexturePool * DRW_texture_pool_create()
GPUTexture * DRW_texture_pool_query(DRWTexturePool *pool, int width, int height, eGPUTextureFormat format, eGPUTextureUsage usage, void *user)
void DRW_texture_pool_reset(DRWTexturePool *pool)
void DRW_texture_pool_texture_release(DRWTexturePool *pool, GPUTexture *tmp_tex)
void DRW_texture_pool_take_texture_ownership(DRWTexturePool *pool, GPUTexture *tex)
void DRW_texture_pool_give_texture_ownership(DRWTexturePool *pool, GPUTexture *tex)
format