2019-10-28 14:36:21 +00:00
|
|
|
// Copyright(c) 2019, NVIDIA CORPORATION. All rights reserved.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
// you may not use this file except in compliance with the License.
|
|
|
|
// You may obtain a copy of the License at
|
|
|
|
//
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
//
|
|
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
// See the License for the specific language governing permissions and
|
|
|
|
// limitations under the License.
|
|
|
|
//
|
|
|
|
// VulkanHpp Samples : PhysicalDeviceFeatures
|
|
|
|
// Get the fine-grained features of the physical devices that can be supported by an implementation.
|
|
|
|
|
|
|
|
#include "../utils/utils.hpp"
|
|
|
|
#include "vulkan/vulkan.hpp"
|
2020-04-12 19:49:12 +00:00
|
|
|
|
2019-10-28 14:36:21 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
static char const * AppName = "PhysicalDeviceFeatures";
|
|
|
|
static char const * EngineName = "Vulkan.hpp";
|
2019-10-28 14:36:21 +00:00
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
int main( int /*argc*/, char ** /*argv*/ )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
|
|
|
try
|
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::UniqueInstance instance = vk::su::createInstance( AppName, EngineName );
|
|
|
|
#if !defined( NDEBUG )
|
|
|
|
vk::UniqueDebugUtilsMessengerEXT debugUtilsMessenger = vk::su::createDebugUtilsMessenger( instance );
|
2019-10-28 14:36:21 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// enumerate the physicalDevices
|
|
|
|
std::vector<vk::PhysicalDevice> physicalDevices = instance->enumeratePhysicalDevices();
|
|
|
|
|
|
|
|
/* VULKAN_KEY_START */
|
|
|
|
|
|
|
|
std::cout << std::boolalpha;
|
2020-04-12 19:49:12 +00:00
|
|
|
for ( size_t i = 0; i < physicalDevices.size(); i++ )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
|
|
|
// some features are only valid, if a corresponding extension is available!
|
2020-04-12 19:49:12 +00:00
|
|
|
std::vector<vk::ExtensionProperties> extensionProperties =
|
|
|
|
physicalDevices[i].enumerateDeviceExtensionProperties();
|
2019-10-28 14:36:21 +00:00
|
|
|
|
|
|
|
std::cout << "PhysicalDevice " << i << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
auto features2 = physicalDevices[i]
|
|
|
|
.getFeatures2<vk::PhysicalDeviceFeatures2,
|
|
|
|
vk::PhysicalDevice16BitStorageFeatures,
|
|
|
|
vk::PhysicalDevice8BitStorageFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceASTCDecodeFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceBlendOperationAdvancedFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceBufferDeviceAddressFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceCoherentMemoryFeaturesAMD,
|
|
|
|
vk::PhysicalDeviceComputeShaderDerivativesFeaturesNV,
|
|
|
|
vk::PhysicalDeviceConditionalRenderingFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceCooperativeMatrixFeaturesNV,
|
|
|
|
vk::PhysicalDeviceCornerSampledImageFeaturesNV,
|
|
|
|
vk::PhysicalDeviceCoverageReductionModeFeaturesNV,
|
|
|
|
vk::PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV,
|
|
|
|
vk::PhysicalDeviceDepthClipEnableFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceDescriptorIndexingFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceExclusiveScissorFeaturesNV,
|
|
|
|
vk::PhysicalDeviceFragmentDensityMapFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceFragmentShaderBarycentricFeaturesNV,
|
|
|
|
vk::PhysicalDeviceFragmentShaderInterlockFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceHostQueryResetFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceImagelessFramebufferFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceIndexTypeUint8FeaturesEXT,
|
|
|
|
vk::PhysicalDeviceInlineUniformBlockFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceLineRasterizationFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceMemoryPriorityFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceMeshShaderFeaturesNV,
|
|
|
|
vk::PhysicalDeviceMultiviewFeatures,
|
|
|
|
vk::PhysicalDevicePipelineExecutablePropertiesFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceProtectedMemoryFeatures,
|
|
|
|
vk::PhysicalDeviceRepresentativeFragmentTestFeaturesNV,
|
|
|
|
vk::PhysicalDeviceSamplerYcbcrConversionFeatures,
|
|
|
|
vk::PhysicalDeviceScalarBlockLayoutFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceShaderAtomicInt64FeaturesKHR,
|
|
|
|
vk::PhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceShaderDrawParametersFeatures,
|
|
|
|
vk::PhysicalDeviceShaderFloat16Int8FeaturesKHR,
|
|
|
|
vk::PhysicalDeviceShaderImageFootprintFeaturesNV,
|
|
|
|
vk::PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL,
|
|
|
|
vk::PhysicalDeviceShaderSMBuiltinsFeaturesNV,
|
|
|
|
vk::PhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceShadingRateImageFeaturesNV,
|
|
|
|
vk::PhysicalDeviceSubgroupSizeControlFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceTexelBufferAlignmentFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceTextureCompressionASTCHDRFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceTransformFeedbackFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceUniformBufferStandardLayoutFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceVariablePointersFeatures,
|
|
|
|
vk::PhysicalDeviceVertexAttributeDivisorFeaturesEXT,
|
|
|
|
vk::PhysicalDeviceVulkanMemoryModelFeaturesKHR,
|
|
|
|
vk::PhysicalDeviceYcbcrImageArraysFeaturesEXT>();
|
|
|
|
vk::PhysicalDeviceFeatures const & features = features2.get<vk::PhysicalDeviceFeatures2>().features;
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\talphaToOne : " << static_cast<bool>( features.alphaToOne ) << "\n";
|
|
|
|
std::cout << "\t\tdepthBiasClamp : " << static_cast<bool>( features.depthBiasClamp )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdepthBounds : " << static_cast<bool>( features.depthBounds )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdepthClamp : " << static_cast<bool>( features.depthClamp ) << "\n";
|
|
|
|
std::cout << "\t\tdrawIndirectFirstInstance : "
|
|
|
|
<< static_cast<bool>( features.drawIndirectFirstInstance ) << "\n";
|
|
|
|
std::cout << "\t\tdualSrcBlend : " << static_cast<bool>( features.dualSrcBlend )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tfillModeNonSolid : " << static_cast<bool>( features.fillModeNonSolid )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tfragmentStoresAndAtomics : "
|
|
|
|
<< static_cast<bool>( features.fragmentStoresAndAtomics ) << "\n";
|
|
|
|
std::cout << "\t\tfullDrawIndexUint32 : " << static_cast<bool>( features.fullDrawIndexUint32 )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tgeometryShader : " << static_cast<bool>( features.geometryShader )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\timageCubeArray : " << static_cast<bool>( features.imageCubeArray )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tindependentBlend : " << static_cast<bool>( features.independentBlend )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tinheritedQueries : " << static_cast<bool>( features.inheritedQueries )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tlargePoints : " << static_cast<bool>( features.largePoints )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tlogicOp : " << static_cast<bool>( features.logicOp ) << "\n";
|
|
|
|
std::cout << "\t\tmultiDrawIndirect : " << static_cast<bool>( features.multiDrawIndirect )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tmultiViewport : " << static_cast<bool>( features.multiViewport )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tocclusionQueryPrecise : "
|
|
|
|
<< static_cast<bool>( features.occlusionQueryPrecise ) << "\n";
|
|
|
|
std::cout << "\t\tpipelineStatisticsQuery : "
|
|
|
|
<< static_cast<bool>( features.pipelineStatisticsQuery ) << "\n";
|
|
|
|
std::cout << "\t\trobustBufferAccess : " << static_cast<bool>( features.robustBufferAccess )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tsamplerAnisotropy : " << static_cast<bool>( features.samplerAnisotropy )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tsampleRateShading : " << static_cast<bool>( features.sampleRateShading )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderClipDistance : " << static_cast<bool>( features.shaderClipDistance )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderCullDistance : " << static_cast<bool>( features.shaderCullDistance )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderFloat64 : " << static_cast<bool>( features.shaderFloat64 )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderImageGatherExtended : "
|
|
|
|
<< static_cast<bool>( features.shaderImageGatherExtended ) << "\n";
|
|
|
|
std::cout << "\t\tshaderInt16 : " << static_cast<bool>( features.shaderInt16 )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderInt64 : " << static_cast<bool>( features.shaderInt64 )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderResourceMinLod : "
|
|
|
|
<< static_cast<bool>( features.shaderResourceMinLod ) << "\n";
|
|
|
|
std::cout << "\t\tshaderResourceResidency : "
|
|
|
|
<< static_cast<bool>( features.shaderResourceResidency ) << "\n";
|
|
|
|
std::cout << "\t\tshaderSampledImageArrayDynamicIndexing : "
|
|
|
|
<< static_cast<bool>( features.shaderSampledImageArrayDynamicIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageBufferArrayDynamicIndexing : "
|
|
|
|
<< static_cast<bool>( features.shaderStorageBufferArrayDynamicIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageArrayDynamicIndexing : "
|
|
|
|
<< static_cast<bool>( features.shaderStorageImageArrayDynamicIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageExtendedFormats : "
|
|
|
|
<< static_cast<bool>( features.shaderStorageImageExtendedFormats ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageMultisample : "
|
|
|
|
<< static_cast<bool>( features.shaderStorageImageMultisample ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageReadWithoutFormat : "
|
|
|
|
<< static_cast<bool>( features.shaderStorageImageReadWithoutFormat ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageWriteWithoutFormat : "
|
|
|
|
<< static_cast<bool>( features.shaderStorageImageWriteWithoutFormat ) << "\n";
|
|
|
|
std::cout << "\t\tshaderTessellationAndGeometryPointSize : "
|
|
|
|
<< static_cast<bool>( features.shaderTessellationAndGeometryPointSize ) << "\n";
|
|
|
|
std::cout << "\t\tshaderUniformBufferArrayDynamicIndexing : "
|
|
|
|
<< static_cast<bool>( features.shaderUniformBufferArrayDynamicIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tsparseBinding : " << static_cast<bool>( features.sparseBinding )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tsparseResidency16Samples : "
|
|
|
|
<< static_cast<bool>( features.sparseResidency16Samples ) << "\n";
|
|
|
|
std::cout << "\t\tsparseResidency2Samples : "
|
|
|
|
<< static_cast<bool>( features.sparseResidency2Samples ) << "\n";
|
|
|
|
std::cout << "\t\tsparseResidency4Samples : "
|
|
|
|
<< static_cast<bool>( features.sparseResidency4Samples ) << "\n";
|
|
|
|
std::cout << "\t\tsparseResidency8Samples : "
|
|
|
|
<< static_cast<bool>( features.sparseResidency8Samples ) << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyAliased : "
|
|
|
|
<< static_cast<bool>( features.sparseResidencyAliased ) << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyBuffer : "
|
|
|
|
<< static_cast<bool>( features.sparseResidencyBuffer ) << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyImage2D : "
|
|
|
|
<< static_cast<bool>( features.sparseResidencyImage2D ) << "\n";
|
|
|
|
std::cout << "\t\tsparseResidencyImage3D : "
|
|
|
|
<< static_cast<bool>( features.sparseResidencyImage3D ) << "\n";
|
|
|
|
std::cout << "\t\ttessellationShader : " << static_cast<bool>( features.tessellationShader )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\ttextureCompressionASTC_LDR : "
|
|
|
|
<< static_cast<bool>( features.textureCompressionASTC_LDR ) << "\n";
|
|
|
|
std::cout << "\t\ttextureCompressionBC : "
|
|
|
|
<< static_cast<bool>( features.textureCompressionBC ) << "\n";
|
|
|
|
std::cout << "\t\ttextureCompressionETC2 : "
|
|
|
|
<< static_cast<bool>( features.textureCompressionETC2 ) << "\n";
|
|
|
|
std::cout << "\t\tvariableMultisampleRate : "
|
|
|
|
<< static_cast<bool>( features.variableMultisampleRate ) << "\n";
|
|
|
|
std::cout << "\t\tvertexPipelineStoresAndAtomics : "
|
|
|
|
<< static_cast<bool>( features.vertexPipelineStoresAndAtomics ) << "\n";
|
|
|
|
std::cout << "\t\twideLines : " << static_cast<bool>( features.wideLines ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDevice16BitStorageFeatures const & sixteenBitStorageFeatures =
|
|
|
|
features2.get<vk::PhysicalDevice16BitStorageFeatures>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\t16BitStorageFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tstorageBuffer16BitAccess : "
|
|
|
|
<< static_cast<bool>( sixteenBitStorageFeatures.storageBuffer16BitAccess ) << "\n";
|
|
|
|
std::cout << "\t\tstorageInputOutput16 : "
|
|
|
|
<< static_cast<bool>( sixteenBitStorageFeatures.storageInputOutput16 ) << "\n";
|
|
|
|
std::cout << "\t\tstoragePushConstant16 : "
|
|
|
|
<< static_cast<bool>( sixteenBitStorageFeatures.storagePushConstant16 ) << "\n";
|
|
|
|
std::cout << "\t\tuniformAndStorageBuffer16BitAccess : "
|
|
|
|
<< static_cast<bool>( sixteenBitStorageFeatures.uniformAndStorageBuffer16BitAccess ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_8bit_storage" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDevice8BitStorageFeaturesKHR const & eightBitStorageFeatures =
|
|
|
|
features2.get<vk::PhysicalDevice8BitStorageFeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\t8BitStorageFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tstorageBuffer8BitAccess : "
|
|
|
|
<< static_cast<bool>( eightBitStorageFeatures.storageBuffer8BitAccess ) << "\n";
|
|
|
|
std::cout << "\t\tstoragePushConstant8 : "
|
|
|
|
<< static_cast<bool>( eightBitStorageFeatures.storagePushConstant8 ) << "\n";
|
|
|
|
std::cout << "\t\tuniformAndStorageBuffer8BitAccess : "
|
|
|
|
<< static_cast<bool>( eightBitStorageFeatures.uniformAndStorageBuffer8BitAccess ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_astc_decode_mode" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceASTCDecodeFeaturesEXT const & astcDecodeFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceASTCDecodeFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tASTCDecodeFeature:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdecodeModeSharedExponent : "
|
|
|
|
<< static_cast<bool>( astcDecodeFeatures.decodeModeSharedExponent ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_blend_operation_advanced" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceBlendOperationAdvancedFeaturesEXT const & blendOperationAdvancedFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceBlendOperationAdvancedFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tBlendOperationAdvancedFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tadvancedBlendCoherentOperations : "
|
|
|
|
<< static_cast<bool>( blendOperationAdvancedFeatures.advancedBlendCoherentOperations ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_buffer_device_address" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceBufferDeviceAddressFeaturesEXT const & bufferDeviceAddressFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceBufferDeviceAddressFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tBufferDeviceAddressFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tbufferDeviceAddress : "
|
|
|
|
<< static_cast<bool>( bufferDeviceAddressFeatures.bufferDeviceAddress ) << "\n";
|
|
|
|
std::cout << "\t\tbufferDeviceAddressCaptureReplay : "
|
|
|
|
<< static_cast<bool>( bufferDeviceAddressFeatures.bufferDeviceAddressCaptureReplay ) << "\n";
|
|
|
|
std::cout << "\t\tbufferDeviceAddressMultiDevice : "
|
|
|
|
<< static_cast<bool>( bufferDeviceAddressFeatures.bufferDeviceAddressMultiDevice ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_AMD_device_coherent_memory" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceCoherentMemoryFeaturesAMD const & coherentMemoryFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceCoherentMemoryFeaturesAMD>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tCoherentMemoryFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdeviceCoherentMemory : " << static_cast<bool>( coherentMemoryFeatures.deviceCoherentMemory )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_compute_shader_derivatives" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceComputeShaderDerivativesFeaturesNV const & computeShaderDerivativesFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceComputeShaderDerivativesFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tComputeShaderDerivativeFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tcomputeDerivativeGroupLinear : "
|
|
|
|
<< static_cast<bool>( computeShaderDerivativesFeatures.computeDerivativeGroupLinear ) << "\n";
|
|
|
|
std::cout << "\t\tcomputeDerivativeGroupQuads : "
|
|
|
|
<< static_cast<bool>( computeShaderDerivativesFeatures.computeDerivativeGroupQuads ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_conditional_rendering" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceConditionalRenderingFeaturesEXT const & conditionalRenderingFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceConditionalRenderingFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tConditionalRenderingFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tconditionalRendering : "
|
|
|
|
<< static_cast<bool>( conditionalRenderingFeatures.conditionalRendering ) << "\n";
|
|
|
|
std::cout << "\t\tinheritedConditionalRendering : "
|
|
|
|
<< static_cast<bool>( conditionalRenderingFeatures.inheritedConditionalRendering ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_cooperative_matrix" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceCooperativeMatrixFeaturesNV const & cooperativeMatrixFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceCooperativeMatrixFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tCooperativeMatrixFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tcooperativeMatrix : "
|
|
|
|
<< static_cast<bool>( cooperativeMatrixFeatures.cooperativeMatrix ) << "\n";
|
|
|
|
std::cout << "\t\tcooperativeMatrixRobustBufferAccess : "
|
|
|
|
<< static_cast<bool>( cooperativeMatrixFeatures.cooperativeMatrixRobustBufferAccess ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_corner_sampled_image" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceCornerSampledImageFeaturesNV const & cornerSampledImageFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceCornerSampledImageFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tCornerSampledImageFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tcornerSampledImage : " << static_cast<bool>( cornerSampledImageFeatures.cornerSampledImage )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_coverage_reduction_mode" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceCoverageReductionModeFeaturesNV const & coverageReductionModeFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceCoverageReductionModeFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tCoverageReductionModeFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tcoverageReductionMode : "
|
|
|
|
<< static_cast<bool>( coverageReductionModeFeatures.coverageReductionMode ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_dedicated_allocation_image_aliasing" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV const & dedicatedAllocationImageAliasingFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceDedicatedAllocationImageAliasingFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tDedicatedAllocationAliasingFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdedicatedAllocationImageAliasing : "
|
|
|
|
<< static_cast<bool>( dedicatedAllocationImageAliasingFeatures.dedicatedAllocationImageAliasing )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_depth_clip_enable" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceDepthClipEnableFeaturesEXT const & depthClipEnabledFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceDepthClipEnableFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tDepthClipEnabledFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdepthClipEnable : " << static_cast<bool>( depthClipEnabledFeatures.depthClipEnable ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_descriptor_indexing" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceDescriptorIndexingFeaturesEXT const & descriptorIndexingFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceDescriptorIndexingFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tDescriptorIndexingFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingPartiallyBound : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingPartiallyBound ) << "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingSampledImageUpdateAfterBind : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingSampledImageUpdateAfterBind )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageBufferUpdateAfterBind : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingStorageBufferUpdateAfterBind )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageImageUpdateAfterBind : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingStorageImageUpdateAfterBind )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageTexelBufferUpdateAfterBind : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingStorageTexelBufferUpdateAfterBind )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingUniformBufferUpdateAfterBind : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingUniformBufferUpdateAfterBind )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingUniformTexelBufferUpdateAfterBind : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingUniformTexelBufferUpdateAfterBind )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingUpdateUnusedWhilePending : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingUpdateUnusedWhilePending ) << "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingVariableDescriptorCount : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.descriptorBindingVariableDescriptorCount ) << "\n";
|
|
|
|
std::cout << "\t\truntimeDescriptorArray : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.runtimeDescriptorArray ) << "\n";
|
|
|
|
std::cout << "\t\tshaderInputAttachmentArrayDynamicIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderInputAttachmentArrayDynamicIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderInputAttachmentArrayNonUniformIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderInputAttachmentArrayNonUniformIndexing )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderSampledImageArrayNonUniformIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderSampledImageArrayNonUniformIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageBufferArrayNonUniformIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderStorageBufferArrayNonUniformIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageImageArrayNonUniformIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderStorageImageArrayNonUniformIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderStorageTexelBufferArrayDynamicIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderStorageTexelBufferArrayDynamicIndexing )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderStorageTexelBufferArrayNonUniformIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderStorageTexelBufferArrayNonUniformIndexing )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderUniformBufferArrayNonUniformIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderUniformBufferArrayNonUniformIndexing ) << "\n";
|
|
|
|
std::cout << "\t\tshaderUniformTexelBufferArrayDynamicIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderUniformTexelBufferArrayDynamicIndexing )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderUniformTexelBufferArrayNonUniformIndexing : "
|
|
|
|
<< static_cast<bool>( descriptorIndexingFeatures.shaderUniformTexelBufferArrayNonUniformIndexing )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_scissor_exclusive" ) )
|
|
|
|
{
|
|
|
|
vk::PhysicalDeviceExclusiveScissorFeaturesNV const & exclusiveScissorFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceExclusiveScissorFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tExclusiveScissorFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\texclusiveScissor : " << static_cast<bool>( exclusiveScissorFeatures.exclusiveScissor )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_fragment_density_map" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceFragmentDensityMapFeaturesEXT const & fragmentDensityMapFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceFragmentDensityMapFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tFragmentDensityMapFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tfragmentDensityMap : "
|
|
|
|
<< static_cast<bool>( fragmentDensityMapFeatures.fragmentDensityMap ) << "\n";
|
|
|
|
std::cout << "\t\tfragmentDensityMapDynamic : "
|
|
|
|
<< static_cast<bool>( fragmentDensityMapFeatures.fragmentDensityMapDynamic ) << "\n";
|
|
|
|
std::cout << "\t\tfragmentDensityMapNonSubsampledImages : "
|
|
|
|
<< static_cast<bool>( fragmentDensityMapFeatures.fragmentDensityMapNonSubsampledImages ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_fragment_shader_barycentric" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceFragmentShaderBarycentricFeaturesNV const & fragmentShaderBarycentricFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceFragmentShaderBarycentricFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tFragmentShaderBarycentricFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tfragmentShaderBarycentric : "
|
|
|
|
<< static_cast<bool>( fragmentShaderBarycentricFeatures.fragmentShaderBarycentric ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_fragment_shader_interlock" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceFragmentShaderInterlockFeaturesEXT const & fragmentShaderInterlockFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceFragmentShaderInterlockFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tFragmentShaderInterlockFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tfragmentShaderPixelInterlock : "
|
|
|
|
<< static_cast<bool>( fragmentShaderInterlockFeatures.fragmentShaderPixelInterlock ) << "\n";
|
|
|
|
std::cout << "\t\tfragmentShaderSampleInterlock : "
|
|
|
|
<< static_cast<bool>( fragmentShaderInterlockFeatures.fragmentShaderSampleInterlock ) << "\n";
|
|
|
|
std::cout << "\t\tfragmentShaderShadingRateInterlock : "
|
|
|
|
<< static_cast<bool>( fragmentShaderInterlockFeatures.fragmentShaderShadingRateInterlock ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_host_query_reset" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceHostQueryResetFeaturesEXT const & hostQueryResetFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceHostQueryResetFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tHostQueryResetFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\thostQueryReset : " << static_cast<bool>( hostQueryResetFeatures.hostQueryReset ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_imageless_framebuffer" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceImagelessFramebufferFeaturesKHR const & imagelessFramebufferFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceImagelessFramebufferFeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tImagelessFramebufferFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\timagelessFramebuffer : "
|
|
|
|
<< static_cast<bool>( imagelessFramebufferFeatures.imagelessFramebuffer ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_index_type_uint8" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceIndexTypeUint8FeaturesEXT const & indexTypeUint8Features =
|
|
|
|
features2.get<vk::PhysicalDeviceIndexTypeUint8FeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tIndexTypeUint8Features:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tindexTypeUint8 : " << static_cast<bool>( indexTypeUint8Features.indexTypeUint8 ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_inline_uniform_block" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceInlineUniformBlockFeaturesEXT const & inlineUniformBlockFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceInlineUniformBlockFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tInlineUniformBlockFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingInlineUniformBlockUpdateAfterBind : "
|
|
|
|
<< static_cast<bool>( inlineUniformBlockFeatures.descriptorBindingInlineUniformBlockUpdateAfterBind )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tinlineUniformBlock : "
|
|
|
|
<< static_cast<bool>( inlineUniformBlockFeatures.inlineUniformBlock ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_line_rasterization" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceLineRasterizationFeaturesEXT const & lineRasterizationFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceLineRasterizationFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tLineRasterizationFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tbresenhamLines : " << static_cast<bool>( lineRasterizationFeatures.bresenhamLines )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\trectangularLines : "
|
|
|
|
<< static_cast<bool>( lineRasterizationFeatures.rectangularLines ) << "\n";
|
|
|
|
std::cout << "\t\tsmoothLines : " << static_cast<bool>( lineRasterizationFeatures.smoothLines )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tstippledBresenhamLines : "
|
|
|
|
<< static_cast<bool>( lineRasterizationFeatures.stippledBresenhamLines ) << "\n";
|
|
|
|
std::cout << "\t\tstippledRectangularLines : "
|
|
|
|
<< static_cast<bool>( lineRasterizationFeatures.stippledRectangularLines ) << "\n";
|
|
|
|
std::cout << "\t\tstippledSmoothLines : "
|
|
|
|
<< static_cast<bool>( lineRasterizationFeatures.stippledSmoothLines ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_memory_priority" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceMemoryPriorityFeaturesEXT const & memoryPriorityFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceMemoryPriorityFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tMemoryPriorityFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tmemoryPriority : " << static_cast<bool>( memoryPriorityFeatures.memoryPriority ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_mesh_shader" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceMeshShaderFeaturesNV const & meshShaderFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceMeshShaderFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tMeshShaderFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tmeshShader : " << static_cast<bool>( meshShaderFeatures.meshShader ) << "\n";
|
|
|
|
std::cout << "\t\ttaskShader : " << static_cast<bool>( meshShaderFeatures.taskShader ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceMultiviewFeatures const & multiviewFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceMultiviewFeatures>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tMultiviewFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tmultiview : " << static_cast<bool>( multiviewFeatures.multiview ) << "\n";
|
|
|
|
std::cout << "\t\tmultiviewGeometryShader : "
|
|
|
|
<< static_cast<bool>( multiviewFeatures.multiviewGeometryShader ) << "\n";
|
|
|
|
std::cout << "\t\tmultiviewTessellationShader : "
|
|
|
|
<< static_cast<bool>( multiviewFeatures.multiviewTessellationShader ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_pipeline_executable_properties" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDevicePipelineExecutablePropertiesFeaturesKHR const & pipelineExecutablePropertiesFeatures =
|
|
|
|
features2.get<vk::PhysicalDevicePipelineExecutablePropertiesFeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tPipelineExectuablePropertiesFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tpipelineExecutableInfo : "
|
|
|
|
<< static_cast<bool>( pipelineExecutablePropertiesFeatures.pipelineExecutableInfo ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceProtectedMemoryFeatures const & protectedMemoryFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceProtectedMemoryFeatures>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tProtectedMemoryFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tprotectedMemory : " << static_cast<bool>( protectedMemoryFeatures.protectedMemory ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_representative_fragment_test" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceRepresentativeFragmentTestFeaturesNV const & representativeFragmentTestFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceRepresentativeFragmentTestFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tRepresentativeFragmentTestFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\trepresentativeFragmentTest : "
|
|
|
|
<< static_cast<bool>( representativeFragmentTestFeatures.representativeFragmentTest ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceSamplerYcbcrConversionFeatures const & samplerYcbcrConversionFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceSamplerYcbcrConversionFeatures>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tSamplerYcbcrConversionFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsamplerYcbcrConversion : "
|
|
|
|
<< static_cast<bool>( samplerYcbcrConversionFeatures.samplerYcbcrConversion ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_scalar_block_layout" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceScalarBlockLayoutFeaturesEXT const & scalarBlockLayoutFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceScalarBlockLayoutFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tScalarBlockLayoutFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tscalarBlockLayout : " << static_cast<bool>( scalarBlockLayoutFeatures.scalarBlockLayout )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_shader_atomic_int64" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderAtomicInt64FeaturesKHR const & shaderAtomicInt64Features =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderAtomicInt64FeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderAtomicInt64Features:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderBufferInt64Atomics : "
|
|
|
|
<< static_cast<bool>( shaderAtomicInt64Features.shaderBufferInt64Atomics ) << "\n";
|
|
|
|
std::cout << "\t\tshaderSharedInt64Atomics : "
|
|
|
|
<< static_cast<bool>( shaderAtomicInt64Features.shaderSharedInt64Atomics ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_shader_demote_to_helper_invocation" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT const & shaderDemoteToHelperInvocationFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderDemoteToHelperInvocationFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderDemoteToHelperInvocationFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderDemoteToHelperInvocation : "
|
|
|
|
<< static_cast<bool>( shaderDemoteToHelperInvocationFeatures.shaderDemoteToHelperInvocation ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderDrawParametersFeatures const & shaderDrawParametersFeature =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderDrawParametersFeatures>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderDrawParametersFeature:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderDrawParameters : "
|
|
|
|
<< static_cast<bool>( shaderDrawParametersFeature.shaderDrawParameters ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_shader_float16_int8" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderFloat16Int8FeaturesKHR const & shaderFloat16Int8Features =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderFloat16Int8FeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderFloat16Int8Features:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderFloat16 : " << static_cast<bool>( shaderFloat16Int8Features.shaderFloat16 ) << "\n";
|
|
|
|
std::cout << "\t\tshaderInt8 : " << static_cast<bool>( shaderFloat16Int8Features.shaderInt8 ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_shader_image_footprint" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderImageFootprintFeaturesNV const & shaderImageFootprintFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderImageFootprintFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderImageFootprintFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\timageFootprint : " << static_cast<bool>( shaderImageFootprintFeatures.imageFootprint )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_INTEL_shader_integer_functions2" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL const & shaderIntegerFunctions2Features =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderIntegerFunctions2FeaturesINTEL>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderIntegerFunctions2Features:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderIntegerFunctions2 : "
|
|
|
|
<< static_cast<bool>( shaderIntegerFunctions2Features.shaderIntegerFunctions2 ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_shader_sm_builtins" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderSMBuiltinsFeaturesNV const & shaderSMBuiltinsFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderSMBuiltinsFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderSMBuiltinsFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderSMBuiltins : " << static_cast<bool>( shaderSMBuiltinsFeatures.shaderSMBuiltins )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_shader_subgroup_extended_types" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR const & shaderSubgroupExtendedTypesFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShaderSubgroupExtendedTypesFeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShaderSubgroupExtendedTypeFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderSubgroupExtendedTypes : "
|
|
|
|
<< static_cast<bool>( shaderSubgroupExtendedTypesFeatures.shaderSubgroupExtendedTypes ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_NV_shading_rate_image" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceShadingRateImageFeaturesNV const & shadingRateImageFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceShadingRateImageFeaturesNV>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tShadingRateImageFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshadingRateCoarseSampleOrder : "
|
|
|
|
<< static_cast<bool>( shadingRateImageFeatures.shadingRateCoarseSampleOrder ) << "\n";
|
|
|
|
std::cout << "\t\tshadingRateImage : "
|
|
|
|
<< static_cast<bool>( shadingRateImageFeatures.shadingRateImage ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_subgroup_size_control" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceSubgroupSizeControlFeaturesEXT const & subgroupSizeControlFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceSubgroupSizeControlFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tSubgroupSizeControlFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tcomputeFullSubgroups : "
|
|
|
|
<< static_cast<bool>( subgroupSizeControlFeatures.computeFullSubgroups ) << "\n";
|
|
|
|
std::cout << "\t\tsubgroupSizeControl : "
|
|
|
|
<< static_cast<bool>( subgroupSizeControlFeatures.subgroupSizeControl ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_texel_buffer_alignment" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceTexelBufferAlignmentFeaturesEXT const & texelBufferAlignmentFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceTexelBufferAlignmentFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tTexelBufferAlignmentFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\ttexelBufferAlignment : "
|
|
|
|
<< static_cast<bool>( texelBufferAlignmentFeatures.texelBufferAlignment ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_texture_compression_astc_hdr" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceTextureCompressionASTCHDRFeaturesEXT const & textureCompressionASTCHDRFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceTextureCompressionASTCHDRFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tTextureCompressionASTCHHRFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\ttextureCompressionASTC_HDR : "
|
|
|
|
<< static_cast<bool>( textureCompressionASTCHDRFeatures.textureCompressionASTC_HDR ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_timeline_semaphore" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR const & timelineSemaphoreFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceTimelineSemaphoreFeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tTimelineSemaphoreFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\ttimelineSemaphore :" << static_cast<bool>( timelineSemaphoreFeatures.timelineSemaphore )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_transform_feedback" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceTransformFeedbackFeaturesEXT const & transformFeedbackFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceTransformFeedbackFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tTransformFeedbackFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tgeometryStreams : " << static_cast<bool>( transformFeedbackFeatures.geometryStreams ) << "\n";
|
|
|
|
std::cout << "\t\ttransformFeedback : " << static_cast<bool>( transformFeedbackFeatures.transformFeedback )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_uniform_buffer_standard_layout" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceUniformBufferStandardLayoutFeaturesKHR const & uniformBufferStandardLayoutFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceUniformBufferStandardLayoutFeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tUniformBufferStandardLayoutFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tuniformBufferStandardLayout : "
|
|
|
|
<< static_cast<bool>( uniformBufferStandardLayoutFeatures.uniformBufferStandardLayout ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_variable_pointers" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceVariablePointersFeatures const & variablePointersFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceVariablePointersFeatures>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tVariablePointersFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvariablePointers : "
|
|
|
|
<< static_cast<bool>( variablePointersFeatures.variablePointers ) << "\n";
|
|
|
|
std::cout << "\t\tvariablePointersStorageBuffer : "
|
|
|
|
<< static_cast<bool>( variablePointersFeatures.variablePointersStorageBuffer ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_EXT_vertex_attribute_divisor" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceVertexAttributeDivisorFeaturesEXT const & vertexAttributeDivisorFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceVertexAttributeDivisorFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tVertexAttributeDivisorFeature:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvertexAttributeInstanceRateDivisor : "
|
|
|
|
<< static_cast<bool>( vertexAttributeDivisorFeatures.vertexAttributeInstanceRateDivisor ) << "\n";
|
|
|
|
std::cout << "\t\tvertexAttributeInstanceRateZeroDivisor : "
|
|
|
|
<< static_cast<bool>( vertexAttributeDivisorFeatures.vertexAttributeInstanceRateZeroDivisor ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_vulkan_memory_model" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceVulkanMemoryModelFeaturesKHR const & vulkanMemoryModelFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceVulkanMemoryModelFeaturesKHR>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tVulkanMemoryModelFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvulkanMemoryModel : "
|
|
|
|
<< static_cast<bool>( vulkanMemoryModelFeatures.vulkanMemoryModel ) << "\n";
|
|
|
|
std::cout << "\t\tvulkanMemoryModelAvailabilityVisibilityChains : "
|
|
|
|
<< static_cast<bool>( vulkanMemoryModelFeatures.vulkanMemoryModelAvailabilityVisibilityChains )
|
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tvulkanMemoryModelDeviceScope : "
|
|
|
|
<< static_cast<bool>( vulkanMemoryModelFeatures.vulkanMemoryModelDeviceScope ) << "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
|
2020-04-12 19:49:12 +00:00
|
|
|
if ( vk::su::contains( extensionProperties, "VK_KHR_sampler_ycbcr_conversion" ) )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-04-12 19:49:12 +00:00
|
|
|
vk::PhysicalDeviceYcbcrImageArraysFeaturesEXT const & ycbcrImageArraysFeatures =
|
|
|
|
features2.get<vk::PhysicalDeviceYcbcrImageArraysFeaturesEXT>();
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\tYcbcrImageArraysFeatures:\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tycbcrImageArrays : " << static_cast<bool>( ycbcrImageArraysFeatures.ycbcrImageArrays )
|
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* VULKAN_KEY_END */
|
|
|
|
}
|
2020-04-12 19:49:12 +00:00
|
|
|
catch ( vk::SystemError & err )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
|
|
|
std::cout << "vk::SystemError: " << err.what() << std::endl;
|
2020-04-12 19:49:12 +00:00
|
|
|
exit( -1 );
|
2019-10-28 14:36:21 +00:00
|
|
|
}
|
2020-07-08 08:58:37 +00:00
|
|
|
catch ( std::exception & err )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
2020-07-08 08:58:37 +00:00
|
|
|
std::cout << "std::exception: " << err.what() << std::endl;
|
2020-04-12 19:49:12 +00:00
|
|
|
exit( -1 );
|
2019-10-28 14:36:21 +00:00
|
|
|
}
|
2020-04-12 19:49:12 +00:00
|
|
|
catch ( ... )
|
2019-10-28 14:36:21 +00:00
|
|
|
{
|
|
|
|
std::cout << "unknown error\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
exit( -1 );
|
2019-10-28 14:36:21 +00:00
|
|
|
}
|
2020-04-12 19:49:12 +00:00
|
|
|
return 0;
|
2019-10-28 14:36:21 +00:00
|
|
|
}
|