Skip to content

Commit e0f4656

Browse files
authored
Extent function call tests with Device commands. (KhronosGroup#2297)
1 parent f522d73 commit e0f4656

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

tests/FunctionCalls/FunctionCalls.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,24 @@ int main( int /*argc*/, char ** /*argv*/ )
169169
PFN_vkVoidFunction voidFunction = device.getProcAddr( name );
170170
}
171171

172+
// Device commands
173+
{
174+
vk::PhysicalDevice physicalDevice;
175+
vk::DeviceCreateInfo deviceCreateInfo;
176+
vk::Device device;
177+
vk::Result result = physicalDevice.createDevice( &deviceCreateInfo, nullptr, &device );
178+
}
179+
{
180+
vk::PhysicalDevice physicalDevice;
181+
vk::DeviceCreateInfo deviceCreateInfo;
182+
vk::Device device = physicalDevice.createDevice( deviceCreateInfo );
183+
}
184+
185+
{
186+
vk::Device device;
187+
device.destroy();
188+
}
189+
172190
#if 0
173191
{
174192
vk::PhysicalDevice physicalDevice;

tests/FunctionCallsRAII/FunctionCallsRAII.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,12 @@ int main( int /*argc*/, char ** /*argv*/ )
9999
vk::PFN_VoidFunction voidFunction = device.getProcAddr( "vkCreateInstance" );
100100
}
101101

102+
// Device commands
103+
{
104+
vk::raii::PhysicalDevice physicalDevice = nullptr;
105+
vk::DeviceCreateInfo deviceCreateInfo;
106+
vk::raii::Device device = physicalDevice.createDevice( deviceCreateInfo );
107+
}
108+
102109
return 0;
103110
}

0 commit comments

Comments
 (0)