File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments