Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
prism/engine/gfx/dummy/src/gfx_dummy.cpp
Joshua Goins ca57de8f99 Support GFX dummy a little better
There's now more checks to prevent crashing when the
mapped buffer is actually null, like when running with the dummy
backend.
2022-02-21 12:09:14 -05:00

19 lines
No EOL
367 B
C++
Executable file

#include "gfx_dummy.hpp"
#include "gfx_commandbuffer.hpp"
bool GFXDummy::is_supported() {
return true;
}
const char* GFXDummy::get_name() {
return "Dummy";
}
bool GFXDummy::initialize(const GFXCreateInfo& createInfo) {
return true;
}
GFXCommandBuffer* GFXDummy::acquire_command_buffer(bool for_presentation_use) {
return new GFXCommandBuffer();
}