flip the viewport in vulkan so that top is on the top
This commit is contained in:
@@ -89,6 +89,8 @@ typedef struct gnDeviceFunctions_t {
|
||||
|
||||
gnReturnCode (*_gnSubmit)(struct gnOutputDevice_t* device, struct gnSubmitInfo_t submit);
|
||||
gnReturnCode (*_gnPresent)(struct gnOutputDevice_t* device, struct gnPresentInfo_t info);
|
||||
|
||||
void (*_gnWaitForDevice)(struct gnOutputDevice_t* device);
|
||||
} gnDeviceFunctions;
|
||||
|
||||
typedef struct gnCommandFunctions_t {
|
||||
|
@@ -91,6 +91,7 @@ void gnLoadDeviceFunctions(struct gnDynamicLibrary_t* lib, struct gnDeviceFuncti
|
||||
gnLoadDLLFunction(lib, functions->_gnDestroyFence, "gnDestroyFenceFn");
|
||||
gnLoadDLLFunction(lib, functions->_gnSubmit, "gnSubmitFn");
|
||||
gnLoadDLLFunction(lib, functions->_gnPresent, "gnPresentFn");
|
||||
gnLoadDLLFunction(lib, functions->_gnWaitForDevice, "gnWaitForDeviceFn");
|
||||
}
|
||||
|
||||
void gnLoadCommandFunctions(struct gnDynamicLibrary_t* lib, struct gnCommandFunctions_t* functions) {
|
||||
|
@@ -17,6 +17,9 @@ gnReturnCode gnCreateOutputDevice(gnOutputDevice* outputDevice, gnInstance* inst
|
||||
outputDevice->deviceInfo = deviceInfo;
|
||||
return instance->functions->_gnCreateOutputDevoce(outputDevice, instance, deviceInfo);
|
||||
}
|
||||
void gnWaitForDevice(gnOutputDevice *device) {
|
||||
device->deviceFunctions->_gnWaitForDevice(device);
|
||||
}
|
||||
void gnDestroyOutputDevice(gnOutputDevice* device) {
|
||||
device->instance->functions->_gnDestroyOutputDevice(device);
|
||||
}
|
||||
|
@@ -26,6 +26,5 @@ typedef struct gnOutputDevice_t {
|
||||
} gnOutputDevice;
|
||||
|
||||
gnReturnCode gnCreateOutputDevice(gnOutputDevice* outputDevice, gnInstance* instance, struct gnOutputDeviceInfo_t deviceInfo);
|
||||
void gnWaitForDevice(gnOutputDevice* device);
|
||||
void gnDestroyOutputDevice(gnOutputDevice* device);
|
||||
|
||||
// inline void (*gnWaitForDevice)(const gnOutputDevice& device);
|
||||
|
Reference in New Issue
Block a user