mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
31 lines
1.0 KiB
C++
31 lines
1.0 KiB
C++
// Copyright 2022 Dolphin Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "VideoBackends/Metal/MTLUtil.h"
|
|
#include "VideoCommon/VertexManagerBase.h"
|
|
|
|
namespace Metal
|
|
{
|
|
class VertexManager final : public VertexManagerBase
|
|
{
|
|
public:
|
|
VertexManager();
|
|
~VertexManager() override;
|
|
|
|
void UploadUtilityUniforms(const void* uniforms, u32 uniforms_size) override;
|
|
bool UploadTexelBuffer(const void* data, u32 data_size, TexelBufferFormat format,
|
|
u32* out_offset) override;
|
|
bool UploadTexelBuffer(const void* data, u32 data_size, TexelBufferFormat format, u32* out_offset,
|
|
const void* palette_data, u32 palette_size,
|
|
TexelBufferFormat palette_format, u32* out_palette_offset) override;
|
|
|
|
protected:
|
|
void ResetBuffer(u32 vertex_stride) override;
|
|
void CommitBuffer(u32 num_vertices, u32 vertex_stride, u32 num_indices, u32* out_base_vertex,
|
|
u32* out_base_index) override;
|
|
void UploadUniforms() override;
|
|
};
|
|
} // namespace Metal
|