wtf is hapenning

This commit is contained in:
Kbz-8
2024-12-28 15:42:38 +01:00
parent cd906ca117
commit c60c176a54
10 changed files with 68 additions and 24 deletions

View File

@@ -19,7 +19,8 @@ namespace mlx
void Swap(GPUBuffer& buffer) noexcept;
[[nodiscard]] MLX_FORCEINLINE void* GetMap() const noexcept { return p_map; }
template<typename T = void*>
[[nodiscard]] MLX_FORCEINLINE T GetMap() const noexcept { return reinterpret_cast<T>(p_map); }
[[nodiscard]] MLX_FORCEINLINE VkBuffer Get() const noexcept { return m_buffer; }
[[nodiscard]] MLX_FORCEINLINE VmaAllocation GetAllocation() const noexcept { return m_allocation; }
[[nodiscard]] MLX_FORCEINLINE VkDeviceSize GetSize() const noexcept { return m_size; }

View File

@@ -98,7 +98,6 @@ namespace mlx
void OpenCPUBuffer();
private:
std::vector<mlx_color> m_cpu_buffer;
std::optional<GPUBuffer> m_staging_buffer;
bool m_has_been_modified = false;
};