mirror of
https://gitee.com/openharmony/third_party_vulkan-loader
synced 2025-01-27 18:42:09 +00:00
tests: Update xgldevice class with more xgl functions
This commit is contained in:
parent
3a6e63d11f
commit
3523894f59
@ -75,10 +75,11 @@ void XglDevice::init_formats()
|
||||
}
|
||||
}
|
||||
|
||||
void XglDevice::get_device_queue()
|
||||
|
||||
void XglDevice::get_device_queue(XGL_QUEUE_TYPE queue_type, XGL_UINT queue_idx)
|
||||
{
|
||||
XGL_RESULT err;
|
||||
|
||||
err = xglGetDeviceQueue(this->device(), XGL_QUEUE_TYPE_GRAPHICS, 0, &this->m_queue);
|
||||
err = xglGetDeviceQueue(this->device(), queue_type, queue_idx, &this->m_queue);
|
||||
ASSERT_XGL_SUCCESS(err) << "xglGetDeviceQueue failed";
|
||||
}
|
||||
|
@ -11,7 +11,9 @@ public:
|
||||
XGL_DEVICE device() {return this->m_xgl_device_object;}
|
||||
void init_formats();
|
||||
void init_device();
|
||||
void get_device_queue();
|
||||
void get_device_queue(XGL_QUEUE_TYPE queue_type,
|
||||
XGL_UINT queue_idx);
|
||||
void get_device_queue() {get_device_queue();}
|
||||
|
||||
private:
|
||||
XGL_DEVICE m_xgl_device_object;
|
||||
|
Loading…
x
Reference in New Issue
Block a user