Fixing some semaphore things
This commit is contained in:
@@ -142,7 +142,9 @@ Graphics::~Graphics() {
|
||||
|
||||
void Graphics::init(GraphicsInitializer initInfo) {
|
||||
initInstance(initInfo);
|
||||
//setupDebugCallback();
|
||||
#ifdef ENABLE_VALIDATION
|
||||
setupDebugCallback();
|
||||
#endif
|
||||
pickPhysicalDevice();
|
||||
createDevice(initInfo);
|
||||
VmaAllocatorCreateInfo createInfo = {
|
||||
@@ -197,6 +199,12 @@ void Graphics::waitDeviceIdle() {
|
||||
getGraphicsCommands()->refreshCommands();
|
||||
}
|
||||
|
||||
void Graphics::executeCommands(Gfx::ORenderCommand commands) {
|
||||
Array<Gfx::ORenderCommand> commandArray;
|
||||
commandArray.add(std::move(commands));
|
||||
getGraphicsCommands()->getCommands()->executeCommands(std::move(commandArray));
|
||||
}
|
||||
|
||||
void Graphics::executeCommands(Array<Gfx::ORenderCommand> commands) {
|
||||
getGraphicsCommands()->getCommands()->executeCommands(std::move(commands));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user