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.
|
|
|
|
|
2020-09-30 10:00:32 +00:00
|
|
|
// ignore warning 4503: decorated name length exceeded, name was truncated
|
|
|
|
#if defined( _MSC_VER )
|
|
|
|
# pragma warning( disable : 4503 )
|
|
|
|
#elif defined( __GNUC__ )
|
|
|
|
// don't know how to switch off that warning here
|
|
|
|
#else
|
|
|
|
// unknow compiler... just ignore the warnings for yourselves ;)
|
|
|
|
#endif
|
|
|
|
|
2019-10-28 14:36:21 +00:00
|
|
|
#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
|
|
|
|
{
|
2021-02-17 09:49:59 +00:00
|
|
|
vk::Instance instance = vk::su::createInstance( AppName, EngineName, {}, {}, VK_API_VERSION_1_1 );
|
2020-04-12 19:49:12 +00:00
|
|
|
#if !defined( NDEBUG )
|
2021-02-17 09:49:59 +00:00
|
|
|
vk::DebugUtilsMessengerEXT debugUtilsMessenger =
|
|
|
|
instance.createDebugUtilsMessengerEXT( vk::su::makeDebugUtilsMessengerCreateInfoEXT() );
|
2019-10-28 14:36:21 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
// enumerate the physicalDevices
|
2021-02-17 09:49:59 +00:00
|
|
|
std::vector<vk::PhysicalDevice> physicalDevices = instance.enumeratePhysicalDevices();
|
2019-10-28 14:36:21 +00:00
|
|
|
|
|
|
|
/* 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
|
|
|
|
2021-02-17 09:49:59 +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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\talphaToOne : " << !!features.alphaToOne << "\n";
|
|
|
|
std::cout << "\t\tdepthBiasClamp : " << !!features.depthBiasClamp
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tdepthBounds : " << !!features.depthBounds
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tdepthClamp : " << !!features.depthClamp << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdrawIndirectFirstInstance : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.drawIndirectFirstInstance << "\n";
|
|
|
|
std::cout << "\t\tdualSrcBlend : " << !!features.dualSrcBlend
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tfillModeNonSolid : " << !!features.fillModeNonSolid
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tfragmentStoresAndAtomics : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.fragmentStoresAndAtomics << "\n";
|
|
|
|
std::cout << "\t\tfullDrawIndexUint32 : " << !!features.fullDrawIndexUint32
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tgeometryShader : " << !!features.geometryShader
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\timageCubeArray : " << !!features.imageCubeArray
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tindependentBlend : " << !!features.independentBlend
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tinheritedQueries : " << !!features.inheritedQueries
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tlargePoints : " << !!features.largePoints
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tlogicOp : " << !!features.logicOp << "\n";
|
|
|
|
std::cout << "\t\tmultiDrawIndirect : " << !!features.multiDrawIndirect
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tmultiViewport : " << !!features.multiViewport
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tocclusionQueryPrecise : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.occlusionQueryPrecise << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tpipelineStatisticsQuery : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.pipelineStatisticsQuery << "\n";
|
|
|
|
std::cout << "\t\trobustBufferAccess : " << !!features.robustBufferAccess
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tsamplerAnisotropy : " << !!features.samplerAnisotropy
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tsampleRateShading : " << !!features.sampleRateShading
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tshaderClipDistance : " << !!features.shaderClipDistance
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tshaderCullDistance : " << !!features.shaderCullDistance
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tshaderFloat64 : " << !!features.shaderFloat64
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderImageGatherExtended : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderImageGatherExtended << "\n";
|
|
|
|
std::cout << "\t\tshaderInt16 : " << !!features.shaderInt16
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2020-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tshaderInt64 : " << !!features.shaderInt64
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderResourceMinLod : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderResourceMinLod << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderResourceResidency : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderResourceResidency << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderSampledImageArrayDynamicIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderSampledImageArrayDynamicIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageBufferArrayDynamicIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderStorageBufferArrayDynamicIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageArrayDynamicIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderStorageImageArrayDynamicIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageExtendedFormats : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderStorageImageExtendedFormats << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageMultisample : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderStorageImageMultisample << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageReadWithoutFormat : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderStorageImageReadWithoutFormat << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageWriteWithoutFormat : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderStorageImageWriteWithoutFormat << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderTessellationAndGeometryPointSize : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderTessellationAndGeometryPointSize << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderUniformBufferArrayDynamicIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.shaderUniformBufferArrayDynamicIndexing << "\n";
|
|
|
|
std::cout << "\t\tsparseBinding : " << !!features.sparseBinding
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tsparseResidency16Samples : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidency16Samples << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsparseResidency2Samples : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidency2Samples << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsparseResidency4Samples : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidency4Samples << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsparseResidency8Samples : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidency8Samples << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsparseResidencyAliased : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidencyAliased << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsparseResidencyBuffer : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidencyBuffer << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsparseResidencyImage2D : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidencyImage2D << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsparseResidencyImage3D : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.sparseResidencyImage3D << "\n";
|
|
|
|
std::cout << "\t\ttessellationShader : " << !!features.tessellationShader
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\ttextureCompressionASTC_LDR : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.textureCompressionASTC_LDR << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\ttextureCompressionBC : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.textureCompressionBC << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\ttextureCompressionETC2 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.textureCompressionETC2 << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvariableMultisampleRate : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.variableMultisampleRate << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvertexPipelineStoresAndAtomics : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!features.vertexPipelineStoresAndAtomics << "\n";
|
|
|
|
std::cout << "\t\twideLines : " << !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!sixteenBitStorageFeatures.storageBuffer16BitAccess << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tstorageInputOutput16 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!sixteenBitStorageFeatures.storageInputOutput16 << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tstoragePushConstant16 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!sixteenBitStorageFeatures.storagePushConstant16 << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tuniformAndStorageBuffer16BitAccess : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!eightBitStorageFeatures.storageBuffer8BitAccess << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tstoragePushConstant8 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!eightBitStorageFeatures.storagePushConstant8 << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tuniformAndStorageBuffer8BitAccess : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!bufferDeviceAddressFeatures.bufferDeviceAddress << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tbufferDeviceAddressCaptureReplay : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!bufferDeviceAddressFeatures.bufferDeviceAddressCaptureReplay << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tbufferDeviceAddressMultiDevice : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tdeviceCoherentMemory : " << !!coherentMemoryFeatures.deviceCoherentMemory
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!computeShaderDerivativesFeatures.computeDerivativeGroupLinear << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tcomputeDerivativeGroupQuads : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!conditionalRenderingFeatures.conditionalRendering << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tinheritedConditionalRendering : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!cooperativeMatrixFeatures.cooperativeMatrix << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tcooperativeMatrixRobustBufferAccess : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tcornerSampledImage : " << !!cornerSampledImageFeatures.cornerSampledImage
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!dedicatedAllocationImageAliasingFeatures.dedicatedAllocationImageAliasing
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tdepthClipEnable : " << !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingPartiallyBound << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingSampledImageUpdateAfterBind : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingSampledImageUpdateAfterBind
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageBufferUpdateAfterBind : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingStorageBufferUpdateAfterBind
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageImageUpdateAfterBind : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingStorageImageUpdateAfterBind
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingStorageTexelBufferUpdateAfterBind : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingStorageTexelBufferUpdateAfterBind
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingUniformBufferUpdateAfterBind : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingUniformBufferUpdateAfterBind
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingUniformTexelBufferUpdateAfterBind : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingUniformTexelBufferUpdateAfterBind
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tdescriptorBindingUpdateUnusedWhilePending : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingUpdateUnusedWhilePending << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tdescriptorBindingVariableDescriptorCount : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.descriptorBindingVariableDescriptorCount << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\truntimeDescriptorArray : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.runtimeDescriptorArray << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderInputAttachmentArrayDynamicIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderInputAttachmentArrayDynamicIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderInputAttachmentArrayNonUniformIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderInputAttachmentArrayNonUniformIndexing
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderSampledImageArrayNonUniformIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderSampledImageArrayNonUniformIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageBufferArrayNonUniformIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderStorageBufferArrayNonUniformIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageImageArrayNonUniformIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderStorageImageArrayNonUniformIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderStorageTexelBufferArrayDynamicIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderStorageTexelBufferArrayDynamicIndexing
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderStorageTexelBufferArrayNonUniformIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderStorageTexelBufferArrayNonUniformIndexing
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderUniformBufferArrayNonUniformIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderUniformBufferArrayNonUniformIndexing << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderUniformTexelBufferArrayDynamicIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderUniformTexelBufferArrayDynamicIndexing
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tshaderUniformTexelBufferArrayNonUniformIndexing : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!descriptorIndexingFeatures.shaderUniformTexelBufferArrayNonUniformIndexing
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\texclusiveScissor : " << !!exclusiveScissorFeatures.exclusiveScissor
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!fragmentDensityMapFeatures.fragmentDensityMap << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tfragmentDensityMapDynamic : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!fragmentDensityMapFeatures.fragmentDensityMapDynamic << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tfragmentDensityMapNonSubsampledImages : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!fragmentShaderInterlockFeatures.fragmentShaderPixelInterlock << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tfragmentShaderSampleInterlock : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!fragmentShaderInterlockFeatures.fragmentShaderSampleInterlock << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tfragmentShaderShadingRateInterlock : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\thostQueryReset : " << !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tindexTypeUint8 : " << !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!inlineUniformBlockFeatures.descriptorBindingInlineUniformBlockUpdateAfterBind
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tinlineUniformBlock : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tbresenhamLines : " << !!lineRasterizationFeatures.bresenhamLines
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\trectangularLines : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!lineRasterizationFeatures.rectangularLines << "\n";
|
|
|
|
std::cout << "\t\tsmoothLines : " << !!lineRasterizationFeatures.smoothLines
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tstippledBresenhamLines : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!lineRasterizationFeatures.stippledBresenhamLines << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tstippledRectangularLines : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!lineRasterizationFeatures.stippledRectangularLines << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tstippledSmoothLines : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tmemoryPriority : " << !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tmeshShader : " << !!meshShaderFeatures.meshShader << "\n";
|
|
|
|
std::cout << "\t\ttaskShader : " << !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tmultiview : " << !!multiviewFeatures.multiview << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tmultiviewGeometryShader : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!multiviewFeatures.multiviewGeometryShader << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tmultiviewTessellationShader : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tprotectedMemory : " << !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tscalarBlockLayout : " << !!scalarBlockLayoutFeatures.scalarBlockLayout
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!shaderAtomicInt64Features.shaderBufferInt64Atomics << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshaderSharedInt64Atomics : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tshaderFloat16 : " << !!shaderFloat16Int8Features.shaderFloat16 << "\n";
|
|
|
|
std::cout << "\t\tshaderInt8 : " << !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\timageFootprint : " << !!shaderImageFootprintFeatures.imageFootprint
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tshaderSMBuiltins : " << !!shaderSMBuiltinsFeatures.shaderSMBuiltins
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!shadingRateImageFeatures.shadingRateCoarseSampleOrder << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tshadingRateImage : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!subgroupSizeControlFeatures.computeFullSubgroups << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tsubgroupSizeControl : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\ttimelineSemaphore :" << !!timelineSemaphoreFeatures.timelineSemaphore
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tgeometryStreams : " << !!transformFeedbackFeatures.geometryStreams << "\n";
|
|
|
|
std::cout << "\t\ttransformFeedback : " << !!transformFeedbackFeatures.transformFeedback
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!variablePointersFeatures.variablePointers << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvariablePointersStorageBuffer : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!vertexAttributeDivisorFeatures.vertexAttributeInstanceRateDivisor << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvertexAttributeInstanceRateZeroDivisor : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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 : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!vulkanMemoryModelFeatures.vulkanMemoryModel << "\n";
|
2020-04-12 19:49:12 +00:00
|
|
|
std::cout << "\t\tvulkanMemoryModelAvailabilityVisibilityChains : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!vulkanMemoryModelFeatures.vulkanMemoryModelAvailabilityVisibilityChains
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
|
|
|
std::cout << "\t\tvulkanMemoryModelDeviceScope : "
|
2020-09-30 10:00:32 +00:00
|
|
|
<< !!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-09-30 10:00:32 +00:00
|
|
|
std::cout << "\t\tycbcrImageArrays : " << !!ycbcrImageArraysFeatures.ycbcrImageArrays
|
2020-04-12 19:49:12 +00:00
|
|
|
<< "\n";
|
2019-10-28 14:36:21 +00:00
|
|
|
std::cout << "\n";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* VULKAN_KEY_END */
|
2021-02-17 09:49:59 +00:00
|
|
|
|
|
|
|
instance.destroyDebugUtilsMessengerEXT( debugUtilsMessenger );
|
|
|
|
instance.destroy();
|
2019-10-28 14:36:21 +00:00
|
|
|
}
|
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
|
|
|
}
|