mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
first draft of vulkan buffer implementation
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "Graphics.h"
|
||||
#include "Buffer.h"
|
||||
#include "SDL_vulkan.h"
|
||||
#include "window/Window.h"
|
||||
#include "common/Exception.h"
|
||||
@@ -90,6 +91,10 @@ namespace love {
|
||||
cleanup();
|
||||
}
|
||||
|
||||
love::graphics::Buffer* Graphics::newBuffer(const love::graphics::Buffer::Settings& settings, const std::vector<love::graphics::Buffer::DataDeclaration>& format, const void* data, size_t size, size_t arraylength) {
|
||||
return new Buffer(this, settings, format, data, size, arraylength);
|
||||
}
|
||||
|
||||
void Graphics::present(void* screenshotCallbackdata) {
|
||||
vkWaitForFences(device, 1, &inFlightFences[currentFrame], VK_TRUE, UINT64_MAX);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user