Skip to content

Commit 38d3d1d

Browse files
authored
Extend function call tests with Sampler commands. (KhronosGroup#2516)
1 parent c348814 commit 38d3d1d

2 files changed

Lines changed: 49 additions & 0 deletions

File tree

tests/FunctionCalls/FunctionCalls.cpp

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1394,6 +1394,43 @@ int main()
13941394
device.destroy( pipelineLayout );
13951395
}
13961396

1397+
// Sampler commands
1398+
{
1399+
vk::Device device;
1400+
vk::SamplerCreateInfo samplerCreateInfo;
1401+
vk::AllocationCallbacks allocationCallbacks;
1402+
vk::Sampler sampler;
1403+
vk::Result result = device.createSampler( &samplerCreateInfo, &allocationCallbacks, &sampler );
1404+
}
1405+
{
1406+
vk::Device device;
1407+
vk::SamplerCreateInfo samplerCreateInfo;
1408+
vk::Sampler sampler = device.createSampler( samplerCreateInfo );
1409+
}
1410+
1411+
{
1412+
vk::Device device;
1413+
vk::Sampler sampler;
1414+
vk::AllocationCallbacks allocationCallbacks;
1415+
device.destroySampler( sampler, &allocationCallbacks );
1416+
}
1417+
{
1418+
vk::Device device;
1419+
vk::Sampler sampler;
1420+
device.destroySampler( sampler );
1421+
}
1422+
{
1423+
vk::Device device;
1424+
vk::Sampler sampler;
1425+
vk::AllocationCallbacks allocationCallbacks;
1426+
device.destroy( sampler, &allocationCallbacks );
1427+
}
1428+
{
1429+
vk::Device device;
1430+
vk::Sampler sampler;
1431+
device.destroy( sampler );
1432+
}
1433+
13971434
#if 0
13981435
{
13991436
vk::PhysicalDevice physicalDevice;

tests/FunctionCallsRAII/FunctionCallsRAII.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,5 +648,17 @@ int main()
648648
vk::raii::PipelineLayout pipelineLayout( device, pipelineLayoutCreateInfo );
649649
}
650650

651+
// Sampler commands
652+
{
653+
vk::raii::Device device = nullptr;
654+
vk::SamplerCreateInfo samplerCreateInfo;
655+
vk::raii::Sampler sampler = device.createSampler( samplerCreateInfo );
656+
}
657+
{
658+
vk::raii::Device device = nullptr;
659+
vk::SamplerCreateInfo samplerCreateInfo;
660+
vk::raii::Sampler sampler( device, samplerCreateInfo );
661+
}
662+
651663
return 0;
652664
}

0 commit comments

Comments
 (0)