1
1
This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/gpu/vulkan/vk_index_buffer.hh

29 lines
540 B
C++

/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2022 Blender Foundation. All rights reserved. */
/** \file
* \ingroup gpu
*/
#pragma once
#include "gpu_index_buffer_private.hh"
namespace blender::gpu {
class VKIndexBuffer : public IndexBuf {
public:
void upload_data() override;
void bind_as_ssbo(uint binding) override;
const uint32_t *read() const override;
void update_sub(uint start, uint len, const void *data) override;
private:
void strip_restart_indices() override;
};
} // namespace blender::gpu