2022-02-14 01:58:44 +00:00
|
|
|
#ifndef EMULATOR_INCLUDE_EMULATOR_GRAPHICS_OBJECTS_INDEXBUFFER_H_
|
|
|
|
#define EMULATOR_INCLUDE_EMULATOR_GRAPHICS_OBJECTS_INDEXBUFFER_H_
|
2021-12-01 09:29:27 +00:00
|
|
|
|
|
|
|
#include "Kyty/Core/Common.h"
|
|
|
|
|
|
|
|
#include "Emulator/Common.h"
|
2022-02-14 01:58:44 +00:00
|
|
|
#include "Emulator/Graphics/Objects/GpuMemory.h"
|
2021-12-01 09:29:27 +00:00
|
|
|
|
|
|
|
#ifdef KYTY_EMU_ENABLED
|
|
|
|
|
|
|
|
namespace Kyty::Libs::Graphics {
|
|
|
|
|
2022-05-21 12:04:50 +00:00
|
|
|
struct GraphicContext;
|
|
|
|
|
|
|
|
void IndexBufferInit();
|
|
|
|
void IndexBufferDeleteAll(GraphicContext* ctx);
|
|
|
|
|
2021-12-01 09:29:27 +00:00
|
|
|
class IndexBufferGpuObject: public GpuObject
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
IndexBufferGpuObject()
|
|
|
|
{
|
|
|
|
check_hash = true;
|
|
|
|
type = Graphics::GpuMemoryObjectType::IndexBuffer;
|
|
|
|
}
|
|
|
|
|
2022-02-20 10:04:12 +00:00
|
|
|
bool Equal(const uint64_t* other) const override;
|
2021-12-01 09:29:27 +00:00
|
|
|
|
2022-02-20 10:04:12 +00:00
|
|
|
[[nodiscard]] create_func_t GetCreateFunc() const override;
|
|
|
|
[[nodiscard]] create_from_objects_func_t GetCreateFromObjectsFunc() const override { return nullptr; };
|
|
|
|
[[nodiscard]] write_back_func_t GetWriteBackFunc() const override { return nullptr; };
|
|
|
|
[[nodiscard]] delete_func_t GetDeleteFunc() const override;
|
|
|
|
[[nodiscard]] update_func_t GetUpdateFunc() const override;
|
2021-12-01 09:29:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace Kyty::Libs::Graphics
|
|
|
|
|
|
|
|
#endif // KYTY_EMU_ENABLED
|
|
|
|
|
2022-02-14 01:58:44 +00:00
|
|
|
#endif /* EMULATOR_INCLUDE_EMULATOR_GRAPHICS_OBJECTS_INDEXBUFFER_H_ */
|